All skills
simota avatar

/accord

@7e6967c
by shingo imotasimota/agent-skills85 stars
15

Authoring unified specification packages across Business/Development/Design teams via staged elaboration (L0 Vision, L1 Requirements, L2 Team Detail, L3 Acceptance Criteria). Use for cross-team specs.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/accord

This session only. Nothing lands on disk.

SKILL.md

β‰ˆ52 tokens always: the name and description. β‰ˆ5.8k when used: this file. β‰ˆ18k more on demand in 16 files.

<!-- CAPABILITIES_SUMMARY: - cross_team_spec: Unified specification packages for Business, Development, and Design teams - staged_elaboration: L0 Vision β†’ L1 Requirements β†’ L2 Team Detail β†’ L3 Acceptance Criteria - scope_management: Full / Standard / Lite scope modes based on complexity and requirement count - bdd_scenarios: Given/When/Then acceptance criteria with testable outcomes - traceability: US/REQ to AC traceability with completeness metrics (Full β‰₯95%, Standard β‰₯85%, Lite β‰₯70%) - audience_writing: Business = why, Development = how, Design = who/flow - calibration: UNIFY post-task workflow for scope heuristics and pattern extraction COLLABORATION_PATTERNS: - Field -> Accord: User research, insights, journeys shape L0/L1 - Cast -> Accord: Personas shape target users and scenarios - Voice -> Accord: Stakeholder/user feedback adjusts priorities or scope - Accord -> Sherpa: Package decomposed into atomic steps - Accord -> Builder: L2-Dev ready for implementation - Accord -> Radar: L3 scenarios become test cases - Accord -> Voyager: Acceptance flows become E2E scenarios - Accord -> Canvas: Diagrams or flows rendered visually - Accord -> Scribe: Formal PRD/SRS/HLD/LLD or polished document needed - Accord -> Lore: Reusable specification patterns validated - Flux -> Accord: Requirement assumption challenge - Magi -> Accord: Stakeholder trade-off verdicts - Void -> Accord: Specification scope cutting proposals BIDIRECTIONAL_PARTNERS: - INPUT: Field (user research), Cast (personas), Voice (stakeholder feedback), Flux (assumption challenge), Magi (trade-off verdicts), Void (scope cutting) - OUTPUT: Sherpa (decomposition), Builder (implementation), Radar (test cases), Voyager (E2E scenarios), Canvas (diagrams), Scribe (formal docs), Lore (patterns) PROJECT_AFFINITY: SaaS(H) E-commerce(H) Dashboard(H) API(M) Library(M) -->

Accord

Create one shared specification package for Biz, Dev, and Design. Do not write code.

Trigger Guidance

Use Accord when the task needs:

  • a shared specification artifact that multiple teams can read from different angles
  • staged elaboration from vision to acceptance criteria
  • traceable requirements, BDD scenarios, or a cross-functional review packet
  • research, personas, or stakeholder feedback turned into a delivery-ready spec
  • structured downstream inputs for implementation, decomposition, testing, diagrams, or formal documentation
  • an executable specification for downstream AI agents (Builder/Radar/Voyager) to drive implementation, testing, and E2E flows β€” Accord is the spec-driven development (SDD) entry point for Nexus/AUTORUN flows (GitHub Spec Kit 2026, cc-sdd)

Route elsewhere when the task is primarily:

  • implementation, architecture, or test execution: Builder, Atlas, Radar
  • a standalone PRD/SRS/HLD/LLD without cross-functional packaging: Scribe
  • mocks, wireframes, or design production: Vision, Palette
  • implementation code: Builder or Forge

Core Contract

  • Identify the audiences before drafting.
  • Build the package in staged order: L0 -> L1 -> L2 -> L3.
  • Keep one truth and expose team-specific views without splitting the source of truth. Effective requirements management eliminates 50-80% of project defects and 60-80% of rework cost (CMU SEI).
  • Treat BDD as a collaboration tool for building shared understanding, not merely a testing tool. Scenarios exist to align product, dev, and QA β€” test automation is a secondary benefit.
  • Treat the delivered package as an executable specification consumed by downstream AI agents (Builder/Radar/Voyager), not passive documentation. L0 scope-in/out, L2-Dev detail, and L3 acceptance criteria must be executable and verifiable without reinterpretation β€” this is the contract for spec-driven development (GitHub Spec Kit, cc-sdd 2026).
  • Include BDD acceptance criteria in L3.
  • Maintain bidirectional requirement-to-test traceability explicitly β€” track from requirement to test case and from test case back to requirement. Bidirectional links catch orphaned tests and untested requirements that unidirectional tracing misses.
  • Use the canonical ID scheme in _common/TRACEABILITY.md (REQ-* / CFR-* / AC-{FEATURE}-{NNN} / SC-*) instead of minting package-local IDs, so links survive across Scribe/Attest/Radar. For Full/Standard packages, emit a .traceability.yaml ledger (initial verdicts NOT_TESTED) that downstream Attest verifies and Guardian/Judge gate on.
  • Select Full, Standard, or Lite scope deliberately and state the reason.
  • Record post-task calibration data through UNIFY.
  • Output language follows the CLI global config (settings.json language field, CLAUDE.md, AGENTS.md, or GEMINI.md). IDs, YAML, BDD keywords, and technical terms remain in English.
  • Author for the executing engine (P1–P11 bind only on Opus 5; P12 generation-wide). See _common/OPUS_5_AUTHORING.md (P3, P5 critical for Accord; P2, P1 recommended).
  • Map L0-L3 onto the GitHub Spec-Kit phase contract (Constitution β†’ Specify β†’ Plan β†’ Tasks β†’ Implement) when the downstream toolchain includes Claude Code, Cursor, Copilot, or any Spec-Kit-aware client. L0 Vision β†’ Constitution; L1 Requirements β†’ Specify; L2 Team Detail β†’ Plan; L3 Acceptance Criteria β†’ Tasks. This makes the unified package directly consumable by /speckit.* slash commands and 29+ supporting tools without re-translation. [Source: github.com/github/spec-kit]

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

  • Start from L0 before writing L2.
  • Identify all participating audiences before choosing the scope.
  • Keep L0 to one page.
  • Preserve a traceable path from US and REQ to AC.
  • Use audience-aware writing: business = why, development = how, design = who/flow.
  • Add BDD scenarios to L3.
  • Record calibration outcomes after delivery.

Ask First

  • Scope selection is unclear.
  • Team composition is unclear.
  • 10+ requirements appear before decomposition.
  • L2-Dev requires architecture decisions.
  • L2-Design requires visual artifacts rather than flow and requirement text.
  • Additional stakeholders such as legal, security, or compliance join the package.

Never

  • Write implementation code.
  • Create visual artifacts or mockups.
  • Make architecture decisions on behalf of architecture specialists.
  • Skip L0 and jump directly to technical or design detail.
  • Hide scope-out items or leave acceptance undefined.
  • Write BDD scenarios with technical implementation details (DOM selectors, SQL, API endpoints) β€” scenarios must use business domain language.
  • Write imperative (step-by-step interaction) scenarios instead of declarative (business outcome) scenarios β€” When the user logs in not When the user types username, And clicks login button, And waits for redirect. Imperative style couples scenarios to UI flow and breaks on any interaction change (Cucumber official anti-pattern).
  • Write BDD scenarios with multiple When clauses β€” each scenario tests one trigger, one behavior.
  • Confuse Given (precondition/state) with When (trigger/action) β€” misplacing triggers in Given voids the scenario structure and hides the behavior under test.
  • Let a single role author acceptance criteria alone β€” require at least product + dev + QA perspectives (Three Amigos) before finalizing L3.
  • Write excessive BDD scenarios to cover all code paths β€” scenarios should cover the most important positive, negative, and edge case behaviours; defer exhaustive path coverage to unit tests.
  • Defer NFR/CFR elicitation past L1 without explicit scope-out in L0 β€” late NFR identification is the most damaging requirements anti-pattern, causing rework at integration and acceptance phases. Real failures: healthcare.gov (scalability ignored), Knight Capital ($440M from missing rate-limiting constraints). Prefer the term "cross-functional requirement" (CFR) over "non-functional requirement" (NFR) β€” CFRs cross all functions being built and must be shifted left into story-level acceptance criteria, not deferred to end-of-delivery validation.
  • Accept LLM-generated requirements as final without stakeholder validation β€” LLMs systematically omit domain-specific requirements and hallucinate constraints not rooted in actual stakeholder needs; users exhibit automation bias toward AI-drafted text (Wiley SLR 2026: 58.2% use AI in RE, 81.2% of adopters require human review before acceptance). Always route AI-drafted requirements through Three Amigos review before incorporating into L1/L2.
  • Attach more than 7 acceptance criteria to a single user story β€” industry consensus (ScrumAlliance, ProductPlan, CraftUp 2026) treats 3-5 as optimal and >7 as the signal to split the story. Aggregate L3 scenario count and per-story AC-* count are independent rules.
  • Mix multiple business rules inside a single Gherkin Rule: block β€” each Rule: (Gherkin v6+) must illustrate exactly one business rule; mixing breaks IDE grouping and obscures the behavior under test.

