openspec-init

openspec-init is a skill for Claude Code from digital-stoic-org/agent-skills. It costs 36 tokens per session (911 once invoked), scanned A, original, MIT.

A project setup tool for OpenSpec, a structured workflow for planning and implementing software changes. It detects the project’s language and framework, then creates the basic OpenSpec files.

In plain words
What is it for?
Use it to detect a project’s structure or initialize OpenSpec with project guidance, coding conventions, and workflow settings.
Why use it?
It removes the manual work of inspecting a project and preparing the files needed to start using the workflow.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

Part of the openspec plugin — 9 skills shipped together

Good fit Use it to detect a project’s structure or initialize OpenSpec with project guidance, coding conventions, and workflow settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/digital-stoic-org/agent-skills/openspec-init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add digital-stoic-org/agent-skills --skill openspec-init
Clone the repo
git clone --depth 1 https://github.com/digital-stoic-org/agent-skills

Made for: Claude Code.

Or install openspec, the plugin that ships this one along with the rest of its 9 skills.

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 openspec-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/digital-stoic-org/agent-skills/openspec-init/github.svg)](https://agentmods.dev/skills/digital-stoic-org/agent-skills/openspec-init)
Your own site
<a href="https://agentmods.dev/skills/digital-stoic-org/agent-skills/openspec-init"><img src="https://agentmods.dev/badge/skills/digital-stoic-org/agent-skills/openspec-init/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 openspec-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/digital-stoic-org/agent-skills/openspec-init"><img src="https://agentmods.dev/badge/skills/digital-stoic-org/agent-skills/openspec-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 911 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.00036 $0.00911
Opus 5.5 $0.00014 $0.00364
Sonnet 5.5 $0.00007 $0.00182
Haiku 4.5 $0.00004 $0.00091

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

Security

Grade A, and why

openspec-init 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.

openspec/skills/openspec-init/SKILL.md · 127 lines

How it starts

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

OpenSpec Init

Initialize OpenSpec in a project. Detects framework and creates structure.

Commands

detect

Analyze project to identify framework and structure.

Steps:

  1. Check for framework markers:
    • package.json → Node.js (check for next, react, vue, svelte)
    • pyproject.toml or requirements.txt → Python
    • Cargo.toml → Rust
    • go.mod → Go
  2. Output detected framework, language, and key files

Output format:

framework: [detected]
language: [detected]
package_manager: [detected]
entry_points: [list]

init

Create OpenSpec directory structure.

Input: $ARGUMENTS = project description (optional)

Steps:

  1. Run detect if not already done
  2. Create structure:
    openspec/
    ├── project.md    # From template + detected context
    └── AGENTS.md     # Copy from openspec CLI or template
    
  3. Generate project.md with:
    • Tech Stack (from detection)
    • Naming Conventions (kebab-case default)
    • Code Style (framework-appropriate)
    • Git Workflow (conventional commits)
    • Exploration Strategy (tools + must-read files)
    • Execution Philosophy (mode + principles)

Exploration Strategy template:

context_sources:
  primary:
    - openspec/project.md
    - openspec/changes/{id}/proposal.md
    - openspec/changes/{id}/tasks.md
    - openspec/changes/{id}/test.md
    - openspec/changes/{id}/specs/*.md
  artifacts:
    - openspec/changes/{id}/test-logs/*.md
  must_read:
    - CLAUDE.md
tools:
  codebase: [Glob, Grep, Read, Task:Explore]
  # mcp_serena: true      # Uncomment for large C#/.NET
  # mcp_sourcegraph: true # Uncomment for monorepos

Execution Philosophy template:

mode: garage  # garage | scale | maintenance

modes:
  garage:
    description: Fast iteration, validate ideas quickly
    principles:
      - Ship fast, iterate faster (speed > polish)
      - Working > perfect (80% solution now beats 100% later)
      - Validate with real usage (dogfood immediately)
      - Defer optimization until patterns stabilize
      - Fail fast, learn faster
    accept: [tech_debt, rough_edges, manual_steps, minimal_docs]
    reject: [broken_core_flows, data_loss, security_holes]
    anti_patterns:
      - Over-engineering for hypothetical futures
      - Gold-plating before validation
      - Premature abstraction
      - Analysis paralysis

  scale:
    description: Production hardening, team growth
    principles:
      - Stability over speed (measure twice, cut once)
      - Document decisions for team alignment
      - Abstractions justified by repeated patterns
      - Test coverage for critical paths
    accept: [slower_iteration, more_review, documentation_overhead]
    reject: [untested_deployments, undocumented_apis, tribal_knowledge]
    anti_patterns:
      - Cowboy coding without review
      - Skipping tests for speed
      - Undocumented architectural decisions

  maintenance:
    description: Stability preservation, minimal changes
    principles:
      - If it works, don't touch it
      - Minimal blast radius for changes
      - Comprehensive regression testing
      - Document before modifying
    accept: [conservative_changes, extensive_testing, slow_rollouts]
    reject: [unnecessary_refactors, feature_creep, risky_upgrades]
    anti_patterns:
      - Refactoring for aesthetics
      - Upgrading dependencies without cause
      - Adding features during maintenance windows

Read the full file on GitHub · 127 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 First seen · 127 lines · 36 tokens per session scan A 2c10c437286a

Subscribe to this mod's changes

openspec-init is a skill published in the GitHub repository digital-stoic-org/agent-skills (20 stars, last pushed 12d ago), licensed MIT. It adds 36 tokens to every session and 911 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-09-04.

Related

Other skills, from other repositories