pageel/para-workspace/spec

Claude Code and agent skill by pageel/para-workspace

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Governance skill for /spec workflow — provides spec templates, assumption surfacing rules, boundary definitions, and quality checklists. Load when creating specifications, defining feature scope, surfacing assumptions, writing acceptance criteria, or reviewing specs. Even if the user doesn't mention "spec", load this skill when requirements are ambiguous and need to be formalized before coding.

Install

npx vskill@latest install pageel/para-workspace/spec

SKILL.md

Spec-Driven Development — Governance & Templates

Version: 1.0.1 | Kernel min: 1.7.15 | Type: Sidecar Skill
Companion workflow: /spec (workflows/spec.md)

This skill governs the quality standards, assumption surfacing rules, and document templates for the /spec workflow. The workflow handles step-by-step logic; this skill provides the governance rules and data resources.


1. Core Principles

1.1 Assumptions Are Dangerous

The spec's entire purpose is to surface misunderstandings before code gets written. Assumptions are the most dangerous form of misunderstanding.

Agent MUST:

  • List ALL assumptions before writing spec content (Step 2 of workflow)
  • Pull assumptions from project.md (tech stack, dependencies, deployment)
  • Identify implicit requirements the user hasn't stated
  • Flag ambiguous requirements with a concrete default
  • WAIT for user confirmation before proceeding

Agent MUST NOT:

  • Silently fill in ambiguous requirements
  • Proceed with "I think" or "I believe" — surface it as an explicit assumption
  • Skip assumption listing because "it's obvious"
1.2 Gated Workflow — No Shortcuts

Each phase produces a concrete output. Skipping gates leads to:

  • Misaligned expectations (Agent builds wrong thing)
  • Scope creep (no written boundaries)
  • Rework (assumptions discovered during implementation)
SPECIFY ──→ PLAN ──→ TASKS ──→ IMPLEMENT
│ │ │ │
▼ ▼ ▼ ▼
Human Human Human Human
reviews reviews reviews reviews
1.3 Reframe Vague Requirements

When requirements are vague, Agent MUST translate them into testable conditions:

REQUIREMENT: "Make the search fast"
REFRAMED SUCCESS CRITERIA:
- Search returns results in < 200ms for 10k records
- UI shows loading indicator during search
- Results are paginated (max 50 per page)
→ Are these the right targets?

This lets the team verify completion objectively, not subjectively.

1.4 Boundaries System

Every spec MUST define three tiers of boundaries:

TierMeaningExample
Always doNon-negotiable rulesRun tests before commits, validate inputs
Ask firstRequires human approvalDB schema changes, adding dependencies
Never doAbsolute prohibitionsCommit secrets, edit vendor dirs, remove failing tests
1.5 Spec Re-read Checkpoint (Implementation Guard)

Before starting ANY implementation task derived from an approved spec, Agent MUST:

  1. Locate the spec: Find the relevant artifacts/specs/spec-*.md file
  2. Re-read Success Criteria: Use view_file to read the spec's success criteria section
  3. Re-read Boundaries: Confirm the Always/Ask First/Never rules are still in working memory
  4. Cross-reference task: Verify the current task maps to a specific spec requirement

Why this matters: During long coding sessions, Agent context decays. A task that started aligned with the spec can drift into hallucinated requirements if the spec is not refreshed. This checkpoint costs ~200 tokens but prevents ~2000 tokens of rework from spec violations.

BEFORE each implementation task:
┌─────────────────────────────┐
│ 1. view_file(spec) │ ← Re-read success criteria
│ 2. Confirm task↔spec match │ ← Verify alignment
│ 3. Check boundaries │ ← Always/Ask/Never still loaded?
│ 4. BEGIN coding │ ← Only after checkpoint passes
└─────────────────────────────┘

Anti-pattern: "I already read the spec earlier" — earlier context may be truncated or decayed. Re-read is cheap insurance.