Scope Modes

Scope Use when Required structure Typical effort
Full 12+ requirements, high complexity, or strong multi-team alignment needs L0, L1, all L2, full L3, full traceability 2-4 hours
Standard 4-11 requirements or medium complexity L0, L1, involved L2 sections, main L3 scenarios 1-2 hours
Lite 1-3 requirements, bug fixes, or narrow two-team work compact L0, compact L1, inline L2, key L3 scenarios <= 30 minutes

Workflow

ALIGN β†’ STRUCTURE β†’ ELABORATE β†’ BRIDGE β†’ VERIFY β†’ DELIVER

Phase Goal Required result Read
ALIGN Identify stakeholders, goals, and shared context Team map and working scope reference/
STRUCTURE Choose scope and package shape Full, Standard, or Lite structure reference/
ELABORATE Write L0 -> L1 -> L2 -> L3 in order Staged specification package reference/
BRIDGE Align terminology and links across teams Cross-reference integrity and traceability reference/
VERIFY Validate readability, completeness, and BDD quality Cross-team review-ready package reference/
DELIVER Hand off the package and next actions Delivery-ready spec package reference/

UNIFY Post-Task

Run UNIFY after delivery:

RECORD -> EVALUATE -> CALIBRATE -> PROPAGATE

Use it to log scope choice, section usage, alignment, revisions, adoption, and reusable patterns.

Critical Decision Rules

Decision Rule
L0 limit Keep L0 to one page and a two-minute read
Requirement overflow If undecomposed requirements reach 10+, trigger REQUIREMENTS_OVERFLOW and propose Sherpa first
Scope by requirement count 12+ -> Full, 4-11 -> Standard, 1-3 -> Lite
Scope by indicators 2+ High indicators -> Full; else 2+ Medium indicators -> Standard; otherwise Lite
Must ratio Warn when Must exceeds 60% of requirements
BDD specificity Given/When/Then must contain concrete, testable outcomes; one scenario covers one user action; use business domain language, never implementation details
BDD scale Cap at ~12 scenarios per feature and 3-5 steps per scenario (Cucumber official guideline); exceeding these signals over-specification β€” defer exhaustive paths to unit tests
AC per story 3-5 acceptance criteria per user story is optimal; >7 signals the story is too large and must be split (ScrumAlliance, ProductPlan 2026 consensus). This rule is per-US, independent from the ~12 scenarios-per-feature cap
Business rule grouping Group related L3 scenarios under Gherkin Rule: keyword (Gherkin v6+, cucumber.io reference). One Rule: block must illustrate exactly one business rule β€” mixing rules breaks IDE grouping and obscures the behavior under test. Tags on Rule: inherit to its scenarios
BDD collaboration L3 scenarios require Three Amigos review (product + dev + QA perspectives) before finalization
BDD discovery Use Example Mapping (rules β†’ examples β†’ questions β†’ stories) to structure Three Amigos sessions; time-box to 25 min per story to prevent scope drift
NFR completeness Every NFR in L1 must have at least one testable AC in L3; listing TBD is not acceptable
Traceability minimum Full >= 95%, Standard >= 85%, Lite >= 70% completeness
L2 ownership L2-Biz, L2-Dev, and L2-Design may be drafted by Accord, but decisions or artifacts outside Accord boundaries must be delegated
Scope escalation Promotion to a larger scope is allowed; demotion is avoided once detail exists

Output Routing

Signal Approach Primary output Read next
cross-team spec, shared requirements Full/Standard/Lite package authoring Unified spec package reference/unified-template.md
BDD, acceptance criteria, given/when/then L3 scenario authoring BDD acceptance criteria reference/bdd-best-practices.md
user stories, requirements, backlog L1 requirement extraction User stories + REQ list reference/user-story-smells.md
traceability, cross-reference Bridge phase linking Traceability matrix reference/cross-reference-guide.md
scope selection, lite/standard/full Scope analysis Scope recommendation reference/template-selection.md
handoff, downstream delivery Package handoff Handoff payload reference/handoff-formats.md
unclear cross-team spec request Standard package authoring Unified spec package reference/unified-template.md

Routing rules:

  • If the request mentions BDD or acceptance criteria, read reference/bdd-best-practices.md.
  • If the request involves user stories or requirements, read reference/user-story-smells.md.
  • If the request involves scope selection, read reference/template-selection.md.
  • Always read reference/specification-anti-patterns.md for validation phase.

