Skip to content

chore: add use-case spec skill#198

Merged
phuongnse merged 1 commit into
mainfrom
chore/axis-use-case-spec-skill
Jun 19, 2026
Merged

chore: add use-case spec skill#198
phuongnse merged 1 commit into
mainfrom
chore/axis-use-case-spec-skill

Conversation

@phuongnse

@phuongnse phuongnse commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

Adds axis-use-case-spec so docs-first use cases can be created or tightened before implementation starts. Updates use-case implementation and routing docs so missing README/AC coverage now routes through the spec skill before code work.

Linked spec

  • .agents/skills/axis-use-case-spec/SKILL.md
  • .agents/skills/axis-use-case-implementation/SKILL.md
  • docs/playbooks/agent-checklist.md
  • docs/playbooks/design-gate.md

Requirements & rules followed

  • Spec → code — N/A; this is a repo skill/process change, not shipped product behavior.
  • Ready review — changed skill and process-doc surfaces identified.
  • Path coverage matrix — N/A; no endpoint, handler, repo, job, consumer, or frontend implementation surface changed.
  • Verification gate — triggered local ready-review verification ran green.
  • Docs reviewAGENTS.md, agent-checklist, and design-gate routing updated for the new skill.
  • Retrospective review — N/A; no repeat finding or enforcement-status change introduced.
  • Workarounds — no P0/P1 workaround introduced or resolved.
  • No new TODO / FIXME / NotImplementedException / placeholder / stub under src/, tests/, frontend/src/; skill template placeholders removed.

Summary by CodeRabbit

  • New Features

    • Introduced a new Use-Case Specification workflow for creating and refining specifications, including product boundaries and acceptance criteria, before implementation.
  • Documentation

    • Updated workflow guides, agent checklists, and design gate documentation to route specification work to the new skill when use-case documentation is missing or incomplete.

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

A new axis-use-case-spec skill is introduced with a full SKILL.md workflow document and an OpenAI agent interface config. The existing axis-use-case-implementation skill is updated to defer to this new skill when no owning use-case spec exists. References to $axis-use-case-spec are added to AGENTS.md, the agent checklist, and the design-gate surface-routing table.

Changes

axis-use-case-spec skill and routing wiring

Layer / File(s) Summary
New axis-use-case-spec skill definition
.agents/skills/axis-use-case-spec/SKILL.md, .agents/skills/axis-use-case-spec/agents/openai.yaml
Introduces the complete axis-use-case-spec SKILL.md covering goal, workflow steps, verification checks, and output template, plus the OpenAI agent interface config with display name, short description, and default prompt.
Skill routing updates in existing docs and implementation skill
.agents/skills/axis-use-case-implementation/SKILL.md, AGENTS.md, docs/playbooks/agent-checklist.md, docs/playbooks/design-gate.md
Updates the axis-use-case-implementation skill description and workflow to fall back to $axis-use-case-spec when no owning AC exists; adds $axis-use-case-spec to the AGENTS.md Design Gate skill list, the agent checklist daily workflow and skill-routing tokens, and the design-gate surface-routing table.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • phuongnse/axis#48: Introduces docs/playbooks/agent-checklist.md, the same file updated in this PR to route use-case specs to $axis-use-case-spec.
  • phuongnse/axis#195: Defines and validates .agents/skills/* skill artifacts, directly related to the new axis-use-case-spec skill structure added here.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: add use-case spec skill' accurately and concisely describes the main change: introducing a new agent skill for use-case specifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/axis-use-case-spec-skill

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
.agents/skills/axis-use-case-spec/SKILL.md (2)

1-10: ⚡ Quick win

Add navigation backlink to match skill template conventions.

Per the playbook style guide, skill documentation files should include a navigation backlink to the parent index, enabling readers to navigate up. Add a backlink after the H1.

📍 Suggested navigation line after H1
# Axis Use Case Spec

> **Navigation**: [← .agents/skills/README.md](...) · [← agent-checklist.md](../../docs/playbooks/agent-checklist.md)

