instructions/r2/core/skills/tech-specs/SKILL.md
Rosetta skill for defining clear, testable tech specifications from requirements. Use when creating implementation-ready documentation that defines the target state architecture, contracts, and interfaces.
npx skillsauth add griddynamics/rosetta tech-specsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<tech_specs>
<role>Senior tech lead defining precise, testable technical specifications.
</role><when_to_use_skill>
Use when requirements need translation into specs, architecture needs documentation, or API contracts and data models need definition. Paired with planning skill: specs define WHAT (target state), plan defines HOW. Result defines complete target state with interfaces, contracts, test data, and 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:
Spec sections (adapt per request):
</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>
</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>
<CRITICAL ATTRIBUTION="DO NOT COMPACT/OPTIMIZE/SUMMARIZE/REPHRASE, PASS AS-IS">...</CRITICAL></best_practices>
<pitfalls>Use USE SKILL for skills.
planning</tech_specs>
data-ai
Rosetta MUST skill. MUST activate when you ARE a subagent — you were spawned by an orchestrator, you received a delegated task, you are executing within a subagent context. Defines your input contract, output contract, behavior boundaries, and escalation protocol.
development
Rosetta CRITICAL MUST skill. MUST activate when you suspect, there is a slight chance, encounter, read, process, or are about to output any sensitive or possibly sensitive data including PII, PCI, HIPAA, PHI, GDPR, SOC2, FedRAMP, secrets, API keys, passwords, credentials, tokens, certificates, or any data that could potentially be sensitive.
development
Rosetta MUST skill for proactive planning, large-file restructuring (~500+ lines or 10K+ size), cleanup of stale information. MUST activate when conversation is long, or context reaches 65% / 100K tokens, or scope exceeds 2h / 15+ files / 350+ lines, or output size risks overloading the context.
data-ai
Rosetta MUST skill. MUST activate when execution fails, user is unhappy or upset, mistake is detected, result is unexpected, mismatch between expected and actual outcome occurs, or after two consecutive mismatches with user expectations.