Skip to content
agents.store
devdevelopment

project-template-dev

Manage project template hierarchy with unified improvement workflow. Route fixes to plugins or parent templates automatically, quick-capture ideas, unified end-of-session reviews covering both plugins and templates.

v2.2.12Updated

  • project-template
  • template-hierarchy
  • feedback
  • scaffold
  • stack
  • CLAUDE.md
  • skills
  • agents
  • commands
  • improve
  • capture
  • unified-wrap-up

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install project-template-dev@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (10)

  • audit-stack

    Use when the user asks to "audit project stack", "analyze technologies", "scan dependencies", "generate stack.json", "what template level is this project", "map project to layers", or wants to discover all technologies in a codebase and get template and stack.json recommendations.

  • capture

    Use this skill when the user says "capture this", "note this for later", "remember to fix this", "save this improvement", "add to backlog", "I'll fix this later", or wants to quickly jot down an improvement idea without interrupting their current work. Defers routing and application to the wrap-up session.

  • create

    Use this skill when the user asks to "create a new template", "scaffold a Level 1 template", "create project-{stack}", "make a new stack template", "fork project-template", "create a demo template", "set up a new project from template", or wants to create any new project template at Level 1, 1.5, or 2 from the universal base or a stack template.

  • examples

    Use this skill when the user asks for "examples", "how does template feedback work", "show me a walkthrough", "demo the template workflow", or needs to see end-to-end scenario walkthroughs for the project-template-dev plugin.

  • feedback

    Use this skill when the user says "this should be in the parent template", "fix the template", "add this to project-template", "send feedback to parent", "improve the base template", "this skill belongs in the template", "update the parent", "push this up to the template", "the template needs this", "this is missing from the template", or discovers any issue while working in a child project that should be fixed in a parent template (Level 0 or Level 1).

  • improve

    Use this skill when the user says "improve", "this should be better", "fix this in the source", "this belongs in the plugin", "this belongs in the template", "push this upstream", "improve the plugin", "improve the template", or discovers any improvement while working in a child project that should go to either a plugin or a parent template. This is the unified entry point that auto-routes to the correct system.

  • sync

    Use this skill when the user says "sync from parent", "pull template changes", "merge parent template", "update from project-template", "my project is out of sync", "get latest template changes", "sync template", or needs to propagate improvements from a parent template (Level 0 or Level 1) down to a child project.

  • template-reference

    Use this skill when the user asks about "template hierarchy", "template levels", "project template conventions", "what files go in a template", "Level 0 vs Level 1", "template structure", "what belongs in the parent template", or needs reference documentation for the project template system and its 4-level hierarchy.

  • validate

    Use this skill when the user asks to "validate template", "check template structure", "is my template correct", "verify template conventions", "validate project template", "check template files", or needs to verify that a project template follows the Level 0/1/1.5/2 conventions and has all required files.

  • wrap-up

    Use this skill when the user says "wrap up", "end session", "done for today", "session review", "what should go into the template", "template improvements", "save template learnings", "review what we did for the template", "plugin improvements", "what should go into the plugin", or at the end of a work session to review what discoveries should be pushed up to parent templates or plugins.

Commands (8)

  • audit-stack

    Scan a project's source code and produce a stack audit with technology layers, architecture recommendations, and template/stack.json generation suggestions

  • capture

    Quick-capture an improvement idea without interrupting work — saves to backlog for later processing during wrap-up

  • create

    Create a new project template at Level 1, 1.5, or 2 by cloning and customizing a parent template

  • feedback

    Report an issue in the current project that should be fixed in a parent template (Level 0 or Level 1)

  • improve

    Unified improvement — auto-routes fixes to the correct plugin or parent template based on what kind of knowledge it is

  • sync

    Sync the current child project from its parent template — pull latest skills, commands, rules, and configs

  • validate

    Validate a project template against Level 0/1/1.5/2 conventions and required file structure

  • wrap-up

    End-of-session review — find plugin and template improvements, process captured backlog, push fixes to sources

