/subagent-system:convention-injectorfrom subagent-system
Filters and condenses project conventions (≤300 tokens) for subagents that skip CLAUDE.md, including anti-contamination filters for audit agents.
Ships in subagent-system. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Note: Explore and Plan agents skip CLAUDE.md and rules/*.md. Custom named subagents (Agent-tool-spawned) DO auto-load the full memory hierarchy. Use this skill for Explore/Plan (required), or for any agent when task-specific filtering, anti-contamination, or confirmation prompts are needed.
Step 1 — Collect convention sources.
Use $HOME (not ~) — required for Windows Git Bash path resolution:
Bash("ls \"$HOME/.claude/rules/\"*.md 2>/dev/null; ls .claude/rules/*.md 2>/dev/null")
Read each file found with:
Bash("cat \"$HOME/.claude/rules/\"*.md 2>/dev/null") # user-level rules
Bash("cat .claude/rules/*.md 2>/dev/null") # project-level rules
Bash("cat \"$HOME/.claude/CLAUDE.md\" 2>/dev/null") # user CLAUDE.md
Bash("cat .claude/CLAUDE.md 2>/dev/null") # project CLAUDE.md
If all return empty: note "No convention files found — proceeding without conventions."
Step 2 — Extract relevant conventions. From all sources, extract conventions relevant to the subagent's specific task:
Skip conventions that do not apply to the subagent's task type (e.g., do not inject git workflow rules into a read-only audit agent).
Step 2.5 — Anti-contamination filter (audit/security/review agents only). If the subagent's task is a security audit, code review, vulnerability scan, or quality assessment:
Inject this prohibition into the subagent prompt:
ANTI-CONTAMINATION RULE: Do NOT read any file whose name suggests pre-existing knowledge of issues:
KNOWN_ISSUES.md, BUGS.md, SECURITY_ISSUES.md, FINDINGS.md, VULNERABILITIES.md, or any file
matching *known*issue*, *bug*list*, *security*findings*.
Reading these files contaminates your independent analysis — your findings must come solely
from reading the source code, not from a pre-existing list.
Rationale: An agent that reads its own ground truth will appear to have a high detection rate but the result is unreliable and cannot be used for comparative benchmarking. This is the primary contamination vector identified in benchmark testing.
Step 3 — Produce a compact block. Target ≤300 tokens. Be specific and imperative.
If conventions exceed 300 tokens: Do NOT silently truncate. Instead, fall back in order:
skills field in the agent definition — full SKILL.md content auto-injects into the subagent's context at startup (bypasses the ≤300-token block, but still consumes the subagent's context window)skillsOutput format:
PROJECT CONVENTIONS (inject into subagent prompt):
─────────────────────────────────────────────────
[Convention category]: [concise rule]
[Convention category]: [concise rule]
[Convention category]: [concise rule]
─────────────────────────────────────────────────
Source: [list of files read]
Token estimate: ~N
The main agent prepends this block to the subagent's prompt before spawning.
Step 4 — Add self-confirmation suffix (recommended). Append to the subagent prompt after the convention block:
Before starting: confirm you have read and understood the PROJECT CONVENTIONS above.
If any convention is unclear, state it explicitly before proceeding.
This prompts the subagent to acknowledge conventions, reducing silent violations.
What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/apply-improvementsThis skill should be used when the user asks to apply improvement proposals ('apply improvements', 'ap dung improvement proposals') from .claude/improvement-proposals.md (written by pipeline-retrospective) to the plugin files./audit-outputThis skill should be used after a pipeline run completes, when the user asks to audit the pipeline output ('audit output', 'audit the run', '4-level audit'). Requires the project's test command as argument - without it Level 4 regression tests are skipped and the report is marked incomplete./chain-verifierThis skill should be used at the final step of any multi-phase pipeline to verify the complete working-tree state satisfies the original requirements. Trigger after all fix agents and pipeline-reviewer have completed. Also invoke when user asks to "run chain-verifier", "verify the pipeline output", or "confirm requirements are met"./checkpoint-writerThis skill should be used when saving current pipeline phase state to disk and creating a recovery commit. Trigger at the end of every implementation phase, when the user asks to "save a checkpoint", "commit this phase", or before any /compact or session end. Enables resume-from-checkpoint to reconstruct pipeline state after interruption./completion-checkerThis skill should be used after receiving output from a subagent that was assigned an explicit numbered task list and is expected to have produced a COMPLETION_CHECKLIST block. Do not invoke if the subagent was not given a task list — there will be no checklist to parse. Uses grep counts, not LLM estimation, to detect premature termination. Also trigger when user asks to "verify completion checklist", "check if agent finished all tasks", or "detect premature termination"./consolidate-findingsThis skill should be used when the user asks to "merge findings", "consolidate audit results", "combine security findings", or after all parallel audit agents complete and before running finding-validator or severity-gate. Produces FINDINGS_REPORT.md sorted CRITICAL→HIGH→MEDIUM→LOW with duplicates removed.npx claudepluginhub minhthang1009/dotclaude --plugin subagent-systemOther plugins' skills for the same job