claude-code-templates
CLAUDE.md32k starsChanged 5 months agoMITView on GitHub
This file provides guidance to Claude Code when working with this repository. Node.js CLI tool for managing Claude Code components (agents, commands, MCPs, hooks, settings) with a static website for browsing and installing components. The dashboard and its API routes are deployed on Cloudflare Pages, with supporting cron and monitoring tasks running as Cloudflare Workers. Deploys to production happen automatically via GitHub Actions on push to main (changes in dashboard/**). Manual deploy uses wrangler pages deploy, not Vercel. NEVER write…
- Reads credentials
- Installs packages
- Sends data out
- Commits and pushes
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about davila7/claude-code-templates
- @midu.dev“Colección de plantillas y prompts para Claude Code. Agentes de código, bases de datos, seguridad, …”Bluesky · Aug 3, 2025 · 14 likes
- @midu.dev“Colección de plantillas y prompts para Claude Code. Agentes de código, bases de datos, seguridad, …”Bluesky · Jan 15, 2026 · 9 likes
- @midu.dev“Colección de plantillas y prompts para Claude Code. Agentes de código, bases de datos, seguridad, …”Bluesky · Nov 10, 2025 · 8 likes
- @midu.dev“Colección de plantillas y prompts para Claude Code. Agentes de código, bases de datos, seguridad, …”Bluesky · Feb 15, 2026 · 4 likes
- @pythonhub.dev“davila7 / claude-code-templates CLI tool for configuring and monitoring Claude Code …”Bluesky · Jan 16, 2026 · 3 likes
The biggest 5 of 69 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 69
Talked about on GitHub, Bluesky and Hacker News (69 times).
On GitHub · 50
- Aug 18, 2025Miscellaneous set of tools — UfoMiao/zcf2 reactions · 1 comment
- Nov 17, 2026DB 設計の skill database-design を core に追加する — wwwyo/skills0 reactions · 1 comment
- Nov 16, 2026مرشحون جدد للدليل (2026-11-16) — mgrd281/Skill-0 reactions
- Nov 10, 2026claude-code-marketplaces.github.davila7.claude-code-templates: 1.33.0 → 1.33.1 — sudosubin/agents.nix0 reactions
- Nov 10, 2026claude-code-plugins.github.davila7.claude-code-templates: 1.33.0 → 1.33.1 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Nov 10, 2026agent-skills.github.davila7.claude-code-templates: 1.33.0 → 1.33.1 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-plugins.github.davila7.claude-code-templates: 1.32.2 → 1.33.0 — sudosubin/agents.nix0 reactions
- Nov 9, 2026agent-skills.github.davila7.claude-code-templates: 1.32.2 → 1.33.0 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-marketplaces.github.davila7.claude-code-templates: 1.32.2 → 1.33.0 — sudosubin/agents.nix0 reactions
- Nov 7, 2026claude-code-plugins.github.davila7.claude-code-templates: 1.32.1 → 1.32.2 — sudosubin/agents.nix0 reactions
- Nov 7, 2026claude-code-marketplaces.github.davila7.claude-code-templates: 1.32.1 → 1.32.2 — sudosubin/agents.nix0 reactions
- Nov 7, 2026agent-skills.github.davila7.claude-code-templates: 1.32.1 → 1.32.2 — sudosubin/agents.nix0 reactions
- Nov 6, 2026Add recommend_stack to the MCP server and show what we checked on entry pages — techhorizonlabs/gearlist0 reactions
- Nov 5, 2026Nightly discovery: 2 new repo(s) — apilP77/Claude-code-compass0 reactions · 1 comment
- Nov 4, 2026agent-skills.github.davila7.claude-code-templates: 1.32.0 → 1.32.1 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-plugins.github.davila7.claude-code-templates: 1.32.0 → 1.32.1 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-marketplaces.github.davila7.claude-code-templates: 1.32.0 → 1.32.1 — sudosubin/agents.nix0 reactions
- Nov 3, 2026agent-skills.github.davila7.claude-code-templates: 1.31.0 → 1.32.0 — sudosubin/agents.nix0 reactions
- Nov 3, 2026Feature: thinking-pane — karanb192/awesome-claude-code-mods0 reactions
- Nov 3, 2026claude-code-marketplaces.github.davila7.claude-code-templates: 1.31.0 → 1.32.0 — sudosubin/agents.nix0 reactions
- Nov 3, 2026claude-code-plugins.github.davila7.claude-code-templates: 1.31.0 → 1.32.0 — sudosubin/agents.nix0 reactions
- Nov 3, 2026agent-skills.github.davila7.claude-code-templates: 1.29.7 → 1.31.0 — sudosubin/agents.nix0 reactions
- Nov 3, 2026claude-code-marketplaces.github.davila7.claude-code-templates: 1.29.7 → 1.31.0 — sudosubin/agents.nix0 reactions
- Nov 3, 2026claude-code-plugins.github.davila7.claude-code-templates: 1.29.7 → 1.31.0 — sudosubin/agents.nix0 reactions
- Oct 19, 2026Jev Sightings: weekly refresh — cesarroger/jev-where0 reactions · 1 comment
- Oct 15, 2026Dead link check failed — StudentSuite/awesome-skills-plugins-for-students0 reactions · 1 comment
- Oct 15, 2026Writing improvement — sensein/agent_skills0 reactions
- Oct 14, 2026claude-code-plugins.github.davila7.claude-code-templates: 1.29.6 → 1.29.7 — sudosubin/agents.nix0 reactions
- Oct 13, 2026claude-code-marketplaces.github.davila7.claude-code-templates: 1.29.6 → 1.29.7 — sudosubin/agents.nix0 reactions
- Oct 13, 2026agent-skills.github.davila7.claude-code-templates: 1.29.6 → 1.29.7 — sudosubin/agents.nix0 reactions
- Oct 10, 2026feat(mods): expose local task command adapter — devjaime/claude-code-templates0 reactions · 4 comments
- Oct 8, 2026docs: add Korean full-survey analysis report (ANALYSIS-KO.md) — bmshin94/claude-code-templates0 reactions
- Oct 7, 2026Recipes can come from Claude Code plugin marketplaces and other non-sous skill sources — sous-io/sous0 reactions · 4 comments
- Oct 4, 2026claude-code-plugins.github.davila7.claude-code-templates: init at 1.29.6 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.davila7.claude-code-templates: init at 1.29.6 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.davila7.claude-code-templates: init at 1.29.6 — sudosubin/agents.nix0 reactions
- Oct 3, 2026增量上架 10 个 mod(299→309) — shuizhengqi1/cc-mod-hub0 reactions · 1 comment
- Sep 24, 2026🔥 GitHub Trending AI 早报 · 2026-09-24 · Top 10 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 24, 2026🔥 GitHub Trending AI 早报 · 2026-09-24 · Top 10 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 24, 2026Github trending [davila7/claude-code-templates] 即用型Claude配置合集 — web1992/github-trending0 reactions
- Sep 23, 2026🔥 GitHub Trending AI 早报 · 2026-09-24 · Top 10 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 23, 2026🔥 GitHub Trending AI 早报 · 2026-09-24 · Top 10 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 23, 2026🔥 GitHub Trending AI 早报 · 2026-09-23 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 23, 2026🔥 GitHub Trending AI 早报 · 2026-09-23 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 23, 2026Github trending [davila7/claude-code-templates] 一键安装 Claude 配置 — web1992/github-trending0 reactions
- Sep 22, 2026🔥 GitHub Trending AI 早报 · 2026-09-23 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 22, 2026🔥 GitHub Trending AI 早报 · 2026-09-23 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 11, 2026fix(validator): PS012 fires on imported skills and reports only <synthesized>:1:1 — mrwogu/promptscript0 reactions
- Aug 22, 2026Optionally list minerva on aitmpl.com — honerlaw/agent-marketplace0 reactions
- Aug 18, 2026[Tool Submission Request] claude-code-templates — BraveOPotato/NoSignups0 reactions
On Bluesky · 18
- Aug 3, 2025Colección de plantillas y prompts para Claude Code. Agentes de código, bases de datos, seguridad, documentación y más:… — @midu.dev14 likes and reposts
- Jan 15, 2026Colección de plantillas y prompts para Claude Code. Agentes de código, bases de datos, seguridad, documentación y más:… — @midu.dev9 likes and reposts
- Nov 10, 2025Colección de plantillas y prompts para Claude Code. Agentes de código, bases de datos, seguridad, documentación y más:… — @midu.dev8 likes and reposts
- Feb 15, 2026Colección de plantillas y prompts para Claude Code. Agentes de código, bases de datos, seguridad, documentación y más:… — @midu.dev4 likes and reposts
- Jan 16, 2026davila7 / claude-code-templates CLI tool for configuring and monitoring Claude Code https://github.com/davila7/claude-code-templates — @pythonhub.dev3 likes and reposts
13 more on Bluesky
- Sep 4, 2026Claude Code users are sleeping on AITMPL. It has skills, agents, commands, hooks, MCPs, plugins, loops and settings in one open source… — @promptslove.bsky.social2 likes and reposts
- Apr 27, 2026今日のGitHubトレンド davila7/claude-code-templates Claude Codeで利用可能な、すぐに使える設定テンプレートを提供することを目的としたリポジトリです。 — @dailygithubtrends.bsky.social2 likes and reposts
- Nov 24, 2025📦 davila7 / claude-code-templates ⭐ 11,598 (+39) 🗒 JavaScript CLI tool for configuring and monitoring Claude Code — @github-trending-js.bsky.social2 likes and reposts
- Oct 10, 2025📦 Claude Code Templates — Koleksi templat & marketplace untuk plugin Claude Code 🔧 Buat berbagai plugin & marketplace baru dengan mudah… — @its-me-rhk.bsky.social2 likes and reposts
- Sep 22, 2026📦 davila7 / claude-code-templates ⭐ 30,930 (+33) 🗒 Python CLI tool for configuring and monitoring Claude Code — @github-trending.bsky.social1 likes and repost
- Jul 11, 2026今日のGitHubトレンド davila7/claude-code-templates Claude Code向けに、すぐに利用可能な設定テンプレートを提供することを目的としています。 コンポーネントの探索やコレクションの管理などが可能です。 — @dailygithubtrends.bsky.social1 likes and repost
- Apr 28, 2026davila7/claude-code-templates CLI tool for configuring and monitoring Claude Code 🧪 NEW: Dashboard — Explore components, manage… — @postgresql.activitypub.awakari.com.ap.brid.gy1 likes and repost
- Feb 28, 2026https://github.com/davila7/claude-code-templates — @tom-doerr.bsky.social1 likes and repost
- Dec 3, 2025📦 davila7 / claude-code-templates ⭐ 12,104 (+69) 🗒 JavaScript CLI tool for configuring and monitoring Claude Code — @github-trending-js.bsky.social1 likes and repost
- Oct 11, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 davila7 / claude-code-templates ⭐ 7,051 (+186) 🗒 JavaScript CLI tool for configuring and monitoring… — @github-trending.bsky.social1 likes and repost
- Aug 6, 20254/4 Plus monitoring tools for your dev workflow: 📊 "--analytics" - Real-time session monitoring with performance metrics 🏥… — @jorgelison.bsky.social1 likes and repost
- Feb 17, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 davila7 / claude-code-templates ⭐ 20,598 (+216) 🗒 Python CLI tool for configuring and monitoring… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Jul 30, 2025這一切都是開源的 🙌 請盡情享用,別忘了給予星星 ⭐️ github.com/davila7/clau... — @zeiki1.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Feb 22, 2026Claude Code Templates2 points
In this repositoryOne other file it gives its agents.
- docs/CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
30 rules. About 0 are common, 14 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 46
Use process.env (Node.js) or os.environ.get() (Python)
- Very specific: line 48
Add variable to .env.example with placeholder
- Very specific: line 49
Verify .env is in .gitignore
- Very specific: line 104
When adding or modifying components, you MUST use the component-reviewer subagent to validate the component before committing:
- Very specific: line 112
Create component file in cli-tool/components/{type}/{category}/{name}.md
- Distinctive: line 113
Use descriptive hyphenated names (kebab-case)
- Distinctive: line 117
TEST before generating/publishing: ask the human in the session whether they want to test the newly created/modified component(s) first.
- Very specific: line 121
Run python scripts/generate_components_json.py to update catalog (maintainers only — see below)
- Very specific: line 152
When reviewing a contributor PR that includes these files, ask them to revert with git checkout origin/main -- docs/components.json …
- Distinctive: line 188
❌ Critical Issues: Must fix before merge (security, missing fields)
- Distinctive: line 189
⚠️ Warnings: Should fix (clarity, best practices)
- Very specific: line 261
Always remove the token from npm config after publishing (npm config delete)
- Distinctive: line 264
Never hardcode or commit tokens
- Very specific: line 437
APIs: All endpoints in dashboard/src/pages/api/ (Astro API routes, no separate serverless project)
- Very specific: line 453
Add a new card <div class="flex gap-3 ..."> inside the Skills Layer section of the relevant {slug === '...'} block
- Very specific: line 454
Update installCommand in constants.ts to include the new skill
- Very specific: line 543
All of the above are served as static Cloudflare Pages assets with cache-control: public, max-age=86400, stale-while-revalidate=3600 (see …
- Distinctive: line 568
Use the CLI skill to create blog articles:
- Very specific: line 591
Use relative paths: .claude/scripts/, .claude/hooks/
- Distinctive: line 592
Never hardcode absolute paths or home directories
- Very specific: line 593
Use path.join() for cross-platform compatibility
- Distinctive: line 602
Use try/catch for async operations
- Very specific: line 624
Check Cloudflare Pages logs: npx wrangler pages deployment tail --project-name=aitmpl-dashboard
- Distinctive: line 625
Verify environment variables / secrets in the Cloudflare Pages dashboard
- Distinctive: line 626
Test endpoint manually with curl
- Very specific: line 629
Run python scripts/generate_components_json.py (writes both docs/components.json and the split dashboard/public/ artifacts directly — no …
- Distinctive: line 634
Component catalog: Always regenerate after adding/modifying components
- Distinctive: line 636
Secrets: Never commit API keys (use environment variables)
- Distinctive: line 637
Paths: Use relative paths for all project files
- Distinctive: line 638
Backwards compatibility: Don't break existing component installations
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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.
Files
CLAUDE.md
This file provides guidance to Claude Code when working with this repository.
Project Overview
Node.js CLI tool for managing Claude Code components (agents, commands, MCPs, hooks, settings) with a static website for browsing and installing components. The dashboard and its API routes are deployed on Cloudflare Pages, with supporting cron and monitoring tasks running as Cloudflare Workers.
Essential Commands
# Development
npm install # Install dependencies
npm test # Run tests
npm version X.Y.Z --ignore-scripts=false # Sync, commit, and tag all package versions
npm run version:set -- X.Y.Z # Sync versions without creating a commit or tag
npm publish --ignore-scripts=false # Publish and run the trusted prepublish guard
# Component catalog
python scripts/generate_components_json.py # Update docs/components.json (pulls download counts from Supabase: minutes)
python scripts/generate_components_json.py --skip-downloads # Same, keeping the counts already in the catalog: seconds
# Dashboard + API (Astro on Cloudflare Pages)
cd dashboard && npm run build # Build before deploy
npm run deploy # Deploy www + app.aitmpl.com via wranglerDeploys to production happen automatically via GitHub Actions on push to
main(changes indashboard/**). Manual deploy useswrangler pages deploy, not Vercel.
Security Guidelines
⛔ CRITICAL: NEVER Hardcode Secrets or IDs
NEVER write API keys, tokens, passwords, project IDs, org IDs, or any identifier in code. This includes Cloudflare account/project IDs, Supabase URLs, Discord IDs, database connection strings, and any other infrastructure identifier. ALL must go in .env (or Cloudflare secrets via wrangler secret put).
// ❌ WRONG
const API_KEY = "AIzaSy...";
// ✅ CORRECT
const API_KEY = process.env.GOOGLE_API_KEY;When creating scripts with API keys:
- Use
process.env(Node.js) oros.environ.get()(Python) - Load from
.envfile usingdotenv - Add variable to
.env.examplewith placeholder - Verify
.envis in.gitignore
If you accidentally commit a secret:
- Revoke the key IMMEDIATELY
- Generate new key
- Update
.env - Old key is compromised forever (git history)
Component System
Component Types
Agents (600+) - AI specialists for development tasks
Commands (200+) - Custom slash commands for workflows
MCPs (55+) - External service integrations
Settings (60+) - Claude Code configuration files
Hooks (39+) - Automation triggers
Loops (18+) - Autonomous agentic workflows (goal + interval + stop condition) that reference other components
Mods (10) - Claude Mods: plugins whose behaviour lives in a function-hooks module (register(on, options) hooking engine events as ($, e, next) middleware). Anthropic's reference is anthropics/claude-code/mods (three built-in mods + mods/types/claude-code.d.ts); discussion in anthropics/claude-code#91870. Mods are official and on by default in Claude Code >= 2.1.287 (docs); 2.1.287+ ignores CLAUDE_CODE_ENABLE_FUNCTION_HOOKS, builds 2.1.259–2.1.286 still need it set to 1; the $ API may change between releases. Each mod is a complete plugin directory in Anthropic's mods/ layout: cli-tool/components/mods/{category}/{name}/ with .claude-plugin/plugin.json (name, description, userConfig — options are read from user/managed settings pluginConfigs[name].options, never project settings), hooks/hooks.json (modules), any number of hooks-modules under hooks/ (relative imports allowed), optional commands/*.md (slash commands the plugin ships; a skill.prompt hook may rewrite their prompt at run time), types/, tests/, and a README.md the site shows. The generator uses README.md as content and ships every text file in the per-component content file (files), so the site explorer and the send-to-repo flow have the whole plugin. --mod (alias --function-hook) downloads the directory recursively (like a skill) and writes it verbatim to .claude/skills/{name}/, which Claude Code auto-loads as {name}@skills-dir — only in a trusted project (see "Debugging a mod that seems silent" below). Third-party mods are vendored as-is with LICENSE + attribution (e.g. games/cc-arcade). Every module must typecheck against cli-tool/components/mods/types/claude-code.d.ts (cd cli-tool/components/mods && npx -y -p typescript@5 tsc -p tsconfig.json; CI runs it in mods-typecheck.yml). Rules from the engine: import types only from 'claude-code', spell $ as $.noun.event(...) at the call site (never pass $ to a helper), treat e as frozen, deny with { deny } without calling next (returning {} is fail-open). When Anthropic bumps the API, regenerate the d.ts with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude -p "/plugin-types <dir>" on a current Claude Code and re-run tsc (the header's first line names the writing version; currently 2.1.283; 2.1.278 added prompt.attachment — the per-attachment hook jev-skill-suggestion uses to withhold the skill_listing system-reminder — and 2.1.283 changed $.model.complete from a string and $.model.fork from result | null to { isAnswered, text, usage } | { isAnswered: false, reason }). Note /context's "Skills" row is estimated from the roster and does not reflect that hook; a mod can ship commands/*.md and rewrite their prompt in skill.prompt (that is how /jev-skill-suggestion:setup hides every skill as user-invocable-only while the mod injects the chosen SKILL.md itself). The early-access banner and Beta badge were removed 2026-10-04 (mods are official). Old URLs (/function-hooks, /component/function-hook/*) redirect via dashboard/public/_redirects.
Templates (14+) - Complete project configurations
Debugging a mod that seems silent (verified 2026-09-19 on Claude Code 2.1.278)
A mod that "produces no output" has, in order of likelihood, these causes — none of which is the mod's code. Check them before touching the module:
- The project is not trusted. Claude Code adopts a plugin from a project's
.claude/skills/{name}/only when~/.claude.jsonhasprojects[<path>].hasTrustDialogAccepted: true; an untrusted folder's.claude/is repository content and is not read at all (plugin.scope==="project"candidates are dropped and re-discovered "post-trust").claude -pnever shows the trust prompt, so a headless run in a fresh folder never loads a project mod. Fix: openclaudeinteractively in the folder and accept the prompt, or pass--plugin-dir .claude/skills/{name}(explicit, loads as{name}@inline).~/.claude/skills/{name}/(user-level) always loads. - You are looking in the wrong place.
$.ui.logappends a dim transcript line and writes to the debug log;$.ui.statuspins a line under the prompt. Inclaude -p/ the SDK there is no transcript and no status row: the lines are only in~/.claude/debug/<session-id>.txt(.txt, not.log;latestsymlinks the newest) and reach an SDK host asui_log. The header, statusline and effort box show the session's settings and never move: a mod rewritesmodel/effortper request. The other observable is"effort":"…"in the transcript JSONL under~/.claude/projects/<slug>/. - Options under the wrong key.
pluginConfigsis keyed by the plugin's full id:"{name}@skills-dir"when auto-loaded,"{name}"with--plugin-dir. Under the wrong key every option is its default and the debug log saysplugin {name}: no pluginConfigs["{name}@skills-dir"].options in user, --settings or managed settings. - Function hooks off. On Claude Code < 2.1.287 with
CLAUDE_CODE_ENABLE_FUNCTION_HOOKSunset/0the debug log saysinstalled plugins' hooks modules not loaded: rollout flag (tengu_plugin_hooks_modules) is off. Built-in mods (agents-md@builtin) load regardless, so their presence proves nothing about ours.
The lines that settle each question in claude --debug: Found N plugins, Read hooks.json for plugin {name}, hooks module {name}@skills-dir loaded (worker, environment N, tier user); events: …, then hooks module {name}@… <event> settled in Xms. Positive control: pacman@skills-dir loads from .claude/skills/ in the trusted claude-code-templates checkout. Anthropic documents only claude --plugin-dir mods/<name> for its reference mods; the .claude/skills auto-load is Claude Code 2.1.157+ (CHANGELOG: "Plugins in .claude/skills directories are now automatically loaded").
Installation Patterns
# Single component
npx claude-code-templates@latest --agent frontend-developer
npx claude-code-templates@latest --command setup-testing
npx claude-code-templates@latest --hook automation/simple-notifications
npx claude-code-templates@latest --loop engineering/docs-sweep-loop # also installs the loop's referenced components
npx claude-code-templates@latest --mod security/secret-redactor # Claude Mod: plugin at .claude/skills/secret-redactor/
# Batch installation
npx claude-code-templates@latest --agent security-auditor --command security-audit --setting read-only-mode
# Interactive mode
npx claude-code-templates@latestComponent Development
Adding New Components
CRITICAL: Use the component-reviewer agent for ALL component changes
When adding or modifying components, you MUST use the component-reviewer subagent to validate the component before committing:
Use the component-reviewer agent to review [component-path]Component Creation Workflow:
- Create component file in
cli-tool/components/{type}/{category}/{name}.md - Use descriptive hyphenated names (kebab-case)
- Include clear descriptions and usage examples
- REVIEW with component-reviewer agent (validates format, security, naming)
- Fix any issues identified by the reviewer
- TEST before generating/publishing: ask the human in the session whether
they want to test the newly created/modified component(s) first. Do NOT run
generate_components_json.py, commit, or publish until testing is confirmed or explicitly skipped by the user. - Run
python scripts/generate_components_json.pyto update catalog (maintainers only — see below)
Generated catalog files: who regenerates them
scripts/generate_components_json.py writes docs/components.json and the
split dashboard/public/ artifacts (components.json, counts.json,
search-index.json, components/*.json, component-content/**). These files
are generated output, never hand-edited, and who commits them depends on
the workflow:
| Workflow | Regenerate + commit the catalog? |
| Maintainer working directly on this repo (local branch, sync PRs, agent-driven migrations) | ✅ Yes — run the script (--skip-downloads is enough for a content change) and commit the output with the component |
| External contributor PR (fork) | ❌ No — the PR must only contain files under cli-tool/components/ (plus supporting files). The catalog is regenerated automatically after merge (update-json-data.yml daily cron, or a maintainer). |
Why: the generated JSON files are single-line blobs that change on every
component/download-count update, so two PRs that both commit them always
conflict. .github/workflows/generated-files-guard.yml fails any
non-maintainer PR that touches them and posts revert instructions; the
component-pr-welcome.yml bot also warns about it up front.
Two workflows regenerate them on main: update-component-content.yml
runs on every push that touches cli-tool/components/** with
--skip-downloads (content only, seconds) and then dispatches deploy.yml
(its own push uses GITHUB_TOKEN, which never triggers other workflows, so
without that the new catalog would not reach aitmpl.com), and update-json-data.yml
(daily cron) refreshes the download counts by pulling the whole
component_downloads table from Supabase (minutes) — that table has one
row per download, which is what makes a full run slow.
When reviewing a contributor PR that includes these files, ask them to revert
with git checkout origin/main -- docs/components.json dashboard/public/ rather
than resolving the conflict by hand.
Mods (cli-tool/components/mods/) are plugin directories, not .md files. Creating one: mods/{category}/{name}/ with .claude-plugin/plugin.json, hooks/hooks.json, the hooks-modules under hooks/, a README.md, optionally commands/, types/ and tests/. Before review: cd cli-tool/components/mods && npx -y -p typescript@5 tsc -p tsconfig.json and claude plugin validate cli-tool/components/mods/{category}/{name}. The component-reviewer applies this checklist to a mod:
- ✅
plugin.jsonparses, hasname(= directory name),description,license, andauthor/repository(attribution for vendored code) - ✅
hooks/hooks.jsonhas a non-emptymoduleslist and every entry exists underhooks/ - ✅ Modules import types only from
'claude-code', use relative imports, spell$as$.noun.event(...), never shadowhin a surface module - ✅ Options are declared in
plugin.jsonuserConfig(string/number/boolean/directory/file; lists as comma-separated strings) - ✅ Guards deny with
{ deny }without callingnext;.catchwhere fail-closed matters - ✅ No secrets (keys only via options), no absolute paths, no
$.process.runwith a shell - ✅ README states the command, controls/options, the minimum Claude Code version and (for
games/) the attribution
The component-reviewer agent checks:
- ✅ Valid YAML frontmatter and required fields
- ✅ Proper kebab-case naming conventions
- ✅ No hardcoded secrets (API keys, tokens, passwords)
- ✅ Relative paths only (no absolute paths)
- ✅ Supporting files exist (for hooks with scripts)
- ✅ Clear, specific descriptions
- ✅ Correct category placement
- ✅ Security best practices
Example Usage:
# After creating a new agent
Use the component-reviewer agent to review cli-tool/components/agents/development-team/react-expert.md
# Before committing hook changes
Use the component-reviewer agent to review cli-tool/components/hooks/git/prevent-force-push.json
# For PR reviews with multiple components
Use the component-reviewer agent to review all modified components in cli-tool/components/The agent will provide prioritized feedback:
- ❌ Critical Issues: Must fix before merge (security, missing fields)
- ⚠️ Warnings: Should fix (clarity, best practices)
- 📋 Suggestions: Nice to have improvements
Skill Security Scanning (SkillSpector)
Skills under cli-tool/components/skills/** are scanned for security
vulnerabilities by SkillSpector
(NVIDIA, Apache-2.0) — a static analyzer with 64 vulnerability patterns
(prompt injection, data exfiltration, supply chain, dangerous code/AST, taint
tracking, YARA signatures, etc.). It runs in static-only mode (--no-llm), so
no API key or secret is required.
Two GitHub Actions drive it, both via the batch orchestrator
scripts/skillspector_scan.py:
.github/workflows/skill-security-scan.yml(PR) — scans only the skills changed in the PR (git diff), posts an idempotent report comment, and blocks the check if any changed skill scores HIGH/CRITICAL (risk score50). Uploads an aggregated SARIF to the Security tab.
.github/workflows/skill-security-scan-all.yml(weekly + manual) — scans all skills, reports to the run summary and SARIF, and never blocks.
SkillSpector requires Python 3.12+ and is installed from NVIDIA's main
branch (pip install git+https://github.com/NVIDIA/skillspector.git@main); it
is not published to PyPI. Risk bands: 0-20 LOW, 21-50 MEDIUM, 51-80 HIGH,
81-100 CRITICAL.
Statuslines with Python Scripts
Statuslines can reference Python scripts that are auto-downloaded to .claude/scripts/:
// In src/index.js:installIndividualSetting()
if (settingName.includes('statusline/')) {
const pythonFileName = settingName.split('/')[1] + '.py';
const pythonUrl = githubUrl.replace('.json', '.py');
additionalFiles['.claude/scripts/' + pythonFileName] = {
content: pythonContent,
executable: true
};
}Publishing Workflow
# 1. Update component catalog
python scripts/generate_components_json.py
# 2. Run tests
npm test
# 3. Check current npm version, then create the synchronized version commit and tag
npm view claude-code-templates version # check latest on registry
npm version X.Y.Z --ignore-scripts=false # X.Y.Z = one patch above the registry version
npm run check:version-sync
# 4. Push the version commit and tag created by npm version
git push origin main --follow-tags
# 5. Publish to npm (requires granular access token with "Bypass 2FA" enabled)
npm config set //registry.npmjs.org/:_authToken=YOUR_GRANULAR_TOKEN
npm publish --ignore-scripts=false
npm config delete //registry.npmjs.org/:_authToken # always clean up after
# 6. Deploy website (dashboard on Cloudflare Pages)
# Automatic on push to main (GitHub Actions). Manual: from dashboard/ run `npm run deploy`npm Publishing Notes:
- Classic npm tokens were revoked Dec 2025. Use granular access tokens from npmjs.com/settings/~/tokens
- The token must have Read and Write permissions for
claude-code-templatesand "Bypass 2FA" enabled - Always remove the token from npm config after publishing (
npm config delete) - The repository disables lifecycle scripts by default for security. Pass
--ignore-scripts=falseonly to the trusted release commands shown above so their version and prepublish hooks can run. - The local
package.jsonversion may drift from npm if published from CI — always checknpm view claude-code-templates versionfirst - Never hardcode or commit tokens
API Architecture
Critical Endpoints
API endpoints live as Astro API routes in dashboard/src/pages/api/:
/api/track-download-supabase (CRITICAL)
- Tracks component downloads for analytics
- Used by CLI on every installation
- Database: Supabase (component_downloads table)
/api/discord/interactions
- Discord bot slash commands
- Features: /search, /info, /install, /popular
/api/claude-code-check
- Monitors Claude Code releases
- Triggered every 30 minutes by the
cloudflare-workers/cronsWorker (not a Vercel cron) - Database: Neon (claude_code_versions, claude_code_changes, discord_notifications_log, monitoring_metadata tables)
Shared API Libraries
dashboard/src/lib/api/cors.ts— CORS headers,corsResponse(),jsonResponse()dashboard/src/lib/api/neon.ts— Neon client factorydashboard/src/lib/api/auth.ts— Clerk JWT verificationdashboard/src/lib/api/changelog-parser.ts— Claude Code changelog parser
Emergency Rollback
# List recent Pages deployments
npx wrangler pages deployment list --project-name=aitmpl-dashboard
# Roll back to a previous deployment
npx wrangler pages deployment rollback <deployment-id> --project-name=aitmpl-dashboardCloudflare Workers
The cloudflare-workers/ directory contains Cloudflare Worker projects that run independently from the dashboard Pages project.
crons
Replaces the old Vercel cron jobs. On a schedule it calls the dashboard API endpoints (which stay on Cloudflare Pages) with a shared TRIGGER_SECRET.
*/30 * * * *→/api/claude-code-check(monitors Claude Code npm releases)0 * * * *→/api/health-check(hourly; was every 15 min on Vercel, reduced to save invocations)
Errors and cron check-ins are reported to Sentry (sentry.js, DSN from the aitmpl-workers project — see Error Tracking below).
cd cloudflare-workers/crons
npm run dev # Local dev
npx wrangler deploy # DeploySecrets (Cloudflare): DASHBOARD_URL (e.g. https://www.aitmpl.com), TRIGGER_SECRET, SENTRY_DSN (optional).
docs-monitor (DECOMMISSIONED 2026-07)
Monitored https://code.claude.com/docs hourly with Telegram notifications. Deleted from Cloudflare to free a cron-trigger slot for the newsletter worker (the account's free plan allows 5 cron triggers total). The code remains in cloudflare-workers/docs-monitor/ and can be redeployed if a slot frees up (npx wrangler deploy).
pulse (Weekly KPI Report)
Collects metrics from GitHub, Discord, Supabase, npm, and Google Analytics every Sunday at 14:00 UTC and sends a consolidated report via Telegram.
Architecture: Single index.js file (no npm dependencies at runtime). All source collectors, formatter, and Telegram sender in one file.
Cron: 0 14 * * 0 (Sundays 14:00 UTC / 11:00 AM Chile)
cd cloudflare-workers/pulse
npm run dev # Local dev
npx wrangler deploy # Deploy
# Manual trigger
curl -X POST https://pulse-weekly-report.SUBDOMAIN.workers.dev/trigger \
-H "Authorization: Bearer $TRIGGER_SECRET"
# Test single source
curl -X POST "https://pulse-weekly-report.SUBDOMAIN.workers.dev/trigger?source=github" \
-H "Authorization: Bearer $TRIGGER_SECRET"
# Dry run (no Telegram)
curl -X POST "https://pulse-weekly-report.SUBDOMAIN.workers.dev/trigger?send=false" \
-H "Authorization: Bearer $TRIGGER_SECRET"Secrets (Cloudflare):
TELEGRAM_BOT_TOKEN # Shared with docs-monitor
TELEGRAM_CHAT_ID # Shared with docs-monitor
GITHUB_TOKEN # GitHub PAT (public_repo scope)
SUPABASE_URL # Supabase project URL
SUPABASE_SERVICE_ROLE_KEY # Supabase service role key
DISCORD_BOT_TOKEN # Discord bot token
DISCORD_GUILD_ID # Discord server ID
TRIGGER_SECRET # For manual /trigger endpoint
GA_PROPERTY_ID # GA4 property ID (optional)
GA_SERVICE_ACCOUNT_JSON # Base64 service account (optional)Graceful degradation: Each source catches its own errors. Missing secrets or API failures show ⚠️ Unavailable instead of crashing the report. Failed collectors are also reported to Sentry via sentry.js (see Error Tracking below). The Vercel collector was removed (2026-07) since the dashboard no longer deploys to Vercel.
newsletter (Weekly Community Components Email) — PAUSED 2026-09-20
Composes and sends a simple weekly email via Resend featuring trending components (one Skill, Agent, MCP, Hook and Setting per send, in that fixed order). Selection is weighted-random by recent downloads and the copy (subject, catalog intro, per-component sentences, stats cited, closer) rotates from pools so no two emails read the same. Body is plain text plus a minimal HTML version (bold + underlined component titles, clickable component links). Data comes from the live trending-data.json + components.json.
Delivery: Resend Broadcast targeting the segment in RESEND_SEGMENT_ID — Resend injects the per-recipient unsubscribe link ({{{RESEND_UNSUBSCRIBE_URL}}} placeholder in the body) and manages the suppression list automatically. Replies go to NEWSLETTER_REPLY_TO. The segment is the safety gate: point it at a pilot segment for tests or the full-audience segment for community-wide sends. Open/click tracking is enabled on the aitmpl.com domain with tracking subdomain track.aitmpl.com (metrics per broadcast at resend.com/broadcasts). The weekly send is paused (2026-09-20) because the emails were reading as spam; the worker stays deployed and only the automatic send is off. wrangler.toml has crons = [] (was 0 16 * * SUN, a slot freed by decommissioning docs-monitor) and NEWSLETTER_ENABLED = "false" makes scheduled() a no-op, so restoring the trigger alone does not resume sending. Repo edits do not reach production: no GitHub Action deploys this worker, so a pause or a resume only lands via npx wrangler deploy from cloudflare-workers/newsletter/. GET /preview?format=text composes without sending and POST /trigger sends (?send=false for dry run) — both still work while paused.
cd cloudflare-workers/newsletter
npm run dev # Local dev
npx wrangler deploy # Deploy
# Preview content without sending (repeat to see the copy rotate)
curl "https://aitmpl-newsletter.SUBDOMAIN.workers.dev/preview?format=text" \
-H "Authorization: Bearer $TRIGGER_SECRET"
# Real send: creates + sends a Broadcast to the segment in RESEND_SEGMENT_ID
curl -X POST "https://aitmpl-newsletter.SUBDOMAIN.workers.dev/trigger" \
-H "Authorization: Bearer $TRIGGER_SECRET"Secrets (Cloudflare): RESEND_API_KEY (full access — broadcasts/segments), RESEND_SEGMENT_ID, NEWSLETTER_REPLY_TO, TRIGGER_SECRET, SENTRY_DSN (optional). Public vars in wrangler.toml [vars]: DASHBOARD_URL, RESEND_FROM_EMAIL (daniel.avila@aitmpl.com), NEWSLETTER_ENABLED (currently "false" — the kill switch described above).
Error Tracking (Sentry)
Free-tier Sentry, added to close the gap where automated cron/worker failures
were previously invisible. No official @sentry/* SDK is used anywhere —
every surface has its own tiny dependency-free client that posts directly to
the Sentry envelope API via fetch(), matching this repo's zero-dependency
worker style and avoiding Cloudflare Pages SSR friction with @sentry/astro.
Status as of 2026-07-04: all 3 projects live and verified end-to-end (each confirmed with a manual test event returning HTTP 200 from Sentry and appearing in its Issues dashboard).
- ✅ Cloudflare Workers (Sentry project
aitmpl-workers) —SENTRY_DSNsecret set on all 3 workers (aitmpl-crons,pulse-weekly-report,claude-docs-monitor) viawrangler secret put SENTRY_DSN. - ✅ Dashboard (Sentry project
aitmpl-dashboard) —SENTRY_DSNset as a Cloudflare Pages secret (wrangler pages secret put SENTRY_DSN --project-name=aitmpl-dashboard). Wired intocaptureApiError()calls inclaude-code-check,health-check, and the threetrack-*endpoints. - ✅ CLI (Sentry project
aitmpl-cli) — the DSN is public by design (send-only, not a secret) and ships hardcoded as the default incli-tool/src/error-reporting.js(DEFAULT_SENTRY_DSN, overridable viaCCT_SENTRY_DSNfor testing against a different project). Reporting itself stays opt-in: requires the end user to setCCT_ERROR_REPORTING=true, and always defers to the existingCCT_NO_TRACKING/CCT_NO_ANALYTICS/CIopt-outs.
Not yet configured (any surface): Sentry alert rules to Discord/Telegram,
and Cron Monitors dashboards for the workers' scheduled check-ins (the
checkIn() calls already send in_progress/ok/error events — a Monitor
just needs to be created in the Sentry UI with matching slugs:
claude-code-check, health-check, pulse-weekly-report, docs-monitor).
Files: cloudflare-workers/{crons,pulse,docs-monitor}/sentry.js (workers),
dashboard/src/lib/api/error-tracking.ts (dashboard), cli-tool/src/error-reporting.js (CLI).
Dashboard (www.aitmpl.com)
Astro + React + Tailwind dashboard serving both www.aitmpl.com and app.aitmpl.com. Clerk auth for user collections. Source lives in dashboard/. All API endpoints are Astro API routes in the same project.
Architecture
- Framework: Astro 5 with React islands, Tailwind v4,
output: 'server',@astrojs/cloudflareadapter (mode: 'directory') - Hosting: Cloudflare Pages (project
aitmpl-dashboard), SSR on Workers runtime - Auth: Clerk (
window.Clerkglobal, no ClerkProvider per island) - Data:
components.jsonandtrending-data.jsonserved fromdashboard/public/(same-origin) - APIs: All endpoints in
dashboard/src/pages/api/(Astro API routes, no separate serverless project)
Featured Pages (/featured/[slug])
Featured partner integrations shown on the dashboard homepage. Two files to edit:
dashboard/src/lib/constants.ts — FEATURED_ITEMS array. Each entry has:
name,description,logo,url(/featured/slug),tag,tagColor,categoryctaLabel,ctaUrl,websiteUrlinstallCommand— shown in the sidebar Quick Install boxmetadata— key/value pairs shown in the Details sidebar (e.g.Components: '8')links— sidebar links list
dashboard/src/pages/featured/[slug].astro — Content for each slug rendered via {slug === 'brightdata' && (...)} blocks. Each block contains the full HTML content for that partner page.
When adding a skill to a featured page:
- Add a new card
<div class="flex gap-3 ...">inside the Skills Layer section of the relevant{slug === '...'}block - Update
installCommandinconstants.tsto include the new skill - Increment
metadata.Componentscount inconstants.ts
Current featured slugs: brightdata, neon-instagres, claudekit, braingrid
Cloudflare Pages Project Setup
A single Cloudflare Pages project (aitmpl-dashboard) serves all domains. Config lives in dashboard/wrangler.toml:
| Project | Domains | Root Directory | Build output |
aitmpl-dashboard | www.aitmpl.com, aitmpl.com (redirect), app.aitmpl.com | dashboard | dist |
wrangler.toml sets pages_build_output_dir = "./dist", compatibility_flags = ["nodejs_compat"], and the PUBLIC_* build-time vars in [vars]. Secrets are set via the Cloudflare Dashboard or wrangler pages secret put.
Deployment
ALWAYS use the deployer agent (.claude/agents/deployer.md) for all deployments. It runs pre-deploy checks (auth, git status, build) and handles the full pipeline safely. Never deploy manually.
npm run deploy # Build + `wrangler pages deploy dist` for www + app.aitmpl.com
npm run deploy:dashboard # Same as aboveCI/CD: Pushes to main auto-deploy via GitHub Actions (.github/workflows/deploy.yml):
- Changes in
dashboard/**trigger a build andwrangler pages deploy dist --project-name=aitmpl-dashboard
Required GitHub Secrets (Settings > Secrets > Actions):
CLOUDFLARE_API_TOKEN— Cloudflare API token with Pages edit permissionCLOUDFLARE_ACCOUNT_ID— Cloudflare account ID
Environment Variables (Cloudflare)
PUBLIC_* vars are build-time and live in dashboard/wrangler.toml [vars] (and are also passed to the GitHub Actions build step). Everything else is a Cloudflare secret (wrangler pages secret put <NAME> or the Pages dashboard):
# Clerk
PUBLIC_CLERK_PUBLISHABLE_KEY=xxx # [vars] — build-time
CLERK_SECRET_KEY=xxx # secret
# Data
PUBLIC_COMPONENTS_JSON_URL=/components.json # [vars] — build-time
# GitHub OAuth
PUBLIC_GITHUB_CLIENT_ID=xxx # [vars] — build-time
GITHUB_CLIENT_SECRET=xxx # secret
# Supabase (download tracking)
SUPABASE_URL=https://xxx.supabase.co # secret
SUPABASE_SERVICE_ROLE_KEY=xxx # secret
# Neon Database
NEON_DATABASE_URL=postgresql://user:pass@host/db?sslmode=require # secret
# Discord
DISCORD_APP_ID=xxx # secret
DISCORD_BOT_TOKEN=xxx # secret
DISCORD_PUBLIC_KEY=xxx # secret
DISCORD_WEBHOOK_URL_CHANGELOG=https://discord.com/api/webhooks/xxx # secretKnown Issues & Solutions
Node built-ins in SSR
- The Cloudflare Workers runtime does not expose Node's
fs/path/etc. by default.astro.config.mjsenablesnodejs_compat(viawrangler.toml) and externalizesnode:fs,node:path,node:url,node:streamin SSR. Avoid adding new hard dependencies on Node-only APIs in server code.
react-dom/server on Cloudflare
astro.config.mjsaliasesreact-dom/servertoreact-dom/server.nodeand marksreact-domasnoExternalat build time so React SSR works on the Workers runtime. Don't remove this alias.
Local Development
cd dashboard
npm install
npx astro dev --port 4321 # Dashboard + APIs at http://localhost:4321Data Files
Component Catalog
docs/components.json— Full generated catalog (source of truth), keepscontentandsecurityfields (needed by the legacy static site)dashboard/public/components.json— Dashboard copy, withoutcontent/security(lighter payload; dashboard doesn't need them)dashboard/public/counts.json— Per-type counts only (e.g.{"agents": 421, ...}), used by the sidebar/plugins pages instead of loading the full catalogdashboard/public/components/{type}.json— One file per component type (agents.json, commands.json, etc.), loaded on demand byComponentGrid.tsxfor the active tabdashboard/public/search-index.json— Flat array forSearchModal.tsxdashboard/public/component-content/{type}/{slug}.json— Full per-component content (incl. markdown body), fetched on demand when a component's detail view or PR flow needs itdashboard/public/trending-data.json— Trending/download stats
All of the above are served as static Cloudflare Pages assets with
cache-control: public, max-age=86400, stale-while-revalidate=3600 (see
dashboard/public/_headers).
Data Flow
scripts/generate_components_json.pyscanscli-tool/components/- Generates
docs/components.json(full, withcontent/security) and the split dashboard artifacts (dashboard/public/components.json,counts.json,components/{type}.json,search-index.json,component-content/{type}/{slug}.json) — these two writes are decoupled, so the dashboard payload stays lean without touching the legacy catalog - Dashboard islands (
ComponentGrid.tsx,SearchModal.tsx,Sidebar.astro,SendToRepoModal.tsx) load the split artifacts instead of the full catalog scripts/generate_trending_data.pywrites onlydocs/trending-data.json;update-json-data.ymlcopies it todashboard/public/trending-data.json, which is the oneTrendingView.tsxand the home counters actually fetch- Download tracking via
/api/track-download-supabase
Plugins & Marketplaces Catalog
scripts/generate_plugins_json.py— scans the repos listed inREPOSvia theghCLI (needsgh auth login) and writesdashboard/public/plugins.json. This is a manual, offline step — it does not run duringnpm run buildor CI/CD, so re-running it never affects deploy time.- For each marketplace it records
plugins_list[].components(counts per type) andplugins_list[].components_items({name, description}per command/agent/skill/hook/mcp/lsp, description parsed from the item's frontmatter). The dashboard's/plugins/[slug].astropage renders this throughMarketplacePluginsList.tsx, which shows a search box and a "view details" modal per plugin. max_local_scans = 50inextract_marketplace_plugins_detail()caps how many locally-sourced plugins (i.e.source: "./plugins/..."within the marketplace's own repo) get scanned for real component names/descriptions, per marketplace, to bound GitHub API calls. Plugins beyond that cap (or plugins hosted in an external repo, which are never scanned) fall back to showing only tag badges in the modal, with no itemized breakdown — this is a graceful degradation, not an error.- As of 2026-07-11,
anthropics/claude-plugins-officialalone has 51 locally-sourced plugins (out of 255 total), i.e. already at the edge of this cap. Bumpmax_local_scansif more complete coverage is needed — GitHub's rate limit (5000 req/hour authenticated) is not the constraint, wall-clock run time is (each item now costs 1 extra API call to fetch its file content for the description).
- As of 2026-07-11,
Legacy Static Site (docs/)
The docs/ directory contains the old static HTML site (no longer deployed to www). GitHub Pages still builds it from repository settings and publishes it at davila7.github.io/claude-code-templates; nothing in production depends on that, and every article canonicalises to aitmpl.com. Blog articles in docs/blog/ are still referenced externally.
Blog Article Creation
Use the CLI skill to create blog articles:
/create-blog-article @cli-tool/components/{type}/{category}/{name}.jsonThis automatically:
- Generates AI cover image
- Creates HTML with SEO optimization
- Updates
docs/blog/blog-articles.json
The site serves dashboard/public/blog/, not docs/blog/. The skill writes
only the docs/ copy, so after creating an article you must mirror it across —
the article directory, its cover under assets/, and the new entry in
blog-articles.json — or it never appears on aitmpl.com. Three articles were
stranded this way before 2026-09-20. daily-blog-discord.yml picks from
docs/blog/blog-articles.json and links to aitmpl.com/blog/<slug>/, so an
unmirrored article is posted to Discord as a 404. Keep the two
blog-articles.json files identical.
Code Standards
Path Handling
- Use relative paths:
.claude/scripts/,.claude/hooks/ - Never hardcode absolute paths or home directories
- Use
path.join()for cross-platform compatibility
Naming Conventions
- Files:
kebab-case.js,PascalCase.js(for classes) - Functions/Variables:
camelCase - Constants:
UPPER_SNAKE_CASE - Components:
hyphenated-names
Error Handling
- Use try/catch for async operations
- Provide helpful error messages
- Log errors with context
- Implement fallback mechanisms
Testing
npm test # Run all tests
npm run test:watch # Watch mode
npm run test:coverage # Coverage reportAim for 70%+ test coverage. Test critical paths and error handling.
Common Issues
API endpoint returns 404 after deploy
- API routes must be in
dashboard/src/pages/api/as Astro API routes - Export named HTTP methods:
export const POST: APIRoute,export const GET: APIRoute
Download tracking not working
- Check Cloudflare Pages logs:
npx wrangler pages deployment tail --project-name=aitmpl-dashboard - Verify environment variables / secrets in the Cloudflare Pages dashboard
- Test endpoint manually with curl
Components not updating on website
- Run
python scripts/generate_components_json.py(writes bothdocs/components.jsonand the splitdashboard/public/artifacts directly — no manual copy step) - Deploy and clear browser cache (artifacts are cached 24h at the edge, see
dashboard/public/_headers)
Important Notes
- Component catalog: Always regenerate after adding/modifying components
- API tests: Required before production deploy (breaks download tracking)
- Secrets: Never commit API keys (use environment variables)
- Paths: Use relative paths for all project files
- Backwards compatibility: Don't break existing component installations
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
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.

