From tdk-scaffold
Read approved recommendation.md → scaffold SKILL.md + references/ stubs for skills and agent.md for agents, following existing TDK conventions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tdk-scaffold:tdk-scaffold-from-recommendation [<path-to-recommendation.md>] [--dry-run] [--skills-only] [--agents-only][<path-to-recommendation.md>] [--dry-run] [--skills-only] [--agents-only]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Read an approved `recommendation-<project>.md` file and scaffold SKILL.md + references/ stubs (skills) and agent.md (agents) following existing TDK plugin conventions.
Read an approved recommendation-<project>.md file and scaffold SKILL.md + references/ stubs (skills) and agent.md (agents) following existing TDK plugin conventions.
tdk-recommend-automations generates a recommendation filestatus: approved in frontmatterrecommendation-<project>.md file exists in .specify/reports/status: approved in YAML frontmatter.specify/plugins/tdk-scaffold/ exists (this plugin is installed)| Flag | Notes |
|---|---|
<path> | Path to recommendation.md. Default: latest recommendation-*.md in .specify/reports/ |
--dry-run | Show planned output without writing files |
--skills-only | Scaffold only skill recommendations, skip agents |
--agents-only | Scaffold only agent recommendations, skip skills |
<path> argument provided → use it directlyls -t .specify/reports/recommendation-*.md | head -1status, architecture, project, source_docs_pathstatus is not approved:
AskUserQuestion with header "Status Check":
## Project Context section content for use in generation## Recommended Skills section:
### N. <name> [<priority>] block → extract: name, priority, purpose, why, input signals, trigger, inspired-by## Recommended Agents section:
### N. <name> [<priority>] block → extract: name, priority, purpose, why, model, tools--skills-only → discard agent recommendations--agents-only → discard skill recommendationsRead these files for structural patterns (first 50 lines each — content comes from recommendation, not exemplars):
tdk-core/skills/ → note frontmatter fields and section orderingtdk-utils/agents/ → note frontmatter fields and section orderingLoad: references/skill-output-pattern.md for skill generation rules
Load: references/agent-output-pattern.md for agent generation rules
Skip if --agents-only.
For each skill recommendation:
Target dir: .specify/plugins/tdk-scaffold/skills/<name>/
If dir already exists → AskUserQuestion: "Overwrite existing <name>?" / "Skip"
If --dry-run → print planned path and skip write
Generate SKILL.md:
---
name: <name>
description: "<purpose from recommendation>"
user-invocable: true
argument-hint: ""
metadata:
version: "0.1.0"
author: "VinhLTT"
category: "<architecture type from recommendation>"
---
Sections to generate:
Create references/ directory
If recommendation has "Input signals" describing specific data patterns → generate a stub reference file: references/<topic-from-input-signals>.md with section headers only
Skip if --skills-only.
For each agent recommendation:
Target: .specify/plugins/tdk-scaffold/agents/<name>.md
If file exists → AskUserQuestion: "Overwrite existing <name>?" / "Skip"
If --dry-run → print planned path and skip write
Generate agents/<name>.md:
---
name: <name>
tools: Read, Grep, Glob
description: "<purpose from recommendation>"
model: <model from recommendation, default: sonnet>
metadata:
version: "0.1.0"
---
Sections to generate:
Print:
tdk-bump to update plugin version and manifest"If --dry-run was used → print "Dry run complete. No files written."
| Condition | Message |
|---|---|
| No recommendation file found | "No recommendation file found. Run tdk-recommend-automations first." |
| status != approved | AskUserQuestion: proceed or abort |
| Skill/agent dir already exists | AskUserQuestion: overwrite or skip |
| Empty recommendations | "No recommendations found in file." |
| Exemplar file missing | Warn "Exemplar not found, using default patterns." Continue. |
tdk-scaffold) by default; move to target plugin manually if needednpx claudepluginhub vinhltt/tdk --plugin tdk-scaffoldGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.