scaffold-project
Skill0 starsChanged 5 months agoMITView on GitHub
Initialize a new project from scratch. Creates directory structure, package.json, TypeScript config, Drizzle schema, Trigger.dev config, and .env.example. Use this to bootstrap a new project.
- Reads credentials
- Installs packages
11 other projects use a version of this.
Adopted by
Most recently taken up by
- mxrsv/agents-skillstheir own version, first seen Nov 1, 2026
- MartinKChen/harness-claude-codetheir own version, first seen Oct 20, 2026
- navjyotnishant/nj-agentstheir own version, first seen Oct 15, 2026
- plugin87/ux-ui-agent-skillstheir own version, first seen Oct 13, 2026
- tejastn10/workbenchtheir own version, first seen Oct 13, 2026
- sendaifun/solana-newtheir own version, first seen Oct 9, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- plugin87/ux-ui-agent-skills★ 3.1ksame name
- sendaifun/solana-new★ 178same name
- faizkhairi/claude-code-blueprint★ 73same name
- cardano-foundation/cardano-dev-skills★ 38same name
- eldermoraes/quarkus-agentic-scaffolding★ 27same name
- 0gfoundation/0g-agent-skills★ 15same name
- mxrsv/agents-skills★ 11same name
- navjyotnishant/nj-agents★ 1same name
- tejastn10/workbench★ 1same name
- MartinKChen/harness-claude-code★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- browseSkill
- discoverSkill
- onboardSkill
- rememberSkill
- scaffold-clientSkill
- scaffold-taskSkill
- scaffold-viewerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 0 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
If $ARGUMENTS provides a project name, use it.
- Very specific: line 20
Read ${CLAUDE_SKILL_DIR}/../../imp_doc/getting-started/setup.md for detailed setup instructions and best practices.
- Very specific: line 121
After copying, replace <PROJECT_ID> placeholders in trigger.config.ts with the project name.
- Very specific: line 208
Read .outbound-builder-plugin-memory.json (create with {"version":1,"entries":[],"proven_patterns":[]} if missing)
- Very specific: line 218
Never include real secrets — use <YOUR_*> placeholders in .env.example
- Very specific: line 220
Always set ssl: { rejectUnauthorized: false } for cloud-hosted PostgreSQL
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scaffold a New Project
You create the full directory structure and configuration files for a new project.
Process
Step 1: Gather Project Details
If $ARGUMENTS provides a project name, use it. Otherwise ask:
- "What should the project be called?" (used for directory name and package.json)
- "Where should I create it?" (default: current directory)
Read ${CLAUDE_SKILL_DIR}/../../imp_doc/getting-started/setup.md for detailed setup instructions and best practices.
Step 2: Create Directory Structure
<project-name>/
├── trigger/ — Trigger.dev task definitions
├── src/
│ ├── clients/ — API clients with rate limiting
│ ├── db/
│ │ └── schema/ — Drizzle ORM table definitions
│ └── lib/ — Utilities (rate-limiter, dedup, config)
├── scripts/ — Manual trigger and utility scripts
├── server/ — Data viewer server (optional)
├── tests/
│ ├── unit/ — Unit tests
│ └── integration/ — Integration tests
├── docs/ — Architecture docs and learnings
└── baml_src/ — BAML schema definitions (if using LLM calls)Step 3: Generate package.json
Create package.json with:
{
"name": "<project-name>",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "npx trigger.dev@4.3.3 dev",
"deploy": "npx trigger.dev@4.3.3 deploy --env prod",
"test": "vitest run",
"test:watch": "vitest",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:push": "NODE_TLS_REJECT_UNAUTHORIZED=0 drizzle-kit push",
"db:studio": "NODE_TLS_REJECT_UNAUTHORIZED=0 drizzle-kit studio",
"server": "tsx server/index.ts",
"server:dev": "tsx --watch server/index.ts"
},
"dependencies": {
"@trigger.dev/sdk": "4.3.3",
"drizzle-orm": "^0.39.0",
"pg": "^8.13.0",
"zod": "^3.24.0",
"hono": "^4.6.0"
},
"devDependencies": {
"@trigger.dev/build": "4.3.3",
"drizzle-kit": "^0.30.0",
"tsx": "^4.19.0",
"typescript": "^5.7.0",
"vitest": "^3.0.0",
"@types/pg": "^8.11.0",
"@types/node": "^22.0.0"
}
}Step 4: Generate TypeScript Config
Create tsconfig.json:
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"rootDir": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src/**/*", "trigger/**/*", "server/**/*", "scripts/**/*"],
"exclude": ["node_modules", "dist"]
}Step 5: Copy Template Files
Copy from ${CLAUDE_SKILL_DIR}/../../templates/:
| Template | Destination | Purpose |
drizzle-schema.ts | src/db/schema/index.ts | Base table definitions |
pipeline-config.ts | src/lib/pipeline-config.ts | Rate limits, batch sizes, convergence |
trigger-config.ts | trigger.config.ts | Trigger.dev project configuration |
base-api-client.ts | src/clients/base-client.ts | API client with rate limiting and retry |
After copying, replace <PROJECT_ID> placeholders in trigger.config.ts with the project name.
Step 6: Generate .env.example
# Database (PostgreSQL)
DATABASE_URL=postgresql://<USER>:<PASSWORD>@<HOST>:<PORT>/<DATABASE>?sslmode=require
# Trigger.dev
TRIGGER_SECRET_KEY=<YOUR_TRIGGER_SECRET_KEY>
TRIGGER_API_URL=https://api.trigger.dev
# Observability (optional — Axiom)
AXIOM_API_TOKEN=<YOUR_AXIOM_API_TOKEN>
AXIOM_DATASET=<YOUR_DATASET_NAME>
# Add API keys for your data sources below:
# RAPIDAPI_KEY=<YOUR_RAPIDAPI_KEY>
# LLM_API_KEY=<YOUR_LLM_API_KEY>Step 7: Generate drizzle.config.ts
import { defineConfig } from "drizzle-kit";
export default defineConfig({
schema: "./src/db/schema/index.ts",
out: "./drizzle",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL!,
ssl: { rejectUnauthorized: false },
},
});Step 8: Initialize Git
git initCreate .gitignore:
node_modules/
dist/
.env
*.log
drizzle/
.trigger/Step 9: Report
Project "<project-name>" scaffolded:
src/db/schema/index.ts — Drizzle schema (base tables)
src/lib/pipeline-config.ts — Rate limits, batch sizes, config
src/clients/base-client.ts — API client template
trigger.config.ts — Trigger.dev configuration
tsconfig.json — TypeScript config
package.json — Dependencies
drizzle.config.ts — Drizzle Kit config
.env.example — Environment variables template
.gitignore — Git ignore rules
Next steps:
1. cp .env.example .env — fill in your secrets
2. npm install — install dependencies
3. /scaffold-client <api> — add your first API client
4. /scaffold-task <task> — add your first background taskStep 10: Record Learnings
Reflect on the scaffolding process. If you encountered any of the following, record them to .outbound-builder-plugin-memory.json:
- Errors or workarounds (e.g., dependency conflicts, config issues)
- Non-obvious behaviors (e.g., a template needed unexpected modifications)
- API quirks or platform-specific gotchas
- Schema decisions that differed from the template defaults
For each learning:
- Determine the category:
error-fix,api-quirk,schema-pattern,config-gotcha,build-pattern, ordomain-insight - Generate a deterministic ID:
mem-+ first 8 chars of MD5 hash ofcategory:title(use python3) - Read
.outbound-builder-plugin-memory.json(create with{"version":1,"entries":[],"proven_patterns":[]}if missing) - Dedup by ID -- if the same ID exists, increment
success_countand updatedate - Otherwise append a new entry with
success_count: 1,source: "scaffold", andcontext.stage: "scaffold-project" - Rebuild
proven_patternsfrom entries withsuccess_count >= 2 - Write the file
Skip this step if nothing noteworthy happened during scaffolding.
Rules
- Never include real secrets — use
<YOUR_*>placeholders in .env.example - Pin Trigger.dev CLI and SDK versions to match (4.3.3)
- Always set
ssl: { rejectUnauthorized: false }for cloud-hosted PostgreSQL - Template files should be copied, not symlinked
- The project must work with
npm install && npm run devafter filling in .env
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.