Agents (1)

  • template-architect

    Use this agent when the user needs help deciding where an improvement belongs in the template hierarchy — Level 0 (universal) vs Level 1 (stack-specific) vs project-only, or when planning a new template's structure. <example> Context: User is unsure where a skill should live user: "Should this 'new-page' skill go in project-template (Level 0) or project-directus-nextjs (Level 1)?" assistant: "I'll use the template-architect agent to analyze whether this skill is universal or stack-specific." <commentary> The 'new-page' skill depends on Next.js and Directus specifics, so it belongs at Level 1 (stack-specific), not Level 0 (universal). </commentary> </example> <example> Context: User found a gotcha while working and wants to push it to a template user: "The safety rule about never force-pushing to main should probably be in the base template, but the Directus SDK caching gotcha shouldn't, right?" assistant: "I'll use the template-architect agent to analyze the feedback routing." <commentary> Generic git safety → Level 0 (all stacks). Directus SDK caching → Level 1 (project-directus-nextjs only). </commentary> </example> <example> Context: User discovered a tool API pattern that a plugin should document user: "The Directus SDK needs cache: 'no-store' on every fetch — should this go in the template or the plugin?" assistant: "I'll use the template-architect agent to determine if this is a plugin or template improvement." <commentary> Tool-specific SDK knowledge → Plugin (directus-dev). Not a template concern — it's about how the tool works, not project structure. </commentary> </example> <example> Context: User wants to create a new stack template user: "I want to create a template for Supabase + Nuxt projects" assistant: "I'll use the template-architect agent to plan the template structure and identify which plugins to include." <commentary> Multi-technology template implies Level 1. The agent plans layers, identifies existing plugins, and recommends structure. </commentary> </example>

README

Manage the 4-level project template hierarchy. Send feedback from child projects to parent templates, create new stack templates, and validate template conventions.

Template Hierarchy

LevelPatternParentExample
0project-templatenoneUniversal base
1project-{stack}project-templateproject-directus-nextjs
1.5demo-{stack}project-{stack}demo-directus-nextjs
2{client}-{project}project-{stack}acme-website

Each level inherits from its parent. Templates own project-level knowledge (how THIS project works); plugins own tool-level knowledge (how to USE a specific tool).

Quick Start

While working in any child project:

# Send feedback to parent template
/project-template-dev:feedback add VERCEL_TOKEN to .env.example

# End-of-session template review
/project-template-dev:wrap-up

# Create a new Level 1 stack template
/project-template-dev:create Level 1 template for Directus + Next.js

# Validate current template
/project-template-dev:validate

Skills

SkillDescription
feedbackPush improvements from child project to parent template
wrap-upEnd-of-session review of template and plugin improvements
captureQuick-capture an improvement idea into the backlog for wrap-up
improveRoute an improvement to the right plugin or parent template
syncPull parent-template changes down into the current project
createCreate new template from parent (Level 1, 1.5, or 2)
validateCheck template structure per level conventions
audit-stackScan a codebase, classify its technologies into layers, recommend a template and stack.json
template-referenceReference docs for template hierarchy and conventions
examplesEnd-to-end scenario walkthroughs

Commands

CommandDescription
/project-template-dev:feedbackReport and fix a parent template issue
/project-template-dev:wrap-upSession review for template improvements
/project-template-dev:captureJot down an improvement for the wrap-up
/project-template-dev:improveAuto-route an improvement to a plugin or a template
/project-template-dev:syncSync the project from its parent template
/project-template-dev:createCreate new project template
/project-template-dev:validateValidate template structure
/project-template-dev:audit-stackAudit a project's stack and recommend a template

Agent

AgentPurpose
template-architectHelps decide Level 0 vs Level 1 routing, plans template structure

Setup

Environment Variable

Add to ~/.claude/settings.json:

{
  "env": {
    "PROJECT_TEMPLATES_DIR": "/path/to/project-templates",
    "PROJECT_TEMPLATES_GITHUB_ORG": "your-github-org"
  }
}

PROJECT_TEMPLATES_DIR points to the directory containing all template repos (project-template, project-directus-nextjs, etc.); PROJECT_TEMPLATES_GITHUB_ORG is the GitHub organization that hosts them. If it is unset, the plugin asks for it.

How Template Routing Works

When you give feedback, the plugin:

  1. Reads stack.json in the current project to find the parent field
  2. Looks for $PROJECT_TEMPLATES_DIR/{parent}/
  3. If not found locally, offers to clone from git@github.com:$PROJECT_TEMPLATES_GITHUB_ORG/{parent}.git

For the create workflow to find matching Agents Store plugins, also set:

{
  "env": {
    "PLUGINS_PUBLIC_SOURCE_DIR": "/path/to/claude-public-plugins/plugins",
    "PLUGINS_PRIVATE_SOURCE_DIR": "/path/to/claude-plugins-private/plugins"
  }
}

Template Conventions

