Skip to content

refactor: unified spec, skills, and workflow organization#1488

Draft
jsell-rh wants to merge 16 commits intomainfrom
spec-organization
Draft

refactor: unified spec, skills, and workflow organization#1488
jsell-rh wants to merge 16 commits intomainfrom
spec-organization

Conversation

@jsell-rh
Copy link
Copy Markdown
Contributor

@jsell-rh jsell-rh commented Apr 30, 2026

Summary

Implements #1478 — unified location, format, and conventions for specs, skills, and workflows.

  • specs/ — desired state of the system, organized by capability domain (sessions, agents, control-plane, integrations) with cross-cutting standards under specs/standards/
  • .agents/skills/ — Agent Skills (agentskills.io), domain-nested with cross-cutting skills flat at root; .claude/skills symlinks here for Claude Code discovery
  • .agents/workflows/ — agent-consumable procedures, domain-nested
  • specs/index.spec.md — defines spec ethos, format (RFC 2119 + Given/When/Then scenarios), and organization conventions
  • Domain-level .agents/skills and .claude/skills symlinks in specs/{domain}/ for scoped skill discovery

What moved

From To
docs/internal/design/*.spec.md specs/{domain}/
docs/internal/design/*.guide.md .agents/workflows/{domain}/*.workflow.md
Component DEVELOPMENT.md, *_PATTERNS.md specs/standards/{domain}/
docs/security-standards.md specs/standards/security/security.spec.md
docs/coderabbit-derived-conventions.md specs/standards/platform/cross-cutting.spec.md
.claude/skills/* .agents/skills/ (with domain nesting)

New skills

  • /discover — mandatory first step for all coding/spec work; walks through domain discovery via cd specs/{domain} and listing .claude/skills/
  • /spec — guides spec creation following the project format and 8-phase spec-change workflow

New workflows

  • spec-change.workflow.md — 8-phase spec change process: frame, ground in codebase, draft, critic pass, synthesize, design questions, apply fixes, second critic pass

Symlink structure

.claude/skills -> ../.agents/skills          # Claude Code discovers cross-cutting skills
specs/{domain}/.agents/skills -> symlink     # Domain-specific skill storage
specs/{domain}/.claude/skills -> symlink     # Claude Code discovers domain skills in context

Deleted

  • Ephemeral artifacts (plan.md, tasks.md, research.md, quickstart.md, checklists/) from numbered spec dirs

Test plan

  • Verify .claude/skills/ symlink resolves and Claude Code discovers top-level skills
  • Verify specs/{domain}/.claude/skills symlinks resolve to domain-specific skills
  • Verify all agent definitions reference valid paths (git grep for stale refs)
  • Verify no stale references to old paths remain (excluding historical metrics data)
  • Run /discover and /spec skills to confirm they work end-to-end

Closes #1478

jsell-rh and others added 16 commits April 30, 2026 15:12
Move *.spec.md files from docs/internal/design/ into capability domain
directories under specs/: sessions/, control-plane/, integrations/, agents/.

Update all cross-references in devflow skill, guide files, and within
the moved specs themselves. Historical metrics data in
scripts/coderabbit-triage/ intentionally left unchanged.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move conventions, patterns, and standards files into domain-organized
directories under specs/standards/:
- backend/ — conventions, error handling, K8s client patterns
- frontend/ — conventions, React Query patterns
- control-plane/ — operator conventions
- security/ — security standards
- platform/ — cross-cutting conventions (CodeRabbit-derived)

Update all references in agent definitions, amber-review skill,
CLAUDE.md, and BOOKMARKS.md.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rename *.guide.md to *.workflow.md and move from docs/internal/design/
to workflows/{domain}/:
- sessions/ambient-model.workflow.md
- control-plane/control-plane.workflow.md
- integrations/mcp-server.workflow.md

Fix pre-existing broken reference to ambient-data-model.md. Update
cross-references in devflow skill, manifests README, and design README.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move .claude/skills/ to top-level skills/ directory with capability
domain organization:
- Cross-cutting skills flat at root: devflow, align, amber-review,
  scaffold, memory, pr-fixer
- Domain-nested: sessions/, control-plane/, frontend/, integrations/

Create .claude/skills symlink → ../skills/ for Claude Code discovery.
Update convention-guard.sh to match both paths. Fix pre-existing
broken .claude/context/ references in devflow skill.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Delete plan.md, tasks.md, research.md, quickstart.md, and checklists/
from numbered spec directories. These are stale development artifacts
that don't belong alongside specs (desired state descriptions).

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add specs/, workflows/, skills/ to CLAUDE.md structure section. Update
BOOKMARKS.md with new Specs, Workflows, and Standards sections replacing
the old Component Development Guides and Cross-Cutting Conventions
sections. Fix stale .claude/patterns/ and .claude/context/ references.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move skills/ and workflows/ under .agents/ to follow the agentskills.io
convention:
- .agents/skills/ — domain-nested storage (sessions/, control-plane/,
  frontend/, integrations/) with cross-cutting skills flat at root
- .agents/workflows/ — domain-nested agent procedures
- .claude/skills symlinks to .agents/skills/ for Claude Code discovery
  (top-level only: cross-cutting skills)
- specs/{domain}/.agents/skills symlinks to .agents/skills/{domain}/
  for domain-scoped skill discovery

Update all references across CLAUDE.md, BOOKMARKS.md, devflow skill,
convention guard, spec files, design docs, and workflow files.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add .claude/skills symlinks alongside .agents/skills in each spec
domain directory so Claude Code discovers domain-specific skills
when working within a domain context.

Chain: specs/{domain}/.claude/skills -> ../.agents/skills ->
       ../../../.agents/skills/{domain}

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Mandatory first step for all coding and spec work. The skill walks
agents through identifying relevant capability domains, cd'ing into
specs/{domain}/ to discover domain-specific skills via .claude/skills
symlinks, loading relevant specs, and checking applicable standards.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Establishes the principles, format, and organization conventions for
specs: desired state (not issue tracking), living documents (amended or
deleted, never archived), behavior contracts with RFC 2119 keywords,
and Given/When/Then scenarios.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Guides agents through creating specs that follow the project's format
and conventions. Requires reading specs/index.spec.md before proceeding,
enforces behavior-contract focus over implementation details, and walks
through domain identification, context discovery, and RFC 2119 usage.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add brevity instruction to discover skill output. Clarify that
implementation invariants (not plans) may appear in specs, and remove
redundant "execution plans" bullet from the avoid list.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add .agents/workflows/specs/spec-change.workflow.md defining the full
7-phase spec change process: frame, draft, critic pass, synthesize,
design questions, apply fixes, second critic pass.

Update spec skill to require reading both specs/index.spec.md and the
workflow before proceeding, and restructure steps to follow the
workflow phases.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Insert a codebase grounding phase between framing and drafting. The
agent reads existing specs and code in affected areas, summarizes its
understanding back to the user in 3-5 sentences, and only asks
questions where the codebase is genuinely ambiguous. Saves the user
from answering things the agent can verify itself.

Renumber subsequent phases (now 8 total). Update spec skill to match.

Part of #1478

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 30, 2026

Deploy Preview for cheerful-kitten-f556a0 ready!

Name Link
🔨 Latest commit 23ce45a
🔍 Latest deploy log https://app.netlify.com/projects/cheerful-kitten-f556a0/deploys/69f3be123ae27700080d32bd
😎 Deploy Preview https://deploy-preview-1488--cheerful-kitten-f556a0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 30, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 502156c2-b87e-487c-a1e5-dee7ff8d355b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch spec-organization
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch spec-organization

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.

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.

proposal: unified spec location, format, and update workflow

1 participant