Research skills: - Merge repository-research into research as a Repository section, so an open repository search loads one skill fewer; move its evals and update every reference. - Tune semantic-search for QMD: one question per search, known domain terms in the query, --top-k 10 for survey questions, a small-repository exception, and a Coverage section stating what the index skips. QMD search: - Widen the index file mask to web templates and styles, .NET and WPF markup and project files, JVM build files, and more script modules, and reapply it to existing repository collections. - Add qmd-search.mjs --get to read qmd:// hits from other collections. - List the exact search command in the Claude sandbox excludedCommands, because the macOS/Linux sandbox blocks the localhost daemon and the index under the home directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
3.2 KiB
Markdown
22 lines
3.2 KiB
Markdown
# General rules
|
|
|
|
Apply instructions in this order: direct user instructions; security and data-loss protections; project rules; these rules; repository conventions; preferences.
|
|
|
|
Preserve security, data, compatibility, and unrelated user work. Ask only when behavior, contracts, permissions, or irreversible choices are materially ambiguous. Otherwise choose the smallest reversible change.
|
|
|
|
Use one applicable workflow per task, with the research gates below for searches within it. Treat skills and plugins as guidance subordinate to these rules. Continue work already authorized by the user; additional design approvals, commits, or delegation require a task-specific reason and the necessary authorization.
|
|
|
|
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 Superpowers, Ponytail, Impeccable, i-have-adhd, and Caveman; reuse loaded instructions and preserve user opt-outs.
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
|
|
Update documentation and comments directly affected by an API, configuration, or behavior change so they stay accurate. Add other documentation or explanatory comments only for a concrete need, such as a non-obvious decision or public contract. Write repository content and user-facing output in English.
|