What create generates and validate checks:

  • One rules file. AGENTS.md holds the rules every coding tool reads; CLAUDE.md starts with @AGENTS.md and adds Claude-specific lines. Nothing is generated from CLAUDE.md; scripts/sync-context.sh only mirrors the rules into .cursor/.
  • .mcp.json is committed and holds ${VAR} references only. The values live in .env and .claude/settings.local.json, both gitignored.
  • .claude/settings.json is committed with enabledPlugins and extraKnownMarketplaces, so the plugins listed in stack.json are offered to everyone who clones the template.
  • Workflows are skills (.claude/skills/<name>/SKILL.md), not .claude/commands/ files. Base workflows are named plan-feature and code-review-project, because the built-in /plan and /review shadow plain plan and review.
  • CLAUDE.md stays short. The template rule is under 100 lines (Anthropic's guidance is under 200). An @docs/... import does not save context, because imported files load at launch; link long documents by plain path or move file-specific rules into .claude/rules/*.md with paths:.
  • Stack plugins are named stack-{name} (no process suffix), technology plugins {tool}-{process}.

Upgrading from 2.1.x

Templates built on the 2.1 layout keep working: validate reports the differences as WARN, except the two new security checks, which FAIL.

FindingSeverityMigration
.mcp.json.example committed, .mcp.json gitignoredWARNMove any real value from the local .mcp.json into .env and .claude/settings.local.json first, commit .mcp.json with ${VAR} references, drop it from .gitignore, delete the .example. Rotate any secret that was ever committed
AGENTS.md generated from CLAUDE.md, or CLAUDE.md without @AGENTS.mdWARNMove the shared sections into AGENTS.md, make CLAUDE.md @AGENTS.md plus the Claude-specific lines, stop generating AGENTS.md
No .claude/settings.json, or enabledPlugins that does not match stack.jsonWARNAdd extraKnownMarketplaces and enabledPlugins for the public plugins of stack.json (private plugins stay out of the committed file)
Workflows in .claude/commands/, including plan and reviewWARNMove each to .claude/skills/<name>/SKILL.md; rename plan to plan-feature and review to code-review-project
CLAUDE.md between 100 and 200 linesWARNTrim, or move file-specific rules to .claude/rules/*.md with paths:
Literal token, key or secret in the tracked .mcp.jsonFAIL (CRITICAL)Replace with ${VAR}; rotate the secret — editing the file does not remove it from git history
env values or tokens in the committed .claude/settings.jsonFAIL (CRITICAL)Move them to the gitignored .claude/settings.local.json
CLAUDE.md over 200 linesFAILTrim as above

Plugin names in stack.json follow the marketplace renames map; check them against the current marketplace listing.

What Can Be Pushed to Parent Templates

  • Skills (.claude/skills/), including the workflow skills (commit, pr, plan-feature, ...); the older .claude/commands/<name>.md form still works
  • Agents (.claude/agents/)
  • Rules (.claude/rules/)
  • CLAUDE.md updates
  • .env.example variables
  • Documentation (docs/)
  • Config files, scripts, dependencies
  • .mcp.json entries (${VAR} references only)
  • .claude/settings.json (enabledPlugins, extraKnownMarketplaces)
  • Settings templates

What Stays in the Client Project

  • Resource IDs (table IDs, workflow IDs)
  • Real credentials and endpoints (.env, .claude/settings.local.json) — .mcp.json is committed, but only with ${VAR} references
  • Client-specific business logic
  • Domain-specific skills
  • Custom agents for client workflows

Dependencies

This plugin complements the Agents Store ecosystem:

  • Optional: the private plugin-creator plugin (not in the public marketplace) receives plugin-level feedback from improve and wrap-up; without it they fall back to editing the plugin source, a GitHub issue or LEARNINGS.md
  • Works alongside Technology plugins (e.g., directus-dev) for tool knowledge
  • Works alongside Stack plugins (e.g., stack-directus-nextjs) for integration patterns
  • Templates reference plugins via stack.json → plugins arrays

Installation

Add the Agents Store marketplace once, then install the plugin from it:

claude plugin marketplace add Agents-Store/claude-plugins
claude plugin install project-template-dev@agents-store-claude-plugins

Inside a Claude Code session the same install is /plugin install project-template-dev@agents-store-claude-plugins. To try a local checkout for one session without installing it, start Claude Code with claude --plugin-dir /path/to/project-template-dev.

The plugin name is project-template-dev (formerly project-template-creator); the marketplace renames map moves installed copies to the new name.