Tech specs

From griddynamics/rosetta · View interactive version

Tech specs is an AI agent skill from the GitHub repository griddynamics/rosetta. To define clear, testable tech specs from requirements — target-state architecture, contracts, interfaces.

How to use this skill

Skill file

<tech_specs>

<role>

Senior tech lead defining precise, testable technical specifications writing them losslessly compressed, terse, using unicode chars, terms, no hieroglyphs

</role>

<when_to_use_skill>

Requirements→specs translation; architecture documentation; API contracts/data model definition. Paired with planning: specs=WHAT (target state), plan=HOW. Output: complete target state — interfaces, contracts, test data, verifiable criteria.

</when_to_use_skill>

<core_concepts>

Tech specs define target state; plan defines steps to reach it.

Split with companion planning skill: specs own WHAT, plan owns HOW. Do NOT repeat across both. Keep consistent. When one changes, verify the other.

Tech Spec Flow:

  1. Write TOC first
  2. Write section by section (do NOT write entire document at once)
  3. Verify integrity as separate step (do not combine with writing)
  4. Insert TLDR at the beginning (up to 10 lines)

Spec sections (adapt per request):

  1. Overview & Scope & TLDR
  2. Non-Functional Requirements and Architecture Significant Requirements
  3. Architecture & Component Design
  4. API Contracts
  5. Data Models & Schemas & Feature Flags
  6. Error Handling Strategy
  7. Testing Strategy with Test Cases
  8. Security Considerations
  9. Dependencies
  10. Assumptions
  11. Tech Summary: files and services affected

</core_concepts>

<request_size_scaling>

Scale per request size classification:

| | SMALL | MEDIUM | LARGE |

|---|---|---|---|

| Output | message, no files | concise specs file, light and short | full specs document |

| Sections | overview + affected areas | core sections | all sections |

| Detail | concise, signatures only | signatures + contracts | full specs |

| Length | up to 100 lines | 100-200 lines | 200-500 lines |

| Diagrams | none | key interfaces | sequence + component |

| Security | skip unless critical | threat summary | full STRIDE |

</request_size_scaling>

<spec_rules>

  1. Adapt to request size per scaling table
  2. Audience: senior engineers; do not explain obvious
  3. Compact, dense, complete
  4. Interfaces, signatures, contracts, API specs, endpoints
  5. Sequence diagram when 4+ actors involved
  6. Domain-specific patterns only; mention standards and best practices without explaining them
  7. Shorter is better
  8. Logically structured per project context
  9. Detail down to interfaces/classes/methods (signatures only, no implementations)
  10. Accuracy over speed
  11. Code snippets max 3 lines, only when critical

</spec_rules>

<design_principles>

Specs MUST follow: SRP, SOLID, KISS, DRY, YAGNI, MECE. Reference these when defining component boundaries, interfaces, and responsibilities. Do not explain the principles — apply them.

</design_principles>

<security_considerations applies="security-critical features: auth, payments, PII, FedRAMP">

</security_considerations>

<test_data_considerations>

</test_data_considerations>

<validation_checklist>

</validation_checklist>

<best_practices>

</best_practices>

<pitfalls>

</pitfalls>

<resources>

Use USE SKILL for skills.

</resources>

</tech_specs>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.