Skip to content

Commit 0387692

Browse files
committed
feat: ✨ add SKILL.md files for features including
1 parent f47469e commit 0387692

8 files changed

Lines changed: 284 additions & 0 deletions

File tree

  • src
    • act/stubs/.github/skills/feature-act
    • common-utils/stubs/.github/skills/feature-common-utils
    • githooks/stubs/.github/skills/feature-githooks
    • gitutils/stubs/.github/skills/feature-gitutils
    • gitversion/stubs/.github/skills/feature-gitversion
    • larasets/stubs/.github/skills/feature-larasets
    • minikube/stubs/.github/skills/feature-minikube
    • pecl/stubs/.github/skills/feature-pecl
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!-- @format -->
2+
3+
# act
4+
5+
## Description
6+
7+
Use this feature when an agent needs to run GitHub Actions workflows locally with Nektos `act` inside a dev container.
8+
9+
## Use For
10+
11+
## Do Not Use For
12+
13+
## Agent Guidance
14+
15+
# act
16+
17+
## Description
18+
19+
Use this feature when an agent needs to run GitHub Actions workflows locally with Nektos `act` inside a dev container.
20+
21+
## Commands
22+
23+
- `act` - Run GitHub Actions workflows locally.
24+
- `act -l` - List available workflows/jobs.
25+
- `act <event>` - Run workflows for a specific GitHub event.
26+
- `act-run` - Run repository wrapper flow around `act` defaults.
27+
- `act-reset` - Reset local state/artifacts used by `act` wrapper scripts.
28+
29+
## Use For
30+
31+
- Running CI workflows locally before push.
32+
- Reproducing workflow/job failures from GitHub Actions.
33+
- Fast validation of workflow YAML changes.
34+
35+
## Do Not Use For
36+
37+
- Editing workflow logic unrelated to execution.
38+
- Cloud deployment tasks.
39+
40+
## Agent Guidance
41+
42+
- Ensure Docker is available before running `act`.
43+
- Prefer running the minimal target job first, then full workflow if needed.
44+
- Use the feature version option when reproducibility is required.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!-- @format -->
2+
3+
# common-utils
4+
5+
## Description
6+
7+
Use this feature as a shared utility layer for shell-based automation across features (`jq`, `dos2unix`, and `zz_*` helper scripts).
8+
9+
## Commands
10+
11+
- `validate-json [options] <json>` - Validate JSON against a schema.
12+
- `normalize-json [options] <json>` - Normalize JSON order/format using schema rules.
13+
- `zz_dist [options]` - Copy `zz_*` helpers to a target directory.
14+
- `zz_args` - Parse command-line arguments in shell scripts.
15+
- `zz_log` - Emit structured/colorized shell logs.
16+
- `zz_json` - Read or manipulate JSON from shell scripts.
17+
18+
## Use For
19+
20+
- JSON validation/normalization workflows (`validate-json`, `normalize-json`).
21+
- Shell scripting with standardized logging, argument parsing, and prompts (`zz_log`, `zz_args`, `zz_ask`).
22+
- Distributing shared helper scripts into project folders (`zz_dist`).
23+
24+
## Do Not Use For
25+
26+
- Feature-specific business logic.
27+
- Git workflow automation (use `gitutils` or `githooks`).
28+
29+
## Agent Guidance
30+
31+
- Reuse existing `zz_*` scripts before adding new helpers.
32+
- Prefer `normalize-json`/`validate-json` in lint pipelines for schema-safe edits.
33+
- Keep automation generic and composable for cross-feature reuse.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!-- @format -->
2+
3+
# githooks
4+
5+
## Description
6+
7+
Use this feature when an agent needs consistent local Git quality gates and commit workflow automation.
8+
9+
## Commands
10+
11+
- `git commit` - Triggers `pre-commit`, `prepare-commit-msg`, and `commit-msg` hooks.
12+
- `git push` - Triggers `pre-push` validations before remote update.
13+
- `git checkout <branch>` - Triggers `post-checkout` hook operations.
14+
- `git merge` - Triggers `post-merge` hook operations.
15+
- `commitlint --edit <file>` - Validate a commit message against commitlint rules.
16+
- `lint-staged` - Run configured lint/format commands on staged files.
17+
18+
## Use For
19+
20+
- Enforcing commit message standards (`commitlint`, `commitizen`).
21+
- Running pre-commit checks/linting on staged files.
22+
- Validating branch naming and push readiness.
23+
- Keeping dependencies aligned after checkout/merge hooks.
24+
25+
## Do Not Use For
26+
27+
- Repository history rewriting (use `gitutils`).
28+
- Version calculation from history (use `gitversion`).
29+
30+
## Agent Guidance
31+
32+
- Treat hooks as the default guardrails for local commits.
33+
- Update hook-related package snippets/scripts instead of introducing duplicate checks.
34+
- When failures occur, fix the underlying issue and rerun the same hook path.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!-- @format -->
2+
3+
# gitutils
4+
5+
## Description
6+
7+
Use this feature for advanced Git operations, interactive repository maintenance, and git-flow shortcuts.
8+
9+
## Commands
10+
11+
- `git align` - Align current branch with its remote tracking branch.
12+
- `git integrate` - Integrate remote modifications into current branch.
13+
- `git fixup [--force|<commit>]` - Amend a target commit and rebase history.
14+
- `git getcommit [--force|<commit>]` - Resolve/select commit target for fixup.
15+
- `git fix date [options] [<commit>]` - Rewrite commit times with scheduling rules.
16+
- `git forall <command>` - Execute a command for repository files.
17+
- `git release-beta` - Start a Git Flow release branch.
18+
- `git release-hotfix` - Start a Git Flow hotfix branch.
19+
- `git release-prod` - Finish release/hotfix flow for production.
20+
- `git unset <prefix> [--local|--global|--system]` - Remove git config keys by prefix.
21+
22+
## Use For
23+
24+
- Branch/rebase alignment and integration tasks.
25+
- Commit cleanup/fixup workflows.
26+
- Release branch shortcuts (`beta`, `hfix`, `prod`).
27+
- Batch repository operations and helper aliases.
28+
29+
## Do Not Use For
30+
31+
- Commit policy enforcement hooks (use `githooks`).
32+
- Semantic version calculation (use `gitversion`).
33+
34+
## Agent Guidance
35+
36+
- Prefer built-in aliases/utilities before crafting raw multi-step Git commands.
37+
- For history-rewrite actions, use explicit/force flags only when requested.
38+
- Keep operations scoped and reversible where possible.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!-- @format -->
2+
3+
# gitversion
4+
5+
## Description
6+
7+
Use this feature when an agent must derive application version numbers from Git history in a consistent way.
8+
9+
## Commands
10+
11+
- `gv` - Compute version metadata from Git history.
12+
- `bump-version` - Update version fields/files from computed version.
13+
- `bump-tag` - Create/update version tag from release version.
14+
- `bump-changelog` - Generate or update changelog for release context.
15+
16+
## Use For
17+
18+
- Calculating semantic versions from branch/commit state.
19+
- Providing version metadata for build/release automation.
20+
- Aligning local version behavior with CI versioning.
21+
22+
## Do Not Use For
23+
24+
- Manual tag/edit workflows without GitVersion involvement.
25+
- Hook or lint orchestration (use `githooks`).
26+
27+
## Agent Guidance
28+
29+
- Use the installed GitVersion tooling as the source of truth for computed versions.
30+
- Keep versioning logic centralized; avoid duplicating derivation rules in scripts.
31+
- Pair with release helpers only when version flow is explicitly required.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!-- @format -->
2+
3+
# larasets
4+
5+
## Description
6+
7+
Use this feature for Laravel-focused developer experience in dev containers, including artisan/sail wrappers, cache tasks, and PHP tooling presets.
8+
9+
## Commands
10+
11+
- `init` - Initialize Laravel project dependencies and environment defaults.
12+
- `sail <...>` - Run Laravel Sail commands.
13+
- `art <...>` - Run Artisan commands via local/Sail-aware wrapper.
14+
- `run <...>` - Run npm scripts via local/Sail-aware wrapper.
15+
- `srv <...>` - Run service process helpers (PM2-aware workflows).
16+
- `seed` - Run migrations and seed database data.
17+
- `fwd <...>` - Manage local-to-remote forwarding helper operations.
18+
- `composer lint` - Run Pint linting flow for project code.
19+
- `composer test` - Run Pest test suite.
20+
- `composer upg` - Update Composer dependencies with project defaults.
21+
22+
## Use For
23+
24+
- Running Laravel commands through `art`, `sail`, `run`, `srv` wrappers.
25+
- Bootstrapping Laravel local environment defaults.
26+
- Automating cache refresh tasks for config/views/routes.
27+
- Composer helper workflows tailored for Laravel monorepos.
28+
29+
## Do Not Use For
30+
31+
- Generic PHP extension installation (use `pecl`).
32+
- Kubernetes/local cluster workflows (use `minikube`).
33+
34+
## Agent Guidance
35+
36+
- Prefer provided wrapper commands over raw command variants for portability.
37+
- Use existing trigger-task patterns for cache-sensitive file changes.
38+
- Keep Laravel defaults local/dev oriented unless explicitly asked for production behavior.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!-- @format -->
2+
3+
# minikube
4+
5+
## Description
6+
7+
Use this feature when an agent needs local Kubernetes capabilities inside the dev environment using Minikube.
8+
9+
## Commands
10+
11+
- `minikube start` - Start local Minikube cluster.
12+
- `minikube stop` - Stop local Minikube cluster.
13+
- `minikube status` - Check Minikube and Kubernetes component status.
14+
- `mkb` - Run feature-level Minikube helper wrapper.
15+
- `mkb-up` - Start Minikube using repository helper defaults.
16+
- `mkb-preload` - Preload container images used by local workflows.
17+
- `mkb-pds` - Run project-defined Minikube bootstrap/support flow.
18+
19+
## Use For
20+
21+
- Local Kubernetes cluster setup for development/testing.
22+
- Running and validating Kubernetes manifests in a single-node cluster.
23+
- Reproducing k8s workflow issues without remote infrastructure.
24+
25+
## Do Not Use For
26+
27+
- Production cluster provisioning.
28+
- PHP/Laravel-specific tooling concerns.
29+
30+
## Agent Guidance
31+
32+
- Verify Minikube runtime prerequisites before starting cluster actions.
33+
- Keep manifests and tests targeted to local/dev constraints.
34+
- Prefer incremental validation (namespace/app) before full environment rollout.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!-- @format -->
2+
3+
# pecl
4+
5+
## Description
6+
7+
Use this feature when an agent needs to install or manage PHP extensions from PECL in the dev container.
8+
9+
## Commands
10+
11+
- `pecl install <extension>` - Install a PHP extension from PECL.
12+
- `pecl list` - List installed PECL extensions.
13+
- `pecl info <extension>` - Show metadata/details for an extension.
14+
- `php -m` - List loaded PHP modules to verify extension activation.
15+
- `php --ri <extension>` - Print runtime info for an activated extension.
16+
17+
## Use For
18+
19+
- Installing required PHP extensions declared by project dependencies.
20+
- Enabling extension support needed by tests or runtime.
21+
- Standardizing extension setup through feature configuration.
22+
23+
## Do Not Use For
24+
25+
- Laravel workflow automation (use `larasets`).
26+
- General system utility setup (use `common-utils`).
27+
28+
## Agent Guidance
29+
30+
- Install only extensions required by the project/task.
31+
- Keep extension configuration explicit and reproducible.
32+
- Validate PHP environment compatibility after extension changes.

0 commit comments

Comments
 (0)