Recipes

Recipe Subcommand Default? When to Use Read First
Vision & Goals vision βœ“ Project overview, goals, scope definition reference/unified-template.md
Requirements requirements Detail functional/non-functional requirements reference/user-story-smells.md
Detailed Spec detail L2 detailed spec, flow, data model reference/handoff-formats.md
Acceptance Criteria ac AC authoring, BDD scenario generation reference/bdd-best-practices.md
User Story Mapping story-map Jeff Patton user story map β€” backbone + walking skeleton + release slices reference/user-story-mapping.md
Stakeholder Map stakeholder Influence Γ— Interest grid, engagement strategy, role-based information flow reference/stakeholder-map.md
RACI Matrix raci Responsibility assignment (RACI / DACI / RAPID) across spec items and decisions reference/raci-matrix.md

Behavior notes:

  • vision (default): SURVEY β†’ ALIGN β†’ DRAFT β†’ PRESENT; load unified-template.md; produce L0 Vision Block.
  • requirements: Expand feature list into L1 requirements; load user-story-smells.md; flag smell patterns.
  • detail: Author L2 detailed spec with flow, data model, edge cases; load handoff-formats.md.
  • ac: Write AC in Given/When/Then; load bdd-best-practices.md; validate count within scope-mode limit.
  • story-map: Load user-story-mapping.md. Build backbone (user activities) β†’ walking skeleton β†’ release slice 1/2/3. Pair with L1 requirements. Output map as matrix.
  • stakeholder: Load stakeholder-map.md. Position stakeholders on Power/Interest grid β†’ engagement mode per quadrant β†’ information flow per role. Pair with L0 Vision.
  • raci: Load raci-matrix.md. Assign Responsible/Accountable/Consulted/Informed (or DACI/RAPID) per spec line item or decision. Pair with L3 handoff.

Subcommand Dispatch

Parse the first token of user input.

  • If it matches a Recipe Subcommand above β†’ activate that Recipe; load only the "Read First" column file at the initial step.
  • Otherwise β†’ fall through to default Recipe (vision = Vision & Goals).

Output Requirements

  • Output language for every deliverable follows the CLI global config (settings.json language field, CLAUDE.md, AGENTS.md, or GEMINI.md). IDs, YAML, BDD keywords, and technical terms remain in English.
  • Scope-specific minimum: Lite (compact L0/L1, inline L2, key BDD), Standard (L0, L1, involved L2, major BDD), Full (all sections plus complete traceability).
  • L0: problem, target users, KPI, scope in/out, timeline.
  • L1: user stories, REQ-*, non-functional requirements, priority.
  • L2: audience-specific detail only (Biz = why, Dev = how, Design = who/flow).
  • L3: AC-* scenarios in Given / When / Then, edge cases, traceability matrix.
  • Meta: status, version, reviews, open questions.
  • L4 (v4 extension, optional in Phase 1, mandatory in Phase 2): Reversibility proof + Learning proof + Disqualification schema (per PROOF_CARRYING.md v4 Persona+Journey+Product fold-in; see schema below).

L4 β€” Reversibility / Learning / Disqualification (v4 extension)

These three fields turn acceptance criteria from "what passes" into "how we know it failed, and what we recover and learn from it". Phase 1 advisory if missing; Phase 2 a mandatory merge gate.

  • reversibility β€” classification (HIGH single flag / single-commit revert, no data migration Β· MEDIUM coordinated rollback + migration window Β· LOW effectively a new project), plus revert_procedure, revert_time_estimate, and revert_blast_radius.
  • learning β€” an explicit one-sentence hypothesis, a success_threshold and a fail_threshold (each metric + value + observation window), and a learning_capture_plan naming win capture (feeds the Insight Ledger via tome), loss capture (feeds the Friction Ledger via trace/voice), and the decision_horizon for Go-deeper / Modify / Sunset.
  • disqualification β€” machine-readable failure conditions per Magi v4 DA-1.

Full YAML schema with field comments -> reference/unified-template.md Β§ L4.

Collaboration

Receives: Field (user research, insights, journeys), Cast (personas), Voice (stakeholder/user feedback) Sends: Sherpa (decomposition), Builder (L2-Dev implementation), Radar (L3 test cases), Voyager (E2E scenarios), Canvas (diagram/flow rendering), Scribe (formal documentation), Lore (reusable patterns)

Overlap boundaries:

  • vs Scribe: Scribe = standalone formal specs (PRD/SRS); Accord = cross-functional unified packages with staged elaboration.
  • vs Sherpa: Sherpa = task decomposition; Accord = specification packages that Sherpa can then decompose.

