agentsclimarketplace

Flow scaffolding

Skill Dokkabei97/hardened-claude-code/skills/flow-scaffolding

Template system for scaffolding Claude Code plugin components. Provides ready-to-use templates for agents, commands, skills, and hooks following project conventions. Used by the /create-flow command.From its SKILL.md

Install
npx -y skills add Dokkabei97/hardened-claude-code --skill flow-scaffolding

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.3 KB, as published. Nobody here has run it

Flow Scaffolding Templates

Standardized templates for creating new Claude Code plugin components. Each template includes required frontmatter, section structure, and placeholder content that follows project conventions.

When to Apply

Reference these templates when:

  • Creating new agents, commands, skills, or hooks via /create-flow
  • Manually scaffolding components and need the correct structure
  • Validating existing components against standard structure

Component Templates

1. Command Template

File: templates/command.md

Creates a command in commands/{name}.md with:

  • YAML frontmatter (name, description, category, complexity, mcp-servers, personas)
  • Standard sections: Triggers, Usage, Behavioral Flow, Tool Coordination, Examples, Boundaries
  • Optional AI collaboration section

2. Agent Template

File: templates/agent.md

Creates an agent in agents/{name}.md with:

  • YAML frontmatter (name, description, tools)
  • Standard sections: Role, Analysis Workflow, Decision Matrices, Output Format, Boundaries
  • Step-by-step workflow with Glob/Grep patterns

3. Skill Template

File: templates/skill.md

Creates a skill directory skills/{name}/ with:

  • SKILL.md with frontmatter (name, description)
  • Standard sections: When to Apply, Domain Content, How to Use, References
  • Optional references/ and templates/ directories

4. Hook Template

File: templates/hook.json

Creates a hook entry for claude/settings.json with:

  • Matcher expression for tool/condition filtering
  • Hook command (Node.js script)
  • Description

5. Plugin Template

File: templates/plugin.json

Creates a plugin manifest in .claude-plugin/plugin.json with:

  • Plugin metadata (name, description, version, author)
  • Directory structure for bundled skills, agents, hooks, MCP servers

Template Complexity Levels

LevelDescriptionSectionsUse Case
minimalCore structure onlyRequired sections with minimal contentQuick prototyping
standardComplete structureAll required + common optional sectionsMost components
advancedFull-featuredAll sections + AI collaboration + references + plugin manifestComplex workflows

Naming Conventions

ComponentFile PatternName Format
Commandcommands/{name}.mdkebab-case verb-noun (e.g., deploy-check)
Agentagents/{name}.mdkebab-case role-noun (e.g., security-scanner)
Skillskills/{name}/SKILL.mdkebab-case domain-noun (e.g., redis-best-practices)
HookEntry in settings.jsondescriptive sentence
Plugin.claude-plugin/plugin.jsonkebab-case (e.g., my-plugin)

Frontmatter Field Reference

Command Fields (Legacy)

As of Claude Code v2.1.3, commands and skills are unified. New components should use skill format. Command format is maintained for backward compatibility.

FieldRequiredTypeExample
nameYesstring"deploy-check"
descriptionYesstring"Pre-deployment validation..."
categoryYesstring"utility" / "review" / "workflow"
complexityYesstring"basic" / "advanced"
mcp-serversYesarray[] or ["grafana"]
personasYesarray[] or ["arch-reviewer"]

Skill Fields

FieldRequiredTypeExample
nameNo*string"redis-best-practices"
descriptionRecommendedstring (multiline)"Redis optimization guide..."
argument-hintNostring"[issue-number]"
disable-model-invocationNobooleantrue
user-invocableNobooleanfalse
allowed-toolsNoarray["Read", "Grep"]
modelNostring"sonnet" / "opus"
contextNostring"fork"
agentNostring"Explore" / "Plan"
hooksNoobject{PreToolUse: [...]}

*Defaults to directory name if omitted.

Agent Skills Open Standard Fields (Optional)

FieldTypeExample
licensestring"MIT"
compatibilityarray["claude-code", "cursor", "gemini-cli"]
metadataobject{version: "1.0", category: "review"}

Agent Fields

FieldRequiredTypeExample
nameYesstring"security-scanner"
descriptionYesstring"Security analysis specialist..."
toolsNoarray["Read", "Grep", "Glob", "Bash"]
disallowedToolsNoarray["Write", "Edit"]
modelNostring"sonnet" / "opus" / "haiku" / "inherit"
permissionModeNostring"acceptEdits" / "plan"
maxTurnsNonumber50
skillsNoarray["my-skill"]
mcpServersNoarray["server-name"] or inline config
hooksNoobject{PreToolUse: [...]}
memoryNostring"user" / "project" / "local"
backgroundNobooleantrue
isolationNostring"worktree"

Plugin Fields (plugin.json)

FieldRequiredTypeExample
nameYesstring"my-plugin"
descriptionYesstring"Plugin description..."
versionYesstring"1.0.0"
authorNoobject{"name": "Author Name"}
homepageNostringURL
repositoryNostringGit URL
licenseNostring"MIT"

String Substitution Variables

Available in skill body content:

VariableDescription
$ARGUMENTSAll arguments passed to the skill
$ARGUMENTS[N] / $NSpecific argument by 0-based index
${CLAUDE_SESSION_ID}Current session ID
${CLAUDE_SKILL_DIR}Directory containing the skill's SKILL.md

Dynamic context injection via shell:

!`command`    # Output replaces placeholder before Claude sees content

Skill Loading Priority

PriorityLocationScope
1Enterprise (managed settings)Organization-wide
2Personal (~/.claude/skills/)All projects
3Project (.claude/skills/)Current project
4Plugin (<plugin>/skills/)Namespaced

Section Content Guidelines

Triggers

  • Use concrete action phrases, not vague descriptions
  • List 4-6 specific scenarios
  • Each trigger should be independently sufficient to activate the component

Behavioral Flow

  • Number each phase sequentially
  • Use bold phase names: Phase 1: Discovery
  • Include sub-steps with tool-specific instructions
  • Decision matrices for branching logic

Examples

  • Minimum 2 examples per command
  • Include both simple and complex usage
  • Show expected output or behavior in comments
  • Cover edge cases in advanced examples

Boundaries

  • Will: 5-8 specific capabilities
  • Will Not: 3-5 explicit limitations
  • Use active voice, be specific about what is in/out of scope

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.