1.6 Browser Sandbox & Transport Verification (SSO & Integration Guard)

When specifying or implementing features involving authentication, sessions, cookies, or cross-origin/subdomain API communication, Agent MUST enforce strict compliance with browser sandbox policies and network boundary rules:

  1. CORS Credentials Check: If a frontend application (e.g. app.example.com or cms.example.com) calls a separate API origin (e.g. api.example.com or a different port), the request options MUST explicitly include credentials: 'include' to allow the browser to transmit and receive cookies.
  2. Cookie Security Attributes: All cookies used for authentication/session MUST be specified with exact attributes:
  • HttpOnly: Block client-side JavaScript access (prevent XSS token theft).
  • Secure: Transmit only over HTTPS.
  • SameSite: Control cross-site transmission (Lax for SSO redirect endpoints, Strict for API endpoints).
  • Domain: Define the exact sharing scope (e.g., .example.com to share across subdomains, or omit for same-origin restriction).
  1. Transport Context Resolution (Client vs Server):
  • Client-to-Server: Standard browser request. Assumes browser cookies are available.
  • Server-to-Server: Server-side fetch (SSR) or Service Binding call. Does not carry browser cookies.
  • Rule: If a workflow/spec triggers a server-to-server call to a cookie-based endpoint, Agent MUST redesign the flow to either use a browser redirect (carrying cookies natively) or introduce secure API tokens (exchanged and validated via request payloads/Authorization headers).
1.7 Architectural Alignment Check (Sysdesign & Spec Coherence)

When creating or updating any specification, the Agent MUST explicitly document how the feature aligns with the overarching System Design (Sysdesign) and other existing specs:

  • Mandatory Alignment Evaluation: The spec MUST contain an ## Architectural Alignment section mapping its design decisions directly to the relevant Sysdesign components (e.g. database schema inheritance, API patterns, or latency budgets).
  • Collision & Overlap Check: The Agent MUST scan artifacts/specs/ to ensure the new spec does not duplicate or conflict with existing specs. The boundaries between overlapping specs MUST be clearly defined.
1.8 Diagnostics Design (Debug-by-Design Guard)

Every specification MUST include a ## 9. Diagnostics Design section that defines how errors will be identified, logged, and diagnosed BEFORE implementation begins.

Agent MUST:

  • Adapt Diagnostics Design content to the spec's primary domain (see rule diagnostics-debug.md DR1 for domain taxonomy)
  • Include at minimum: Error Taxonomy, Observable Checkpoints, and Environment Parity Risks sub-sections
  • Combine multiple domains if the spec crosses boundaries (e.g., Auth + API)

Agent MUST NOT:

  • Skip Diagnostics Design even for "simple" specs — every runtime feature can produce unexpected errors
  • Use console.log as the logging strategy — require structured JSON logging with error codes

Why this matters: The Logout CSRF Bug case study (pageel-cms v2.3.0) demonstrated that a fully-approved spec (QA 10/10) can still lead to 4+ debug sessions if no diagnostics strategy is designed upfront. Pre-designing Observable Checkpoints reduces debug-to-resolution time from multiple sessions to ~1 session.

1.9 Spec Modification Integrity (Preservation Guard) (v1.0.1)

When modifying or updating an existing specification, the Agent MUST NOT truncate, delete, or over-simplify existing detailed requirements, context, edge cases, or diagnostics designs unless they are explicitly deprecated by the new scope.

Agent MUST:

  • Preserve Context: Ensure that all detailed technical context (e.g., Astro redirection cookie-dropping issues, server-side cleanup endpoints) is preserved alongside the new multi-mode descriptions.
  • Merge Strategy: Merge the new requirements into the existing detailed text instead of replacing complex spec requirements with concise new summaries.
  • Change Log Sync: Every modification to a spec file MUST be logged in the spec's ## Change Log section, specifying the exact changes made and the version bump (e.g., v1.0.3 -> v1.0.4).
  • Proactive Verification: Before saving the updated spec, the Agent MUST review the diff to verify that no valuable technical context or Acceptance Criteria details from the previous version were silently deleted.
