From speclan
Answers questions about SPECLAN specifications with full context on relationships, hierarchy, status, cross-references, and dependencies from speclan/ directory. Use for feature, requirement, goal, or ID queries.
How this skill is triggered — by the user, by Claude, or both
Slash command
/speclan:askThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Answer questions about SPECLAN specifications holistically. A spec rarely lives on its own — its ancestors, siblings, contributing goal, child entities, change requests, and implementation status all matter. The goal is to give the user a comprehensive, contextual answer — not just dump a single file.
Answer questions about SPECLAN specifications holistically. A spec rarely lives on its own — its ancestors, siblings, contributing goal, child entities, change requests, and implementation status all matter. The goal is to give the user a comprehensive, contextual answer — not just dump a single file.
Do not just read and parrot a single file. Instead, build a contextual picture:
Use the detection script to find the speclan directory:
source "${CLAUDE_PLUGIN_ROOT}/skills/speclan-format/scripts/detect-speclan.sh"
If no speclan root is found, inform the user that no SPECLAN project was detected.
Parse the user's question to determine:
F-0471, R-0311, G-001, CR-0012 → locate directly via query scriptUse the query script for discovery:
"${CLAUDE_PLUGIN_ROOT}/skills/speclan-query/scripts/query.sh" \
--type all --full "$SPECLAN_ROOT"
For targeted lookups, filter by type and optionally parent:
"${CLAUDE_PLUGIN_ROOT}/skills/speclan-query/scripts/query.sh" \
--type feature --filter-status approved "$SPECLAN_ROOT"
Then read the entity's markdown file for full content.
For every entity found, gather its context using the relationship exploration procedure in references/context-gathering.md. This is the core of the skill — it turns a flat file read into a rich, interconnected answer.
Structure the response based on what the user asked:
Present in this order:
speclan-format skill for lifecycle rules)tags that connect to other entities, any mentions in other specsPresent as a structured table:
| ID | Title | Type | Parent | Owner |
|---|
Group by goal or parent feature for readability.
Present the relationship tree, showing status badges:
G-001 Core Game Experience [released]
F-0471 Core Gameplay [in-development]
R-0311 Lateral March Edge Reversal [approved]
R-0312 Descent After Reversal [in-development]
...
Based on status and relationships, suggest relevant next steps:
/speclan:plan-manual to create an implementation plan"under-test"Use these inline badges for compact status display:
| Status | Badge |
|---|---|
| draft | [draft] |
| review | [review] |
| approved | [approved] |
| in-development | [in-dev] |
| under-test | [testing] |
| released | [released] |
| deprecated | [deprecated] |
This skill is read-only — it answers questions but doesn't modify specs. If the user wants to change something, point them to the appropriate command or skill (e.g., implement-manual for implementation, or direct editing for draft-status specs). This separation matters because answering questions and making changes are different intents, and accidental modifications while exploring can be disruptive.
Extract entity IDs from filenames/dirnames rather than frontmatter — the filename pattern {PREFIX}-{ID}-{slug} is the authoritative source of truth across all SPECLAN tools.
The hierarchy flows Goal → Feature → Requirement, with features nesting under other features. Requirements are always leaf nodes. When locked entities (in-development, under-test, released) come up, mention that changes require a Change Request — this is often the most actionable piece of context for the user.
references/context-gathering.md — detailed procedure for building the contextual picture around any entity, including upward/downward/sideways/CR exploration stepsThis skill builds on knowledge from:
speclan-format (${CLAUDE_PLUGIN_ROOT}/skills/speclan-format/SKILL.md) — entity hierarchy, status lifecycle, field definitions, validation rulesspeclan-query (${CLAUDE_PLUGIN_ROOT}/skills/speclan-query/SKILL.md) — fast entity discovery and filtering via scripts/query.shnpx claudepluginhub thlandgraf/cc-marketplace --plugin speclanGenerates Superpowers-compatible spec and plan document from sphinx-needs requirements, mapping coverage, identifying gaps, recording decisions, and creating actionable plan tables.
Transforms ideas into structured specifications (requirements, design, tasks) before implementation. Use when building features, fixing bugs, refactoring, or designing systems.
Provides conventions for writing self-contained, implementation-ready spec documents. Distinguishes specs from docs; covers structure including data model, architecture, security, operations, scope, and deliverables.