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.
npx agentmods add skills/specleft/specleft/docsnpx skills add SpecLeft/specleft --skill docsgit clone --depth 1 https://github.com/SpecLeft/specleftWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00980 |
| Opus 5 | $0.00000 | $0.00490 |
| Sonnet 5 | $0.00000 | $0.00196 |
| Haiku 4.5 | $0.00000 | $0.00098 |
Grade A, and why
docs 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SpecLeft CLI Reference
Setup
export SPECLEFT_COMPACT=1
All commands below run in compact mode.
Workflow
- specleft next --limit 1
- Implement test logic
- specleft features validate
- specleft skill verify
- pytest
- Repeat
Quick checks
- Validation: check exit code first, parse JSON only on failure
- Coverage:
specleft coverage --threshold 100and check exit code - Status:
specleft statusfor progress snapshots
Safety
- Always
--dry-runbefore writing files - Never use
--forceunless explicitly requested - Exit codes: 0 = success, 1 = error, 2 = cancelled
- Commands are deterministic and safe to retry
Features
Validate specs
specleft features validate --format json [--dir PATH] [--strict]
Validate before generating tests. --strict treats warnings as errors.
List features
specleft features list --format json [--dir PATH]
Show stats
specleft features stats --format json [--dir PATH] [--tests-dir PATH]
Add a feature
specleft features add --format json --id FEATURE_ID --title "Title" [--priority PRIORITY] [--description TEXT] [--dir PATH] [--dry-run]
Creates <features-dir>/feature-id.md. Never overwrites existing files.
Use --interactive for guided prompts (TTY only).
Add a scenario
specleft features add-scenario --format json --feature FEATURE_ID --title "Title" [--id SCENARIO_ID] [--step "Given ..."] [--step "When ..."] [--step "Then ..."] [--priority PRIORITY] [--tags "tag1,tag2"] [--dir PATH] [--tests-dir PATH] [--dry-run] [--add-test MODE] [--preview-test]
Appends to feature file. --add-test generates a test file.
--preview-test shows test content without writing. Use --interactive
for guided prompts (TTY only).
Status and Planning
Show status
specleft status --format json [--dir PATH] [--feature ID] [--story ID] [--unimplemented] [--implemented]
Next scenario to implement
specleft next --format json [--dir PATH] [--limit N] [--priority PRIORITY] [--feature ID] [--story ID]
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday First seen · 115 lines · 0 tokens per session scan A da7b607179f9
docs is a skill published in the GitHub repository SpecLeft/specleft (3 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 980 tokens. 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.
Other skills, from other repositories
test-generator
Generate pytest test cases for Python functions and classes.
test-guide
Test-writing guide for Backend.AI — propose success/exception/edge scenarios first, refine them with the user, then implement while reporting per-scenario verification status. Covers fixtures, withtables, mock repositories, pants test, optional TDD cadence.
codexspec:review-code
将所选变更作为严格缺陷门禁进行审查,或使用 --audit 审计路径.
codexspec:distill
Distill reusable, cross-feature knowledge from an interaction into the project profile.
codexspec:implement-tasks
执行实现任务,支持条件 TDD 工作流(代码使用 TDD,文档/配置直接实现).
codexspec:constitution
通过交互式或提供的原则输入创建或更新项目宪法,确保所有依赖模板保持同步。.