claudeframework: Skill for Claude Code

.claude/skills/0_spec/SKILL.md

0_spec is a skill for Claude Code from dixus/claudeframework. It costs 26 tokens per session (3,946 once invoked), scanned A, original, MIT.

A tool that turns requirements in a project's .claude/input/ folder into a detailed feature specification before coding begins.

In plain words
What is it for?
Use it to prepare specs for new features, including relevant project references and, when available, linked work items such as tickets or issues.
Why use it?
It organizes scattered requirements and project context into a written plan, reducing uncertainty before implementation.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

This is dixus/claudeframework's own configuration. It tells Claude Code how to work on claudeframework itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claudeframework configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dixus/claudeframework. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dixus/claudeframework/main/.claude/skills/0_spec/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dixus/claudeframework

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 0_spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/dixus/claudeframework/0_spec/github.svg)](https://agentmods.dev/skills/dixus/claudeframework/0_spec)
Your own site
<a href="https://agentmods.dev/skills/dixus/claudeframework/0_spec"><img src="https://agentmods.dev/badge/skills/dixus/claudeframework/0_spec/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 0_spec

Your own site · 80×15
<a href="https://agentmods.dev/skills/dixus/claudeframework/0_spec"><img src="https://agentmods.dev/badge/skills/dixus/claudeframework/0_spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.03946
Opus 5.5 $0.00010 $0.01578
Sonnet 5.5 $0.00005 $0.00789
Haiku 4.5 $0.00003 $0.00395

Measured 1mo ago against content hash 98f2324ba050, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

0_spec scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/0_spec/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create a detailed spec for the following feature: $ARGUMENTS

$ARGUMENTS is an optional feature name or focus hint. The primary requirements source is .claude/input/.

Steps:

  1. Read CLAUDE.md for project context and conventions
  2. Read all files in .claude/context/ if the directory exists — these are long-lived project references (schemas, API docs, glossaries) 2b. Resolve linked work items — if the input or $ARGUMENTS mentions a ticket/issue ID (e.g. "Ticket 1234", "#1234", "1234.Improvement..."), try to fetch it using the project's configured work-item tracker. Check which MCP tools are available (Azure DevOps, Jira, Linear, GitHub Issues, or similar). If a tool is available, fetch the ticket with comments and linked items. Review resolved related/parent items: their linked commits, branches, and PRs point to prior work. Run git show <sha> or git log <main>..<branch> on those references and fold the actual implementation status into the spec. Doing this before codebase exploration prevents you from re-scoping work that is already done elsewhere. If no tracker MCP tool is available, skip this step.
  3. Read all files in .claude/input/ if the directory exists — these are the raw requirements materials (docs, images, wireframes, PDFs). Treat them as the primary source of truth for what to build
  4. Explore the codebase to understand the relevant architecture — find and read the files most likely affected by this feature 4b. Check completed work: Before deferring any scope (especially frontend) because a dependency "is not yet implemented", verify the actual completion status. If a work-item tracker was queried in Step 2b, resolved related/parent items expose linked commits and branches. Use git show <sha> or git log <main>..<branch> to inspect what was actually built. If no tracker is available, check git log for related branch names or commit messages. Never assume a dependency is missing — check first.
  5. Identify: which files will change, what new files are needed, and what existing patterns to follow
  6. Before writing the spec, surface any ambiguous requirements or missing decisions. Ask 2–3 targeted clarifying questions — use selectable answer options where possible to keep responses fast. Wait for answers before proceeding. Skip this step if the requirements are already unambiguous. 6b. For PRDs that involve UI/UX decisions or architectural patterns not explicitly stated in the requirements, always surface these as questions — even if the PRD appears complete. Mark them as "(Implementation choice — not in PRD)" so the user knows they are optional and can be skipped if Claude should decide freely. Examples: component selection, state management granularity, polling intervals, retry logic, file upload UX patterns, where to place cross-cutting concerns in the service layer. 6c. After writing the spec, explicitly state which decisions were made freely (not specified in the PRD) under a section called "Decisions made by Claude". This makes assumptions visible and prevents silent architectural drift.
  7. Write the spec to .claude/specs/<kebab-case-feature-name>.md with these sections:
    • Goal: one-sentence summary
    • Requirements: bulleted list of what it must do
    • Out of scope: what it explicitly will not do
    • Affected files: list existing files that will change and why
    • New files: list any new files needed
    • Patterns to mirror: 2–3 specific existing files whose structure, naming, or style the implementation should follow — this is the codebase intelligence that lets /1_implement match conventions without exploring
    • Implementation notes: key decisions, edge cases to handle
    • UX concept (REQUIRED when the PRD includes a Frontend section — never silently drop frontend scope; if deferring, state the target PRD explicitly):
      • Component tree: hierarchical breakdown of components needed (leaf → container), noting which are new vs existing. Use indentation to show nesting.
      • Interaction flows: describe each distinct user journey as a numbered sequence of steps. For multi-step flows (wizards, forms, onboarding), include: trigger → intermediate states → success state → error/edge states. Use mermaid stateDiagram-v2 for complex flows with branching.
      • State & data flow: which component owns which state, what gets lifted, what goes into global store vs local state. Map data dependencies (e.g. "ResultsChart reads scores from Zustand store, computed by calculateScores() in scoring engine").
      • Responsive behavior: specify layout changes at breakpoints if the feature involves layout (e.g. "stack cards vertically below md"). Skip if not applicable.
      • Accessibility: required keyboard navigation, ARIA roles, focus management, screen reader considerations. At minimum: all interactive elements keyboard-reachable, form inputs labeled, error states announced.
      • Reuse check: list existing UI components/patterns in the codebase that can be reused or extended instead of built from scratch. Avoid creating new components when existing ones can be composed.
    • Contract (MANDATORY — this is the machine-checkable gate. It replaces the older prose-only Validation criteria section as the canonical statement of "done", so do not write both):

Read the full file on GitHub · 124 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +62 lines 98f2324ba050
  2. 2mo ago First seen · 62 lines · 26 tokens per session scan A 0e3e79e07b6d

Subscribe to this mod's changes

0_spec is a skill published in the GitHub repository dixus/claudeframework (10 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 3,946 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens