specification-first
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "specification-first" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-705d2400b3d3737b50928affe611d6c7c8f7e0bdec3bd9e72542cdc6921c132d. Verify the upstream source and version against https://github.com/NoobyGains/godmode before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Before writing implementation code for any feature, API, module, or system, produce a structured behavioral specification that defines inputs, outputs, constraints, edge cases, and acceptance criteria to serve as the authoritative reference.
Introduction source: third_party · NoobyGains · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Use when building any feature, API, module, or system before writing implementation code - produces a structured behavior specification defining inputs, outputs, constraints, edge cases, and acceptance criteria as the authoritative artifact
- Audience
- Mandatory when:** Developing a new feature or module Creating an API endpoint Constructing a data pipeline Building any system with defined inputs and outputs The user says "build me X" or "create Y" Exceptions (confirm with the human):** Configuration changes Single-line defect fixes with unambiguous behavior Documentation updates
- Inputs and outputs
- | Input | Type | Required | Constraints | Default | |-------|------|----------|-------------|---------| | [name] | [type] | [yes/no] | [validation rules] | [default] |
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: specification-first
description: Use when building any feature, API, module, or system before writing implementation code - produces a structured behavior specification defining inputs, outputs, constraints, edge cases, and acceptance criteria as the authoritative artifactSpecification First
Overview
Author the specification before the implementation. The specification is the source of truth. Code is generated to satisfy the specification, never the reverse.
Core principle: A behavior specification defines WHAT the system does. Code implements HOW. Without a specification, you are guessing.
No exceptions. No workarounds. No shortcuts.
The Prime Directive
NO IMPLEMENTATION WITHOUT A SPECIFICATION FIRST
If you have not produced a specification defining inputs, outputs, edge cases, and acceptance criteria, you are not authorized to write code. This is not optional. This is not excessive. This prevents the leading cause of AI-generated code failures: building the wrong thing.
When to Use
Mandatory when:
- Developing a new feature or module
- Creating an API endpoint
- Constructing a data pipeline
- Building any system with defined inputs and outputs
- The user says "build me X" or "create Y"
Exceptions (confirm with the human):
- Configuration changes
- Single-line defect fixes with unambiguous behavior
- Documentation updates
The Entry Protocol
BEFORE writing any implementation code:
1. IDENTIFY: What are the inputs?
2. DEFINE: What are the expected outputs?
3. CONSTRAIN: What are the boundaries and limitations?
4. EDGE: What happens at the edges? (empty, null, maximum, concurrent)
5. ACCEPT: What criteria demonstrate correctness?
6. WRITE: Produce the specification document
7. APPROVE: Obtain user confirmation
8. ONLY THEN: Implement
Omit any step = building the wrong thing
Specification Document Template
# [Feature Name] Specification
## Purpose
[Single sentence: what this does and why it exists]
## Inputs
| Input | Type | Required | Constraints | Default |
|-------|------|----------|-------------|---------|
| [name] | [type] | [yes/no] | [validation rules] | [default] |
## Outputs
| Scenario | Output | Shape |
|----------|--------|-------|
| Success | [what is returned] | [type/structure] |
| Invalid input | [error response] | [error shape] |
| Not found | [404 response] | [error shape] |
## Behavior
### Standard Path
1. [Step-by-step behavior for normal usage]
2. [Include state mutations, side effects]
### Edge Cases
| Case | Input | Expected Behavior |
|------|-------|-------------------|
| Empty input | "" | Return validation error |
| Maximum length | 10000 chars | Truncate to 5000 |
| Concurrent access | 2 simultaneous requests | Serialize second request |
| [case] | [input] | [behavior] |
## Acceptance Criteria
- [ ] [Criterion 1 - testable, specific]
- [ ] [Criterion 2 - testable, specific]
- [ ] [Criterion 3 - testable, specific]
## Explicitly Excluded (YAGNI)
- [Feature intentionally omitted]
- [Optimization intentionally deferred]
Relationship with Test-First Development
digraph spec_test_flow {
rankdir=LR;
spec [label="Author Spec\n(this skill)", shape=box style=filled fillcolor=lightyellow];
test [label="Write Failing Test\nfrom Spec Criteria", shape=box style=filled fillcolor="#ffcccc"];
code [label="Write Minimal Code\nto Pass Test", shape=box style=filled fillcolor="#ccffcc"];
verify [label="Verify Against\nSpec Criteria", shape=box style=filled fillcolor="#ccccff"];
spec -> test [label="acceptance criteria\nbecome test cases"];
test -> code [label="test-first cycle"];
code -> verify [label="all criteria satisfied?"];
verify -> spec [label="no - revise spec\nor implementation"];
}
Specification -> Tests -> Code -> Verify against Specification
The specification's acceptance criteria map directly to test cases. Each criterion generates at least one test. If you cannot derive a test from a criterion, the criterion is too vague -- refine the specification.
Specification Depth Levels
| Level | When Appropriate | Scope |
|---|---|---|
| Minimal | Simple feature, obvious behavior | Purpose + Inputs + Outputs + 3 acceptance criteria |
| Standard | Most features | Full template above |
| Exhaustive | Complex systems, public APIs, multi-tenant | Full template + sequence diagrams + state machines + error taxonomy |
Scale the specification to the complexity. A utility function warrants a minimal spec. An authentication system demands an exhaustive one.
Cognitive Traps
| Rationalization | Truth |
|---|---|
| "It is too simple to specify" | Simple features harbor hidden edge cases. A specification takes 2 minutes. |
| "I will figure it out while coding" | You will build the wrong thing and refactor three times. |
| "The user already described what they want" | Users describe goals, not behavior. The specification bridges that gap. |
| "Test-first is sufficient; I do not need a spec" | Test-first tells you WHAT to verify. The specification tells you WHAT to build. Both are necessary. |
| "Specifications slow me down" | Specifications prevent building the wrong thing. That is faster in every measurable way. |
| "I will write the spec afterward" | Specifications written after implementation rationalize what was built, not what should have been built. |
| "AI understands my intent" | AI produces plausible code that may diverge from intent. The specification eliminates ambiguity. |
Guardrails
Prohibited actions:
- Starting implementation before specification approval
- Writing tests without referencing specification criteria
- Changing behavior without updating the specification
- Shipping without verifying against acceptance criteria
- Deferring edge cases ("we will handle those later")
- Writing a specification after implementation is complete
Required actions:
- Obtain specification approval before writing code
- Map acceptance criteria to test cases one-to-one
- Update the specification when requirements evolve
- Verify all criteria pass before declaring completion
- Include explicitly excluded features (what you are NOT building)
Integration
Workflow sequence:
- godmode:intent-discovery -> produces design
- godmode:specification-first -> produces specification from design
- godmode:task-planning -> produces implementation plan from specification
- godmode:test-first -> produces tests from specification criteria
- godmode:completion-gate -> verifies against specification criteria
REQUIRED COMPANION SKILL: Invoke godmode:test-first when implementing
Version history
-
v2.1.2
GitHub ↗
Original release notes
### Changed - The repository root holds only what a harness looks for there. The version list moved from `.version-bump.json` to `scripts/version-files.json`; the OpenCode entry point is `.opencode/plugins/godmode.js` directly (`package.json` `main` and `exports`), so the root `index.js` shim is gone. ### Removed - Gemini CLI support (`gemini-extension.json`, `GEMINI.md`, the Gemini tool reference). Google retired Gemini CLI for individual users on 18 June 2026 and moved extensions to Antigravity plugins; GodMode's Antigravity plugin is that route. The manifest had never been verified on a live install.
-
v2.1.1
GitHub ↗
Original release notes
The one-round Codex review of the 2.1.0 diff (`docs/verification/codex-review-2.1.0.md`) found two validator bugs and five wording problems; all are fixed here. ### Fixed - Validator: the 20,000-byte skill cap and the 8,000-byte protocol position are measured in UTF-8 bytes, not UTF-16 characters, and a skill without a `## The Protocol` section now fails instead of slipping past the position check. - `intent-discovery`: the one-question-per-message guardrail names the builder-check round as its single exception, and the flow graph sends a small change straight to approval, as step 9 says. - `tests/acceptance/claude-code-stop-check.sh`: a refusal that quotes the forbidden sentence at the end of the message no longer counts as making the claim. - Changelog and reference wording: an Interfaces block is required only when another task consumes or produces the names; the reviewer agent's tool list is `Read, Grep, Glob, Bash` with writes forbidden by its prose, not "read-only". See the 2.1.0 notes for the features this patch completes.
-
v2.1.0
GitHub ↗
Original release notes
Seven months of Claude Code changes and a pass over nine peer projects, read from their source (research in `docs/research/2026-10-25-claude-code-and-peers-2-1.md`). The theme: rules that must hold every time move from prose into mechanisms the harness enforces, and plans and designs lean on what superpowers 7.0.1 learned the hard way. ### Added - `completion-gate` arms a one-shot stop check on Claude Code: a prompt-type `Stop` hook declared in the skill's frontmatter (`once: true`) re-reads the final message and sends an unsupported done/fixed/passing claim back for evidence, then removes itself. Verified end to end on Claude Code 2.1.310 (`tests/acceptance/claude-code-stop-check.sh`, `docs/verification/claude-code-stop-check-2026-10-25.md`). Other harnesses ignore the field. - `bin/godmode`: a plan-workspace helper (`workspace`, `brief`, `review-package`, `ledger`, `status`) on the shell PATH where the harness adds a plugin's `bin/` (Claude Code, Antigravity); `delegated-execution` and `inline-execution` prefer it and keep the plain-shell commands as the fallback. Tested by `tests/test-bin.sh`. - `task-planning`: every task carries an Interfaces block (what it consumes from earlier tasks, what later tasks rely on, exact signatures); the plan header gains a Review Focus section (the five input classes the design implies but no task tests); the self-review checks both. - `intent-discovery`: a builder-check prompt as a reference file, dispatched for projects only; the first message echoes a detailed request back with what the project survey found and asks the one open question; the offer to skip the questions appears only when the skill started on its own. - `test-first`: for a bug fix the reproducing test is its own commit before the fix, so the red evidence survives in history. - `fault-diagnosis` hands a verified non-obvious root cause to `knowledge-capture`. - Validator: a 20,000-byte cap per skill and a rule that `## The Protocol` sits within the first 8,000 bytes, because Claude Code re-attaches only the first 5,000 tokens of each invoked skill after compaction; `writing-skills` records both. - Plugin manifest fields `displayName`, `documentationUrl` and `supportUrl`; marketplace `tags`. ### Changed - `task-planning` writes decisions, not transcripts: a test step carries the test as code with the design's values; a code step carries the exact signature, file and pinned values, and the builder writes the body unless the signature and tests do not determine it. A plan several times longer than its design is flagged by the self-review. - `code-review`: a finding that cannot quote the line it is about is at most Minor, and reviewer agreement does not raise a severity. The shipped `code-reviewer` agent is read-only by its tool list. - Codex manifest (`.codex-plugin/plugin.json`) keeps its metadata under `extensions.com.openai` as the Codex plugin docs specify, names `doctor` as the onboarding skill, and drops the empty `hooks` key (plugins with lifecycle hooks are not eligible for the public directory). Reinstall verified on Codex CLI 0.163. - `model-routing`: a scoped re-review runs on a mid-tier model at low effort, not the cheapest tier. - Acceptance scripts pre-allow the Skill tool: a skill that declares hooks asks for permission in the default permission mode, which a headless run auto-denies. Interactive users answer the prompt once. ### Fixed - `tests/test-bin.sh` no longer fails under `pipefail` when `grep -q` closes the pipe early. Install or update: `/plugin install godmode --marketplace NoobyGains/godmode` (Claude Code), `agy plugin install https://github.com/NoobyGains/godmode` (Antigravity), `codex plugin marketplace add NoobyGains/godmode` then `codex plugin add godmode@godmode` (Codex).
-
v2.0.0
GitHub ↗
Original release notes
Seven months after 1.0, a ground-up rebuild. - The session-start hook that makes skills trigger never actually ran in 1.0 (single-quoted plugin root plus a missing executable bit). It does now, on every OS, with tests on Linux, macOS and Windows. - 33 skills (was 36), rewritten so the bodies describe actions and a per-harness reference maps them to real tools. Three new ones: `grounding` (verify facts that can change against current sources, never memory), `model-routing` (cheapest capable model per seat, named on every dispatch) and `cross-model-review` (a second model family reviews before landing). `delegated-execution` gained a ledger that survives context loss, rulings instead of stalls, and a bounded fix loop. - Native manifests for Claude Code, Antigravity, Codex, Cursor, Gemini CLI and OpenCode from one repository. Verified live on Claude Code 2.1.310, Antigravity CLI 1.4.7 and Codex CLI 0.163. - A validator and CI that fail on the mistakes that broke 1.0, a `doctor` skill, and a `claude plugin eval` suite with published with/without numbers (mean 0.83 vs 0.63). - New brand, README and animated demos. Install ``` # Claude Code /plugin install godmode --marketplace NoobyGains/godmode # Antigravity agy plugin install https://github.com/NoobyGains/godmode # Codex codex plugin marketplace add NoobyGains/godmode codex plugin add godmode@godmode ``` Full notes in CHANGELOG.md. Thanks to @ivnad95, @g7trader and @AdversaLLC for diagnosing the 1.0 hook bug, and to @urbabby for the orchestrator idea.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的规范优先开发方法论,解决AI生成代码的核心痛点
- 适用于广泛的软件工程场景,从简单功能到复杂系统
- 通过强制规范先行显著提升开发质量和效率
Highlights
- 触发词精准完整,覆盖多种变体
- 边界清晰,使用场景定义明确
- 不易与其他Skill重叠
Areas to improve
-
缺少端到端示例 Reported severity: Minor
文档结构完整但缺少一个具体的端到端示例来展示完整的工作流程
Recommendation: 建议添加一个完整的项目示例,展示从需求到规范再到验证的完整流程
Highlights
- Phase/步骤清晰,有明确的Entry Protocol
- 包含详细的Specification Document Template
- frontmatter完整,文档组织良好
Areas to improve
-
极端技术场景处理建议不足 Reported severity: Minor
缺少对某些极端技术场景(如分布式系统故障、网络分区等)的具体处理建议
Recommendation: 建议补充对复杂技术场景的规范编写指导
Highlights
- 工具来源明确,基于软件工程最佳实践
- 参数定义清晰,有明确的Guardrails规则
- 覆盖主要异常情况,有验收标准验证机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.