feat(skills): reworked skills and rules
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s
This commit is contained in:
1 parent
29632ff0ce
commit
f5d8f6f11b
124 files changed
+1250
-8138
No files matched your search
@@ -8,14 +8,13 @@ Use one applicable workflow per task, with the research gates below for searches
|
||||
|
||||
Never create or switch branches or worktrees unless the user explicitly requests it; stay on the current branch and do not ask about it. Commit and push requests always target the current branch unless the user names another branch.
|
||||
|
||||
For development tasks (code, script, hook, configuration, or UI changes; debugging; code review), MUST apply `plugin-workflow` before the first action, on resume, and at phase changes. Skip it for questions and prose-only changes. It coordinates the installed workflow, UI, web, and style plugins; reuse loaded instructions and preserve opt-outs.
|
||||
MUST load `plugin-workflow` at the start of every session and task, including questions and prose-only work, and again after resume, compaction, and at phase changes. It coordinates the installed workflow, UI, web, and style plugins; each plugin layer applies only at its own triggers. Reuse loaded instructions and preserve opt-outs.
|
||||
For new or substantially rewritten prose outside the chat (docs, comments, commit/PR bodies, UI copy, messages), MUST apply installed `humanizer`; keep facts, terms, and code. Skip chat replies and small fixes.
|
||||
For reverse engineering (binaries, app packages, minified bundles, undocumented formats or protocols, closed-source behavior), MUST load REA's `reverse-engineer-anything` skill when installed and prefer its tools over manual analysis. Analyze only targets the user is authorized to inspect.
|
||||
Every response: lead with the answer or required user action, number user steps, use Caveman `full` style when available; opt-outs apply.
|
||||
Every response: lead with the answer or required user action, number user steps, use Caveman style at the plugin's default level when available; opt-outs apply.
|
||||
|
||||
Before open searches (unknown locations or identifiers, behavior questions, discovery), MUST load and apply `research`, including for repository sources; before every external technology lookup, MUST load `technical-research`. Direct reads of known paths and exact matches of known identifiers need no skill load. Every lookup: define the question, inspect authoritative results, and disclose gaps. If a required skill is unavailable, report it and apply these checks.
|
||||
Before open searches (unknown locations or identifiers, behavior questions, discovery), MUST load and apply `research`, including for repository sources. Before relying on external technology behavior in any answer, plan, code, review, debugging, configuration, test, or upgrade, MUST apply `technical-research` and its gate and phase checkpoints, including inside plugin workflows. Direct reads of known paths and exact matches of known identifiers need no skill load. Every lookup: define the question, inspect authoritative results, and disclose gaps. If a required skill is unavailable, report it and apply these checks.
|
||||
Known paths, symbols, strings, or errors use direct reads/`rg`. For unknown identifiers, apply installed `semantic-search`: semantic retrieval first, with its documented failure/rephrasing fallback.
|
||||
Before relying on external technology behavior in any answer, plan, code, review, debugging, configuration, test, or upgrade, MUST automatically apply `technical-research`'s Context7-first gate and phase checkpoints, including inside plugin workflows. Follow its version checks, evidence reuse, query limits, and explicit source fallback.
|
||||
|
||||
Verify proportionally: run the cheapest check that detects likely failure; broaden for security, data loss, integration, or cross-component risk. Never claim unrun checks passed. Report failures and material gaps.
|
||||
|
||||
|
||||
+27
-158
@@ -1,175 +1,44 @@
|
||||
# Git Guidelines
|
||||
|
||||
## General Rules
|
||||
## Authorization
|
||||
|
||||
* Never commit changes unless explicitly instructed to do so.
|
||||
* Never push changes unless explicitly instructed to do so.
|
||||
* Never create a pull request unless explicitly instructed to do so.
|
||||
* Never merge branches unless explicitly instructed to do so.
|
||||
* Never rebase branches unless explicitly instructed to do so.
|
||||
* Never amend an existing commit unless explicitly instructed to do so.
|
||||
* Never create or delete Git tags unless explicitly instructed to do so.
|
||||
* Never modify remote branches unless explicitly instructed to do so.
|
||||
* Do not interpret general requests such as "finish this", "implement this", or "fix this" as permission to commit or push.
|
||||
* Permission to commit does not imply permission to push.
|
||||
* Permission to push does not imply permission to create or merge a pull request.
|
||||
* Only perform Git write operations that the user explicitly requested.
|
||||
* Read-only Git commands may be used when needed to inspect repository state.
|
||||
* Create commits only with `git commit` and push commits only with `git push`. Never create commits or publish repository code through REST APIs, hosting-provider APIs, or other non-Git interfaces.
|
||||
The agent may edit files and run read-only Git commands (status, diff, log, show, fetch for inspection) whenever useful. Every Git write needs an explicit user request for that action, each time:
|
||||
|
||||
## Repository Safety
|
||||
* commit, push, pull with merge or rebase, merge, rebase, amend, revert, or cherry-pick
|
||||
* create, switch, rename, or delete a branch or worktree
|
||||
* create or delete a tag, or change a remote branch
|
||||
* create, comment on, approve, complete, or merge a pull request
|
||||
* discard, reset, clean, restore, or stash working-tree changes
|
||||
|
||||
* Always inspect the current Git status before performing Git write operations.
|
||||
* Never discard uncommitted user changes.
|
||||
* Never overwrite unrelated changes.
|
||||
* Never reset, clean, checkout, restore, or revert user changes unless explicitly requested.
|
||||
* Never use destructive Git operations without explicit instruction.
|
||||
* Never use `git reset --hard` unless explicitly requested.
|
||||
* Never use `git clean` unless explicitly requested.
|
||||
* Never force-push unless explicitly requested.
|
||||
* Never use `--force` or `--force-with-lease` unless explicitly requested.
|
||||
* Never rewrite shared history without explicit instruction.
|
||||
* Never modify `.gitignore` unless required by the task.
|
||||
* Never commit secrets, credentials, tokens, API keys, private keys, environment files, or other sensitive data.
|
||||
* Never bypass Git hooks unless explicitly requested.
|
||||
* Never use `--no-verify` unless explicitly requested.
|
||||
Permission does not carry over: a commit request does not allow a push, and a push does not allow a pull request. General requests such as "finish this", "fix this", or "implement this" never authorize a Git write. When in doubt, leave changes uncommitted.
|
||||
|
||||
## Scope
|
||||
|
||||
* Only stage files related to the requested task.
|
||||
* Never stage unrelated modified files.
|
||||
* Prefer staging specific files instead of using broad commands such as `git add .`.
|
||||
* Do not include generated files unless they are intentionally tracked by the repository.
|
||||
* Do not include formatting-only changes unrelated to the task.
|
||||
* Do not modify unrelated files merely to create a cleaner commit.
|
||||
* Keep commits focused on one logical change.
|
||||
* Split unrelated changes into separate commits when multiple commits were explicitly requested.
|
||||
|
||||
## Commit Messages
|
||||
|
||||
Use Conventional Commits.
|
||||
|
||||
Format:
|
||||
|
||||
`<type>(<optional-scope>): <description>`
|
||||
|
||||
Allowed common types:
|
||||
|
||||
* `feat`: new functionality
|
||||
* `fix`: bug fix
|
||||
* `refactor`: code change without changing external behavior
|
||||
* `perf`: performance improvement
|
||||
* `test`: test changes
|
||||
* `docs`: documentation changes
|
||||
* `style`: formatting or style-only changes
|
||||
* `build`: build system or dependency changes
|
||||
* `ci`: CI/CD changes
|
||||
* `chore`: maintenance work
|
||||
* `revert`: revert of an earlier change
|
||||
|
||||
Commit message rules:
|
||||
|
||||
* Use lowercase commit types.
|
||||
* Keep the subject concise and specific.
|
||||
* Use imperative wording.
|
||||
* Do not end the subject with a period.
|
||||
* Describe what changed, not how hard the work was.
|
||||
* Avoid vague messages such as `fix stuff`, `update`, `changes`, or `cleanup`.
|
||||
* Use a scope when it improves clarity.
|
||||
* Keep each commit limited to one logical purpose.
|
||||
* Use `!` or a `BREAKING CHANGE:` footer for breaking changes.
|
||||
* Reference issue or ticket identifiers only when relevant and known.
|
||||
* Never invent issue numbers, ticket IDs, or references.
|
||||
|
||||
Examples of valid commit messages:
|
||||
|
||||
* `feat(auth): add refresh token rotation`
|
||||
* `fix(api): handle missing user id`
|
||||
* `refactor(storage): simplify cache abstraction`
|
||||
* `perf(database): reduce duplicate queries`
|
||||
* `test(users): add validation coverage`
|
||||
* `docs(readme): document local setup`
|
||||
* `build: update dotnet dependencies`
|
||||
Create commits only with `git commit` and push only with `git push`; never publish code through REST or hosting-provider APIs. Pull requests and their comments, votes, and merges on Azure DevOps, Gitea, or other hosts are remote writes under the remote-system rules (`rules/microsoft.md` / `rules-microsoft`).
|
||||
|
||||
## Branches
|
||||
|
||||
* Apply all work and Git operations to the current branch in the current checkout unless the user explicitly names another branch or worktree.
|
||||
* Do not ask whether to create a branch, switch branches, or use a worktree. Stay on the current branch instead.
|
||||
* Never create or switch branches unless explicitly requested.
|
||||
* Never create worktrees unless explicitly requested.
|
||||
* Ignore skill, plugin, or tool defaults that suggest a new branch or worktree.
|
||||
* Never delete branches unless explicitly requested.
|
||||
* Never rename branches unless explicitly requested.
|
||||
* Commit on the current branch unless the user names another branch.
|
||||
* Push the current branch to its upstream unless the user names another target.
|
||||
* Never assume the target branch for a merge or rebase.
|
||||
* Preserve the repository's existing branch naming convention.
|
||||
* If no branch naming convention exists and a branch was explicitly requested, prefer concise names such as:
|
||||
* Work on the current branch and checkout. Do not ask about branches or worktrees, and ignore skill, plugin, or tool defaults that suggest new ones.
|
||||
* Commit to the current branch and push it to its upstream unless the user names another target. Never assume the target of a merge or rebase.
|
||||
* When the user asks for a branch, follow the repository's naming convention, or `feat/`, `fix/`, `refactor/`, or `chore/` prefixes without one.
|
||||
|
||||
* `feat/<name>`
|
||||
* `fix/<name>`
|
||||
* `refactor/<name>`
|
||||
* `chore/<name>`
|
||||
## Safety
|
||||
|
||||
## Pulling and Fetching
|
||||
* Never discard, overwrite, reset, clean, restore, or revert user changes, and never rewrite shared history, without an explicit request.
|
||||
* Never use `git reset --hard`, `git clean`, `--force`, `--force-with-lease`, or `--no-verify`, and never bypass hooks or signing, unless the user explicitly asks.
|
||||
* Do not pull, merge, or rebase automatically. Stop before a destructive conflict resolution; resolve a conflict only when the correct result is clear, keep both sides' work where possible, and never drop unrelated changes.
|
||||
* Preserve each file's existing line endings and encoding. Do not commit whole-file line-ending or formatting changes unrelated to the task.
|
||||
* Never commit secrets, credentials, tokens, keys, environment files, or other sensitive data. Change `.gitignore` only when the task requires it.
|
||||
|
||||
* Fetching remote state is allowed when required for inspection.
|
||||
* Do not pull automatically unless explicitly requested or required for an explicitly requested Git operation.
|
||||
* Never resolve pull or merge conflicts by discarding user changes.
|
||||
* Do not automatically rebase after pulling.
|
||||
* Do not automatically merge remote changes into the current branch.
|
||||
## Commits
|
||||
|
||||
## Conflicts
|
||||
Before a requested commit:
|
||||
|
||||
* Stop before making destructive conflict-resolution decisions.
|
||||
* Preserve both user work and repository history whenever possible.
|
||||
* Resolve conflicts only when the correct resolution is clear from the task and surrounding code.
|
||||
* Do not silently choose one side of a conflict when intent is ambiguous.
|
||||
* Never use conflict resolution as an excuse to remove unrelated changes.
|
||||
1. Inspect `git status`, stage only task-related files by name instead of `git add .`, and review the staged diff.
|
||||
2. Check the diff for secrets, unrelated changes, and untracked generated files.
|
||||
3. Run relevant checks when practical, and report any that were not run.
|
||||
4. If the working tree holds several unrelated changes, propose one commit per logical change; split them only when the user agrees or asked for multiple commits.
|
||||
|
||||
## Before an Explicitly Requested Commit
|
||||
Write messages as Conventional Commits in English: `<type>(<optional-scope>): <description>`, with a lowercase type (`feat`, `fix`, `refactor`, `perf`, `test`, `docs`, `style`, `build`, `ci`, `chore`, `revert`), an imperative subject without a trailing period, and `!` or a `BREAKING CHANGE:` footer for breaking changes. Describe what changed and why, never effort; avoid vague subjects such as `update` or `fix stuff`. Apply `humanizer` to new or rewritten commit bodies. Reference issue or ticket IDs only when they are known; never invent them.
|
||||
|
||||
Before creating a commit:
|
||||
## Before a requested push
|
||||
|
||||
* Inspect `git status`.
|
||||
* Inspect the staged diff.
|
||||
* Confirm only task-related files are staged.
|
||||
* Check for accidental secrets or sensitive files.
|
||||
* Ensure the changes are consistent with the requested task.
|
||||
* Run relevant tests, checks, or builds when practical.
|
||||
* Do not include unrelated modifications.
|
||||
* Use a Conventional Commit message.
|
||||
|
||||
## Before an Explicitly Requested Push
|
||||
|
||||
Before pushing:
|
||||
|
||||
* Confirm that pushing was explicitly requested.
|
||||
* Push the current branch unless the user named another branch.
|
||||
* Confirm the intended remote when multiple remotes exist.
|
||||
* Ensure the commits being pushed are expected.
|
||||
* Do not force-push unless explicitly requested.
|
||||
* Do not push unrelated local commits unintentionally.
|
||||
|
||||
## Autonomous Agent Rule
|
||||
|
||||
The agent may edit files and implement requested changes autonomously.
|
||||
|
||||
The agent must not autonomously:
|
||||
|
||||
* commit
|
||||
* push
|
||||
* merge
|
||||
* rebase
|
||||
* amend commits
|
||||
* create pull requests
|
||||
* create or delete tags
|
||||
* create or switch branches
|
||||
* create worktrees
|
||||
* delete branches
|
||||
* rewrite Git history
|
||||
* discard working-tree changes
|
||||
|
||||
These actions require explicit user instruction each time.
|
||||
|
||||
When in doubt, leave the repository changes uncommitted.
|
||||
Confirm the push was requested, push the current branch unless another was named, confirm the remote when several exist, and check that only the expected commits will be pushed.
|
||||
Reference in new issue
Block a user