Skip to content
Back to skills

Spec

ASecurity

Write a precise, implementation-ready spec before any code is written. Use when a feature request is vague, ambiguous, or complex — turn fuzzy requirements into an unambiguous spec with acceptance criteria, edge cases, API contracts, and data shapes. Run before /orchestrate or /commit. Produces a written spec document — downstream of any brainstorming/planning skill, not a replacement for one.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentsgobashgitapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 11, 2026

npx -y skills add rajitsaha/100xprism --skill spec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spec?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rajitsaha-spec/badge)](https://www.skillsdirectory.com/skills/rajitsaha-spec)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spec
description: Write a precise, implementation-ready spec before any code is written. Use when a feature request is vague, ambiguous, or complex — turn fuzzy requirements into an unambiguous spec with acceptance criteria, edge cases, API contracts, and data shapes. Run before /orchestrate or /commit. Produces a written spec document — downstream of any brainstorming/planning skill, not a replacement for one.
category: engineering
tier: on-demand
slash_command: /spec
allowed-tools: Read Grep Glob Bash(git:*)
---

# Spec — Implementation-Ready Specification

Turn a vague request into an unambiguous, implementation-ready specification. Do not write any code until the spec is approved.

## How to use
- `/spec <feature request>` — clarify, read codebase, produce spec, get approval

---

## Phase 1 — Clarify (ask, don't assume)

Ask targeted questions to eliminate ambiguity:
- **Who** triggers this? (user action, background job, webhook, cron?)
- **What** is the exact input? (types, shapes, valid ranges, optional vs required)
- **What** is the exact output? (return value, side effects, UI state change)
- **What** are the error cases? (invalid input, missing data, network failure, auth failure)
- **What** are the constraints? (performance, backwards-compatibility, permissions, rate limits)
- **What** does "done" look like? (how do you know it works?)

Only ask questions that materially change the spec. Infer what you can from the codebase.

---

## Phase 2 — Read context

```bash
PROJECT_ROOT=$(git rev-parse --show-toplevel)
cd "$PROJECT_ROOT"
git log --oneline -10
```

Read relevant existing code: find related files with Grep/Glob, understand existing data shapes, API contracts, naming conventions. Note anything constraining the implementation.

---

## Phase 3 — Write the spec

```
## Feature: [name]

### Summary
One paragraph: what this does and why.

### Inputs
- [param]: [type] — [description, valid values, required/optional]

### Outputs / Side Effects
- [what changes, what is returned, what events are fired]

### Acceptance Criteria
- [ ] [specific, testable condition]
- [ ] [specific, testable condition]

### Edge Cases & Error Handling
- [condition] → [expected behavior]

### Out of Scope
- [explicitly list what this does NOT do]

### Open Questions
- [anything unresolved — flag for user to decide]
```

---

## Phase 4 — Get approval

Present the spec. Do **not** proceed to implementation until the user says "approved", "lgtm", "ship it", or similar.

If the user requests changes: update the spec and re-present it.

**Once approved:** run `/commit` or hand off to implementation.

Files in this skill

  • .100xprism-generated89 B
  • SKILL.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.