update-spec

Update code-spec documents with executable contracts after debugging or design decisions.

1|2|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/OriginHubAI/dcai-demo-platform --skill update-spec-originhubai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-spec
Source: https://github.com/OriginHubAI/dcai-demo-platform/tree/main/.agents/skills/update-spec
Command: npx skills add https://github.com/OriginHubAI/dcai-demo-platform --skill update-spec-originhubai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps code contracts aligned with implementation by ensuring code-specs are updated after learning, debugging, or design decisions, reducing drift and confusion.

Core Features & Use Cases

  • Structured code-spec templates that cover Scope/Trigger, Signatures, Contracts, Validation & Error Matrix, and Test Points.
  • Guided, repeatable update process that captures design decisions, patterns, and conventions for infra and cross-layer components.
  • Interactive mode and templates to streamline updating knowledge bases and prevent missed updates.

Quick Start

After completing a debugging session or feature change, start the update-spec workflow to capture the relevant code-spec updates.

Frequently Asked Questions about update-spec

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep code contracts aligned with implementation after debugging?

You update code-spec documents by applying structured templates that capture signatures, contracts, and test points after a debugging session, ensuring documentation stays aligned with the actual implementation.

What is a code-spec document and when do I need to update it?

A code-spec document captures executable contracts, validation rules, and test requirements. You update it after feature implementations, design decisions, bug fixes, or discovering new cross-layer patterns.

How to update documentation for cross-layer contracts and infra patterns?

You update documentation for cross-layer contracts by running an interactive workflow that applies structured templates to record design decisions, correct scenarios, and validation matrices across infra components.

Can I use interactive templates to streamline code-spec updates for feature changes?

Yes, interactive mode and structured templates streamline code-spec updates by guiding you through Scope, Signatures, Contracts, Validation, and Test Points to prevent missed documentation updates.

What is the best way to prevent drift between code contracts and test requirements?

The best way to prevent contract drift is to trigger a code-spec update at decision or learning points, capturing validation rules and test requirements directly into a structured knowledge base.