Index of every page on this site: llms.txt
All skills
fiveonecode avatar

/spec-creation-updating

@8f30014
Run it yourself

Create, update, review, and improve technical specification documents so they are complete, testable, and implementation-ready. Use when defining new features/systems/APIs, updating existing specs, restructuring documents, auditing missing requirements, or converting vague plans into concrete, verifiable requirements and acceptance criteria.

Use this Skill: https://skilld.dev/gh/fiveonecode/agent-skills/spec-creation-updating

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈92 tokens for metadata: the name and description. ≈1.1k when used: this file. ≈2.2k more on demand in 4 files.

Description uses 4.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈368 characters, or 4.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Spec Creation Updating

Overview

Produce specs that reduce ambiguity and can be implemented with minimal back-and-forth. Apply this workflow to any project domain (product, backend, API, data, UI, infrastructure, ops).

Workflow

1. Set boundaries

  • Capture the objective and user/business value.
  • Define in-scope and out-of-scope behavior.
  • Record assumptions, dependencies, and constraints.
  • Ask clarifying questions when decisions affect architecture, cost, security, or user-visible behavior.

2. Choose depth

  • Write a lightweight spec for isolated, low-risk changes.
  • Write a full system spec for cross-team, risky, or high-impact work.
  • Keep the same quality gates regardless of depth.

3. Build structure

  • Start from references/spec-template.md.
  • Preserve repository naming, section ordering, and style if they already exist.
  • Add domain-specific sections as needed, but do not remove mandatory content.

4. Fill concrete requirements

  • Write requirements as testable statements, not intentions.
  • Define success paths, edge cases, and failure behavior.
  • Specify interfaces, data contracts, and state transitions when relevant.
  • Specify non-functional requirements: performance, reliability, scalability, observability.
  • When work spans existing code paths, add an implementation map that names the canonical files or directories to edit and adjacent paths that must remain untouched. Keep the map aligned with the repository's real structure so an implementer does not have to infer sibling paths from prose.
  • For external, generated, AI-facing, or verifier-owned contracts, add a machine-checkable contract block before implementation details.

5. Define verification and completion

  • Map each requirement to a verification method.
  • Bind every requirement to a concrete verifier, test, or manual check ID; bind every verifier back to the requirement it proves.
  • Include reproducible commands, tests, and manual checks when automation is unavailable.
  • Define completion criteria with pass/fail outcomes.

6. Close traceability

  • Link related specs, ADRs, designs, and operational docs.
  • Update version, last-updated date, and status.
  • Record unresolved questions and decision owners.

7. Run quality gate

Writing rules

  • Prefer precise language over broad terms like "optimize", "support", or "handle".
  • Use explicit units, limits, and conditions.
  • Mark implemented vs planned behavior with explicit status labels.
  • Keep requirements and facts in the spec; keep narrative concise.
  • Avoid embedding secrets or private credentials in reusable specs.

Machine-checkable contract blocks

Use this block when a contract crosses a subsystem boundary, drives generated data, constrains model/tool output, or owns verifier behavior.

Include:

  • Canonical tokens, enum values, identifiers, and version fields.
  • Predicate tables or mapping rules for eligibility, routing, projection, fallback, and publication decisions.
  • App-owned envelope fields separated from model, user, service, or generated output.
  • Validator order, fail-closed behavior, retry/idempotency rules, and forbidden silent-discard cases.
  • Redaction and observability rules for logs, traces, QA artifacts, and analytics.
  • Publication gates, rollout state, and backwards-compatibility rules when output becomes durable.
  • Boundary-proof cases that show the exact allowed and disallowed edges.
  • Requirement-to-verifier binding with stable IDs.

Do not rely on prose such as "validate the output" or "handle failures" when a table, enum list, state transition, or verifier binding would make the rule mechanically checkable.

Output expectations

  • When creating a spec, deliver:
    • A complete spec document.
    • A list of unresolved questions.
    • A verification plan mapped to requirements.
  • When reviewing a spec, deliver:
    • Prioritized gaps and risks.
    • Concrete rewrite suggestions.
    • A readiness verdict based on MUST items.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides a structured framework for creating and reviewing technical specification documents. It includes templates, checklists, and guidelines focused on completeness and testability. No security risks were identified; the skill follows good practices, such as instructing users to avoid hardcoding secrets in specifications.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 8f30014. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 months ago

README badge

README badge for fiveonecode/agent-skills/spec-creation-updating