ワンクリックで
agents-standards
Standards for authoring SDD plugin agents — frontmatter, self-containment, skill references, and no-user-interaction rules.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Standards for authoring SDD plugin agents — frontmatter, self-containment, skill references, and no-user-interaction rules.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | agents-standards |
| description | Standards for authoring SDD plugin agents — frontmatter, self-containment, skill references, and no-user-interaction rules. |
| user-invocable | false |
Standards for every agent in the plugin. Apply when creating or reviewing plugin agents.
This standard applies to agents shipped with the SDD plugin — all .md files found in plugin/fullstack-typescript/agents/ (or any future tech pack's agents/ directory). It does not apply to the repo's own .claude/ configuration.
Every agent file must start with YAML frontmatter containing exactly these fields:
---
name: my-agent # REQUIRED — kebab-case, must match filename (without .md)
description: > # REQUIRED — what this agent does + its expertise area
Implements backend services using Node.js and TypeScript
with strict CMDO architecture.
tools: Read, Write, Grep, Glob, Bash # REQUIRED — comma-separated list of available tools
model: sonnet # REQUIRED — "sonnet" for implementation, "opus" for review/advisory
color: "#10B981" # REQUIRED — hex color for UI representation
skills: # REQUIRED — skills to preload into agent context
- typescript-standards
- backend-standards
---
| Field | Type | Rule |
|---|---|---|
name | string | kebab-case, matches the filename without .md extension |
description | string | 1-2 sentences. What the agent does + its domain expertise. Never reference when or by whom the agent is invoked — the agent doesn't know its callers. |
tools | string | Comma-separated list of tools this agent can use. Read-only agents (reviewer, db-advisor) must NOT include Write. |
model | string | sonnet for implementation agents, opus for review/advisory agents. Choose based on the cognitive complexity required. |
color | string | Hex color code for UI. Must be unique across agents. |
skills | list | Skills to preload into agent context. Full skill content is injected at startup. Agents do not inherit skills from the parent conversation — they must be listed explicitly. |
An agent must be fully understandable on its own. An LLM reading a single agent file should know exactly what role this agent plays, what it owns, and what constraints it operates under — without reading other agents.
db-advisor for database schema review" is sufficient.db-advisor's job, delegate to it — don't reproduce its checklist..sdd/sdd-settings.yaml).plugin/fullstack-typescript/agents/) have no runtime access to anything outside plugin/. Never reference .claude/, .tasks/, or root-level files from within a plugin agent.Agents should not invoke the system CLI directly. Instead, agents delegate to commands or skills that handle CLI invocation. This keeps CLI coupling out of agents and in the orchestration layers. For the canonical CLI invocation pattern, see the system-cli-standards skill.
Agents run as subprocesses (subagents) invoked by commands or other agents. They have no direct access to the user. This is a hard constraint of the execution environment, not a style preference.
## Workflow
1. Read the spec
2. Ask the user which components to implement
3. Confirm the approach with the user before proceeding
The agent cannot ask or confirm anything with the user. It has no user channel.
## Workflow
1. Read the spec and plan
2. Identify components from the plan's phase details
3. Implement components as specified
4. Document any ambiguities in the output for caller review
The agent derives decisions from its inputs and flags issues in its output.
Agents reference skills as instructional context — the skills define patterns and standards the agent must follow. This is a "load and apply" relationship, not input/output composition.
## Skills
**CRITICAL: You MUST read and follow ALL patterns defined in these skills. They are mandatory, not optional reference material. ALL code you write or scaffold MUST adhere to these standards.**
- `typescript-standards` — Strict typing, immutability, arrow functions
- `backend-standards` — CMDO architecture, layer separation, telemetry
The bold CRITICAL line is mandatory. Without it, agents treat skills as optional reference material and ignore them in practice. The "ALL code you write or scaffold" clause ensures generated/scaffolded files also adhere to the standards.
skill-name skill requirements" line in the agent's Rules section. Double reinforcement ensures compliance.SKILL.md somewhere under the plugin's skill directories (plugin/core/skills/ and plugin/fullstack-typescript/skills/, scanning recursively — skills may be nested, e.g. plugin/fullstack-typescript/skills/components/backend/backend-standards/). Referencing nonexistent skills creates silent failures — the agent will have no standards to follow.An agent becomes stale when the skills, tools, or architecture it references have changed without the agent being updated. Stale agents produce incorrect or inconsistent output because they follow outdated patterns.
| Source of truth | What drifts in the agent |
|---|---|
| Skill renamed or removed | Agent references a nonexistent skill |
| Skill's scope changed | Agent's summary of the skill is inaccurate |
| Directory structure changed | Agent's working directory or file paths are wrong |
| Tool list changed | Agent's tools frontmatter doesn't match available capabilities |
| New skill created for agent's domain | Agent doesn't reference the skill and misses its standards |
| Agent responsibilities shifted | Agent's role overlaps or conflicts with another agent |
During audit (see Audit Procedure below), check each agent against:
SKILL.md somewhere under plugin/core/skills/ or plugin/fullstack-typescript/skills/ (recursive scan)?tools list match the agent's actual needs? (Read-only agents should not have Write; agents that run commands need Bash.)Some agents are structurally more likely to drift than others. During audit or review, score each agent to prioritize monitoring effort. Higher scores mean more drift surfaces — not that the agent is broken today, but that it is more likely to break tomorrow.
| Risk Factor | Points | Rationale |
|---|---|---|
Each formal skill reference (in ## Skills) | +1 | More dependencies = more surfaces that can change |
Each inline skill reference (not in ## Skills) | +2 | Informal references are harder to audit and easier to miss during updates |
| Each hardcoded file path | +1 | Paths change during refactors; the agent won't know |
| Each reference to another agent's internals | +3 | Cross-agent knowledge is the most fragile coupling — the other agent doesn't know it's being depended on |
| Each duplicated concept from a skill | +3 | Duplicated content drifts silently; the skill evolves but the copy doesn't |
| Each environment assumption without documented precondition | +1 | Implicit assumptions break silently in new environments |
| References own callers or invocation context | +2 | Callers change independently; the agent doesn't control who invokes it |
| Score | Tier | Action |
|---|---|---|
| 0–2 | Low | Standard audit cadence |
| 3–5 | Moderate | Review when any referenced skill or directory changes |
| 6+ | High | Prioritize in every audit; consider simplifying the agent to reduce coupling |
Include a drift risk summary table:
## Drift Risk Scores
| Agent | Score | Tier | Top Factors |
|-------|-------|------|-------------|
| backend-dev | 4 | Moderate | 3 skill refs (+3), 1 inline ref (+2) |
| devops | 6 | High | 1 inline ref (+2), 2 hardcoded paths (+2), no skills section (+2) |
After the frontmatter, organize the agent body as follows:
You are [role statement]. <- First line: identity and expertise
## Skills <- (if applicable) Skills this agent loads
## Working Directory <- Where this agent operates
## <Core Sections> <- H2 sections: responsibilities, patterns, workflows
## Rules <- Non-negotiable constraints (last section)
typescript, bash, yaml, markdown).BAD / GOOD headings.## Rules section is always the final section, containing non-negotiable constraints as a bulleted list.Use when creating or reviewing a plugin agent:
name, description, tools, model, and colorname is kebab-case and matches the filename (without .md)description is 1-2 sentences: what the agent does + expertise. No references to callers or invocation context.tools matches the agent's actual needs (read-only agents exclude Write)model is appropriate: sonnet for implementation, opus for review/advisorycolor is a valid hex code, unique across agentsplugin/core/skills/ or plugin/fullstack-typescript/skills/## Rules is the last sectionRun this audit against all plugin agents to produce a fresh violations report. Find every .md file in plugin/fullstack-typescript/agents/ (and any future tech pack agents/ directories), then check each agent against the categories below.
For each agent file, check every item in the Checklist section above. Additionally:
## Skills section, verify that a matching SKILL.md exists under the plugin's skill directories by globbing recursively (plugin/core/skills/**/SKILL.md and plugin/fullstack-typescript/skills/**/SKILL.md) and matching on the skill's name frontmatter field. Skills may be nested in subdirectories (e.g. plugin/fullstack-typescript/skills/components/backend/backend-standards/SKILL.md).SKILL.md and search for the same user interaction phrases. A skill that assumes multi-turn conversation, presents options to a user, or waits for user responses is incompatible with agent context. Flag the skill name, the quoted phrase, and which agent loads it.Produce the report with these sections:
# Agents Standards Audit — YYYY-MM-DD_HH-MM
## Summary
| Category | Passing | Failing | Total |
|----------|---------|---------|-------|
| Frontmatter | X | Y | Z |
| Self-containment | ... | ... | ... |
| User interaction | ... | ... | ... |
| Skill references | ... | ... | ... |
| Staleness | ... | ... | ... |
| Inter-agent consistency | ... | ... | ... |
## Staleness Report
<!-- Per-agent skill reference validation -->
## User Interaction Violations (Direct)
<!-- Quoted phrases in agent files that imply user interaction -->
## User Interaction Violations (Transitive)
<!-- Quoted phrases in referenced skills that imply user interaction.
Format: Agent → Skill → quoted phrase -->
## Per-Agent Violations
<!-- One subsection per failing agent, with quoted violations -->
## Recommended Fix Priority
<!-- Ordered by impact and effort -->
Never write audit reports inside plugin/fullstack-typescript/agents/. The plugin folder is for shipped agent files only — no reports, scratch files, or artifacts.
After presenting the report, ask the user whether to create a task to track the fixes or whether the report is temporary (e.g., for quick review or one-off investigation). If the user wants a task:
Create a task via /tasks add "Fix agents standards violations from audit report". The task's purpose is to fix the violations — the audit report is supporting evidence, not the deliverable. Save the report with a timestamped filename inside the task folder:
.tasks/0-inbox/<N>/
├── task.md # Task to fix violations, with key findings summary
└── agents-audit-YYYY-MM-DD_HH-MM.md # Full audit report (e.g., agents-audit-2026-02-07_14-30.md)
If the user declines, present the report inline without creating any files or tasks.
Ask: "Audit all plugin agents against the agents-standards skill and produce a violations report."
Run the audit directly (do not delegate to subagents):
plugin/fullstack-typescript/agents/*.md files (and any future tech pack agents/ directories)plugin/core/skills/**/SKILL.md and plugin/fullstack-typescript/skills/**/SKILL.md (recursive) and match each referenced skill name against the name frontmatter field of found skills/tasks add "Fix agents standards violations from audit report") or keep the report temporaryThis skill defines no input parameters or structured output.
Orchestrates SDD project initialization — version detection, environment verification, scaffolding, and git setup.
Manage project settings in sdd/sdd-settings.yaml including component settings that drive scaffolding.
Single gateway for all core↔tech-pack interactions. Reads manifests, resolves paths, loads skills/agents, routes commands.
Manage tasks and plans using the .tasks/ directory.
Standards for authoring SDD plugin commands — frontmatter, user interaction, skill/agent invocation, CLI integration, and output formatting.
Create a commit following repository guidelines with proper versioning and changelog updates.