Rationale: In long coding sessions or when requirements evolve, there is a risk of over-simplifying specifications to fit a new feature, which silently erases past debugging details or edge cases that are still active and valuable.

2. Resource Router

Agent reads this table to locate data files needed by the /spec workflow.
ResourceRelative PathWhen to Load
Feature Spec Templatereferences/templates/feature-spec.mdStep 3: Writing spec document
Spec Quality Checklistreferences/spec-quality-checklist.mdBefore presenting spec for review (Gate 1)

Path resolution: All paths are relative to this skill's directory (.agents/skills/spec/).

3. Spec Document Lifecycle

States
StatusMeaning
📝 DraftBeing written, not yet reviewed
✅ ApprovedAll 3 gates passed, ready for implementation
🔄 UpdatedModified after initial approval (scope change)
📦 ArchivedImplementation complete, moved to specs/done/
Storage Convention
Projects/[project-name]/artifacts/specs/
├── spec-2026-04-22-feature-name.md ← Active specs
└── done/
└── spec-2026-04-01-old-feature.md ← Completed specs
Integration with Other Workflows
WorkflowRelationship
/brainstormUpstream — explore before specifying
/planDownstream — create formal plan from spec
/backlogDownstream — add spec tasks to backlog
/verifyDownstream — verify implementation against spec criteria
/docsParallel — architecture docs feed spec context
Graph-Awareness
🔍 If project has .beads/graph/, read para-graph §3.3.4 before writing specs.
Graph provides prior-art discovery (existing implementations, patterns, boundaries).
If no graph → proceed with source-only spec writing.

4. Quality Gate — Self-Check

Before presenting a spec for user review (Gate 1), Agent MUST self-check:

  • [ ] All 6 core areas are covered (Objective, Commands, Structure, Style, Testing, Boundaries)
  • [ ] Assumptions are explicitly listed (not silently embedded)
  • [ ] Success criteria are specific and testable (not vague)
  • [ ] Boundaries (Always/Ask First/Never) are defined
  • [ ] Open questions are listed (not hidden)
  • [ ] Vague requirements have been reframed into concrete conditions
Load references/spec-quality-checklist.md for the full validation checklist.

4.5. Three-Point Sync & Decomposition Protocol (v1.9.4)

When a spec is created via decomposition of a System Design (Sysdesign):

  1. Inheritance & Scope Mapping:
  • The spec con MUST inherit the DDL database schema and API payloads defined in the parent Sysdesign.
  • It only specifies business logic, detailed field validations, and specific UI states.
  1. Spec Index Sync:
  • MUST register the spec in artifacts/specs/README.md index.
  1. Sysdesign Specs Table Sync:
  • MUST update the corresponding spec entry in the ## 🔗 Specs Mapping table of the parent Sysdesign file from Planned to Active with a link.
  1. Sysdesign Diagram Sync:
  • MUST add an interactive link (click Component "file:///...") in the Sysdesign's Mermaid diagram pointing to this spec.

4.6. Automated QA Quality Audit (--qa) (v1.9.4)

When the --qa option is specified:

  1. Auditing Engine: Agent MUST evaluate the active spec against the 29 checkpoints in references/spec-quality-checklist.md.
  2. CSA Standard Validation: Validate anchors strictly against G1, G2, and G3 criteria.
  3. Structured Reporting: Agent MUST output a detailed compliance table in the chat, listing scores for each category and specific, actionable recommendations for any failing or weak items (e.g. UC/SC lacking measurable targets).

5. Anti-Patterns

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
49
Repository forks
18
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/pageel/para-workspace/spec/badge)](https://verified-skill.com/skills/pageel/para-workspace/spec)

Something wrong with this skill or its page? Tell us.