pageel/para-workspace/spec
Claude Code and agent skill by pageel/para-workspace
- community
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/specSKILL.md
Spec-Driven Development — Governance & Templates
Version: 1.0.1 | Kernel min: 1.7.15 | Type: Sidecar SkillCompanion 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)
1.3 Reframe Vague Requirements
When requirements are vague, Agent MUST translate them into testable conditions:
This lets the team verify completion objectively, not subjectively.
1.4 Boundaries System
Every spec MUST define three tiers of boundaries:
| Tier | Meaning | Example | |
|---|---|---|---|
| Always do | Non-negotiable rules | Run tests before commits, validate inputs | |
| Ask first | Requires human approval | DB schema changes, adding dependencies | |
| Never do | Absolute prohibitions | Commit 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:
- Locate the spec: Find the relevant
artifacts/specs/spec-*.mdfile - Re-read Success Criteria: Use
view_fileto read the spec's success criteria section - Re-read Boundaries: Confirm the Always/Ask First/Never rules are still in working memory
- 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.
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:
- CORS Credentials Check: If a frontend application (e.g.
app.example.comorcms.example.com) calls a separate API origin (e.g.api.example.comor a different port), the request options MUST explicitly includecredentials: 'include'to allow the browser to transmit and receive cookies. - 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 (Laxfor SSO redirect endpoints,Strictfor API endpoints).Domain: Define the exact sharing scope (e.g.,.example.comto share across subdomains, or omit for same-origin restriction).
- 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 Alignmentsection 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.mdDR1 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.logas 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 Logsection, 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/specworkflow.
| Resource | Relative Path | When to Load | |
|---|---|---|---|
| Feature Spec Template | references/templates/feature-spec.md | Step 3: Writing spec document | |
| Spec Quality Checklist | references/spec-quality-checklist.md | Before 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
| Status | Meaning | |
|---|---|---|
📝 Draft | Being written, not yet reviewed | |
✅ Approved | All 3 gates passed, ready for implementation | |
🔄 Updated | Modified after initial approval (scope change) | |
📦 Archived | Implementation complete, moved to specs/done/ |
Storage Convention
Integration with Other Workflows
| Workflow | Relationship | |
|---|---|---|
/brainstorm | Upstream — explore before specifying | |
/plan | Downstream — create formal plan from spec | |
/backlog | Downstream — add spec tasks to backlog | |
/verify | Downstream — verify implementation against spec criteria | |
/docs | Parallel — architecture docs feed spec context |
Graph-Awareness
🔍 If project has.beads/graph/, readpara-graph §3.3.4before 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
Loadreferences/spec-quality-checklist.mdfor 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):
- 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.
- Spec Index Sync:
- MUST register the spec in
artifacts/specs/README.mdindex.
- Sysdesign Specs Table Sync:
- MUST update the corresponding spec entry in the
## 🔗 Specs Mappingtable of the parent Sysdesign file fromPlannedtoActivewith a link.
- 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:
- Auditing Engine: Agent MUST evaluate the active spec against the 29 checkpoints in
references/spec-quality-checklist.md. - CSA Standard Validation: Validate anchors strictly against G1, G2, and G3 criteria.
- 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
- SKILL.md in the repositoryCheckingtemplates/common/agents/skills/spec/SKILL.md
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
[](https://verified-skill.com/skills/pageel/para-workspace/spec)