agentleFS
flopperjflopperj/dotfiles-core/.claude/skills/create-tech-spec/SKILL.md

create-tech-spec

Skill3 starsChanged 8 days agoMITView on GitHub

Generate a technical specification or design document for a proposed implementation using context from prior research. Includes solution approach, component breakdown (leverage/enhance/build), sequence diagrams, work estimates, and rollout plan. Use when the user wants to create a tech spec, write a design doc, document a proposed solution, or says "tech spec", "design document", or "implementation proposal" after completing research.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before generating output, determine where to save files:

    line 14
  2. Distinctive:

    Review existing context: - Use findings from prior research/report

    line 29
  3. Distinctive:

    Generate tech spec: - Use the template below

    line 32
  4. Very specific:

    Use the template in tech-spec-template.md (in this skill directory).

    line 42
  5. Distinctive:

    When filling out sections:

    line 46
  6. Distinctive:

    Section 4.2 Sequence diagrams: Use Mermaid syntax if possible

    line 50
  7. Distinctive:

    After saving the tech spec locally:

    line 56
  8. Very specific:

    If the tech spec contains mermaid diagrams that need to be exported as PNG images for Google Docs, use the /mermaid-diagrams skill to …

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Create Tech Spec

Generate a tech spec using context from a prior /research or /create-report run.

Output Location

Before generating output, determine where to save files:

  1. Check user prompt — if the user specifies a path, use that (one-time override)
  2. Check persist-path.txt — look for data/persist-path.txt in this skill's directory (resolves via ~/.claude/skills/create-tech-spec/data/persist-path.txt or ~/.cursor/skills/create-tech-spec/data/persist-path.txt)
  3. If file exists — use the path from it
  4. If file does not exist — prompt the user:

    "Where would you like tech specs saved? Provide an absolute path (e.g., ~/Desktop/Tech Specs)."

  5. Persist the choice — write to data/persist-path.txt in this skill's directory

Prerequisites

This skill works best with prior context from research or an existing report. If no prior context exists, prompt the user to provide relevant background or run a codebase exploration first.

Process

  1. Review existing context - Use findings from prior research/report
  2. Identify gaps - Determine missing information for the spec
  3. Ask clarifying questions - Fill in gaps before generating
  4. Generate tech spec - Use the template below
  5. Save to desktop - Output as markdown file

Output

Save the tech spec (path from persist-path.txt; see "Output Location" section):

  • Filename: [feature-name]-tech-spec-[YYYY-MM-DD].md

Template

Use the template in tech-spec-template.md (in this skill directory).

Guidance

When filling out sections:

  • Section 3.2 Alternatives: Pull from prior research/report analysis
  • Section 4.1 Components: Categorize as Leverage (reuse), Enhance (modify), Build (new)
  • Section 4.2 Sequence diagrams: Use Mermaid syntax if possible
  • Section 6 Work estimates: Provide ranges if uncertain
  • Section 8 Rollout plan: Include feature flag strategy per project conventions

Google Docs Integration

After saving the tech spec locally:

  1. If user mentioned "Google Doc" in prompt → Create immediately without confirmation
  2. Otherwise → Ask: "Would you like me to create this as a Google Doc?"

If yes:

bash ~/.claude/skills/google-docs/scripts/create_from_markdown.sh "[Feature] Tech Spec - [YYYY-MM-DD]" --file /path/to/spec.md

See google-docs/integration.md skill for details.

If the tech spec contains mermaid diagrams that need to be exported as PNG images for Google Docs, use the /mermaid-diagrams skill to convert them.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.