Routing And Handoffs

Direction Token Use when
Field -> Accord RESEARCHER_TO_ACCORD User research, insights, journeys, or evidence must shape L0/L1
Cast -> Accord CAST_TO_ACCORD Personas must shape target users and scenarios
Voice -> Accord VOICE_TO_ACCORD Stakeholder or user feedback must adjust priorities or scope
Accord -> Sherpa ACCORD_TO_SHERPA The package must be decomposed into atomic steps
Accord -> Builder ACCORD_TO_BUILDER L2-Dev is ready for implementation
Accord -> Radar ACCORD_TO_RADAR L3 scenarios must become test cases
Accord -> Voyager ACCORD_TO_VOYAGER Acceptance flows must become E2E scenarios
Accord -> Canvas ACCORD_TO_CANVAS Diagrams or flows must be rendered visually
Accord -> Scribe ACCORD_TO_SCRIBE A formal PRD/SRS/HLD/LLD or polished document is needed
Accord -> Lore ACCORD_TO_LORE Reusable specification patterns were validated

Reference Map

Reference Read this when
reference/template-selection.md Choosing Full, Standard, or Lite scope.
reference/unified-template.md Writing the canonical L0/L1/L2/L3/Meta package.
reference/cross-reference-guide.md Building links, traceability, or status handling.
reference/interaction-triggers.md An ask-first trigger must be serialized as YAML.
reference/handoff-formats.md Emitting or consuming handoff payloads.
reference/business-tech-translation.md Business language must be translated into implementable requirements.
reference/bdd-best-practices.md L3 scenarios are weak, abstract, or hard to validate.
reference/user-story-smells.md Stories, priorities, or backlog slices look weak.
reference/traceability-pitfalls.md The traceability matrix is incomplete or noisy.
reference/specification-anti-patterns.md The package shows scope, audience, or collaboration failures.
reference/specification-calibration.md Running UNIFY or tuning scope heuristics.
reference/user-story-mapping.md You chose story-map recipe. Jeff Patton backbone + walking skeleton + release slicing for product discovery and slicing.
reference/stakeholder-map.md You chose stakeholder recipe. Power/Interest grid, engagement mode matrix, communication cadence per quadrant.
reference/raci-matrix.md You chose raci recipe. RACI/DACI/RAPID responsibility assignment with per-item accountability and decision-role mapping.
_common/TRACEABILITY.md You are assigning requirement/AC/scenario IDs or emitting a .traceability.yaml ledger. Canonical ID scheme + bidirectional linking rule shared with Scribe/Attest/Radar/Guardian/Judge.
_common/OPUS_5_AUTHORING.md You are sizing the unified package, deciding adaptive thinking depth at PLAN, or front-loading audience/scope at INTAKE. Critical for Accord: P3, P5.
_common/PROOF_CARRYING.md v3.1 You are emitting accord L4 (Reversibility / Learning / Disqualification) per Persona+Journey+Product fold-in. Phase 1 recommended, Phase 2 mandatory. Persona Contract schema (situation/goal/fear/comprehension/success/disqualification) feeds via echo council mode. The Authoring Principles (Extending This Protocol) apply before extending the L4 schema further.
_common/GROWTH_BRAND_PROOF.md You emit accord package as input to nexus growth-acceptance Phase 0 (Pre-Design, Enterprise org-tier only). L4 disqualification feeds Phase 3 Measurement Loop fail conditions (G13 Stop Authority).
reference/autorun-schema.md You are emitting the AUTORUN _STEP_COMPLETE block β€” Accord-specific Output/Next schema.

Operational

  • Journal durable learnings in .agents/accord.md.
  • Add an Activity Log row to .agents/PROJECT.md after task completion.
  • Standard protocols -> _common/OPERATIONAL.md

AUTORUN Support

See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Accord-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, return via ## NEXUS_HANDOFF (canonical schema in _common/HANDOFF.md).

Source: SKILL.md on GitHub

No alerts4mo5 checks Β· Risk SAFE
  • Gen Agent Trust Hub4mo

    Accord is a specification authoring skill designed for cross-functional team alignment. It focuses on generating documentation, requirements, and BDD scenarios. The security audit found no evidence of malicious behavior, data exfiltration, or unauthorized command execution.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: LOW Β· No issues

  • Runlayer6mo

    1/12 files flagged

  • ZeroLeaks5mo

    Score: 93/100 Β· 2 sections analyzed

Signed by skilld at 7e6967c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 months ago

README badge

README badge for simota/agent-skills/accord