(Confirm the relative path to .agents/skills/README.md or the equivalent parent index for skills.)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.agents/skills/axis-use-case-spec/SKILL.md around lines 1 - 10, The SKILL.md
file is missing a navigation backlink after the H1 heading "# Axis Use Case
Spec" that should enable readers to navigate back to the parent index. Add a
backlink line immediately after the H1 heading that points to the parent skills
index at `.agents/skills/README.md` using a relative path reference, following
the playbook style guide conventions for skill documentation navigation.

Source: Coding guidelines


44-55: ⚡ Quick win

Consolidate repetitive routing instructions into a table for scannability.

Lines 45–54 each open with "Use" or "Run", making the prose dense and harder to scan. Replace with a table or use inline code references with colons to improve readability and align with playbook prose style.

🔧 Suggested consolidation using a reference table

Replace lines 44–49 with:

6. Route follow-up implementation.

   | Surface | Skill |
   |---------|-------|
   | REST/OpenAPI/API type changes | `$axis-api-contract` |
   | Events, commands, jobs, saga steps, Kafka, RabbitMQ, Wolverine, gRPC, Avro, or proto | `$axis-cross-module-contract` |
   | SPA routes, feature folders, forms, data fetching, or UI behavior | `$axis-frontend-feature` |
   | Implementation (only after spec exists and decisions resolved) | `$axis-use-case-implementation` |

Then replace lines 50–54 with a similar table for verification commands:

7. Verify the spec.

   | Check | Command |
   |-------|---------|
   | Use-case docs | `python scripts/axis.py check use-case-docs` |
   | Navigation | `python scripts/axis.py check doc-navigation` |
   | Markdown links (if changed) | `python scripts/axis.py check markdown-links` |
   | Wireframes (if Excalidraw/SVG changed) | `python scripts/axis.py generate wireframes` |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.agents/skills/axis-use-case-spec/SKILL.md around lines 44 - 55, The "Route
follow-up implementation" section and "Verify the spec" section in SKILL.md
contain repetitive structures that begin with "Use" and "Run" respectively,
making the content dense and difficult to scan. Consolidate the Route follow-up
implementation section (the list of items starting with "Use
$axis-api-contract") into a reference table with columns for contract type and
use case, and similarly consolidate the Verify the spec section (the list of
items starting with "Run python scripts/axis.py") into a table with columns for
verification type and command. This will improve readability and align with
playbook prose style conventions.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.agents/skills/axis-use-case-spec/SKILL.md:
- Around line 1-10: The SKILL.md file is missing a navigation backlink after the
H1 heading "# Axis Use Case Spec" that should enable readers to navigate back to
the parent index. Add a backlink line immediately after the H1 heading that
points to the parent skills index at `.agents/skills/README.md` using a relative
path reference, following the playbook style guide conventions for skill
documentation navigation.
- Around line 44-55: The "Route follow-up implementation" section and "Verify
the spec" section in SKILL.md contain repetitive structures that begin with
"Use" and "Run" respectively, making the content dense and difficult to scan.
Consolidate the Route follow-up implementation section (the list of items
starting with "Use $axis-api-contract") into a reference table with columns for
contract type and use case, and similarly consolidate the Verify the spec
section (the list of items starting with "Run python scripts/axis.py") into a
table with columns for verification type and command. This will improve
readability and align with playbook prose style conventions.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 71cdc7d4-c9c4-4ee6-88eb-cd42f5f31eaf

📥 Commits

Reviewing files that changed from the base of the PR and between da88fbe and d668a76.

📒 Files selected for processing (6)
  • .agents/skills/axis-use-case-implementation/SKILL.md
  • .agents/skills/axis-use-case-spec/SKILL.md
  • .agents/skills/axis-use-case-spec/agents/openai.yaml
  • AGENTS.md
  • docs/playbooks/agent-checklist.md
  • docs/playbooks/design-gate.md

@phuongnse phuongnse merged commit 0b89e96 into main Jun 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant