Skip to content
cccskills
FreePublished on GitHub

write-be-spec-write

Author and validate BE spec files, update indexes/tracker, run deepening and ambiguity gates, and enforce allowed next-step transitions

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md4.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Overview

Prerequisites

  1. BE spec stub exists and includes ## Classification
  2. Referenced Material Inventory exists from classify shard

Step-by-Step

Step 1 — Re-run and endpoint reconciliation gate

  1. Detect existing authored content and decide continue vs targeted redo.
  2. Build endpoint completeness reconciliation table before drafting sections.
  3. Require each unspecced endpoint to be either authored now or explicitly deferred with reason.

Step 2 — Write BE spec content

Use BE template/conventions and write full sections, including split-group metadata when applicable.

Core expectations:

  • endpoint contracts
  • schema rules
  • middleware/security controls
  • error strategy
  • testing strategy hooks
  • IA source mapping

Step 3 — Content completeness floor (replaces line-count gate)

For every endpoint, verify all of: request schema (fields + constraints + examples), success response schema, response schema per error class, validation rules per (field × constraint) with error codes, full error-code matrix (4xx for validation/auth/404/409/429, 5xx for downstream cascades), authorization row per role with allow/deny + ownership predicate, idempotency statement, rate limit (or explicit inheritance), and observability hooks (logs/metrics/audit/spans).

Hard gate: any missing cell on any endpoint blocks the spec from advancing. Inheritance from conventions must be cited; "implicit" is not allowed. Length is informational only.

Step 4 — Index and tracker updates

  1. Update .memory/wiki/specs/be/index.md.
  2. Update BE completion state in .memory/pipeline/progress/spec-pipeline.md.
  3. Handle structural-reference no-spec rows when classification indicates 0 specs.

Step 5 — Iterative deepening passes

Run multi-pass refinement (passes 1–7 mandatory, 8–10 conditional, hard stop after 10):

  1. cross-endpoint consistency
  2. sequencing/concurrency scenarios
  3. failure cascade analysis
  4. authorization completeness (role × endpoint matrix with no empty cells, ownership predicates, 403 vs 404 decisions)
  5. observability completeness (logs, metrics, audit-trail, trace spans per endpoint)
  6. rate-limit and abuse-protection edge cases (anonymous vs authed limits, burst, enumeration protection, mass-assignment whitelist)
  7. failure-mode partial-state hygiene (per external dependency: rollback / compensate / queue / surface) 8–10. additional convergence passes if prior pass produced significant additions

Step 6 — Cross-reference + ambiguity gates

  1. Verify back-links to IA source and related BE specs.
  2. Verify deep-dive and cross-shard source citations.
  3. Run micro/macro ambiguity checks, two-implementer test, devil's-advocate pass.
  4. If last BE spec, run /audit-ambiguity be before allowing FE recommendation.

Step 7 — Dependency/bootstrap and ledger updates

  1. Detect newly introduced dependencies and trigger bootstrap + verification as needed.
  2. Update feature ledger BE coverage when ledger exists.

Step 8 — Graph refresh, review request, and constrained next-step recommendation

  1. Run Protocol 8 fully, including mandatory memory_compile graph refresh after tracker verification.
  2. Present:
  • spec link(s)
  • cross-reference verification status
  • ambiguity gate status
  • spec graph refresh confirmation
  • pipeline state and only allowed next command (/write-be-spec or /write-fe-spec)

Completion Checklist

  • endpoint reconciliation table completed
  • BE spec content fully authored
  • complexity gate handled
  • BE index updated
  • pipeline tracker updated
  • deepening passes completed
  • ambiguity gate completed
  • dependency bootstrap checks handled
  • feature ledger BE coverage updated (if present)
  • spec graph refreshed via memory_compile
  • review requested with constrained next-step options

Next Steps

  • if BE specs remain: /write-be-spec
  • if BE complete and ambiguity audit passes: /write-fe-spec

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Structured methodology for adversarial thinking — generating attack scenarios, abuse cases, race conditions, and security edge cases against specs and implementations. Produces spec-level gap items, not code-level fixes.

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA.

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Manage API versioning and evolution with URL/header/query strategies, deprecation workflows, breaking change classification, sunset headers, and consumer-driven contract testing. Use when designing versioning strategy, deprecating endpoints, or evolving API contracts.

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Analyzes codebase structure, data flow, module relationships, and key patterns to generate and maintain a living architecture document (ARCHITECTURE.md).

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

See all skills by RepairYourTech

Report a problem with this skill