Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/stefan-jansen/claude-code-toolkitnpx agentmods add commands/stefan-jansen/claude-code-toolkit/setup-javascriptWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/stefan-jansen/claude-code-toolkit/setup-javascript)<a href="https://agentmods.dev/commands/stefan-jansen/claude-code-toolkit/setup-javascript"><img src="https://agentmods.dev/badge/commands/stefan-jansen/claude-code-toolkit/setup-javascript/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/stefan-jansen/claude-code-toolkit/setup-javascript"><img src="https://agentmods.dev/badge/commands/stefan-jansen/claude-code-toolkit/setup-javascript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.00998 |
| Opus 5.5 | $0.00007 | $0.00399 |
| Sonnet 5.5 | $0.00003 | $0.00200 |
| Haiku 4.5 | $0.00002 | $0.00100 |
Grade A, and why
setup:javascript scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
JavaScript Project Setup
I'll set up a new JavaScript/Node.js project with Jest, ESLint, Prettier, and the Claude Code Framework.
# Constants
readonly CLAUDE_DIR=".claude"
PROJECT_NAME="${1}"
# If no project name provided, use current directory name
if [ -z "$PROJECT_NAME" ]; then
PROJECT_NAME=$(basename "$PWD")
fi
echo "🌐 Setting up JavaScript/Node.js project: $PROJECT_NAME"
echo ""
# Create directory structure
mkdir -p src
mkdir -p tests
# Create package.json
cat > package.json << EOF
{
"name": "$PROJECT_NAME",
"version": "0.1.0",
"description": "A JavaScript project",
"main": "src/index.js",
"scripts": {
"start": "node src/index.js",
"test": "jest",
"lint": "eslint src/",
"format": "prettier --write src/"
},
"devDependencies": {
"jest": "^29.0.0",
"eslint": "^8.0.0",
"prettier": "^3.0.0",
"@types/node": "^20.0.0"
},
"keywords": [],
"author": "",
"license": "ISC"
}
EOF
# Create main source file
cat > src/index.js << EOF
/**
* Main entry point for $PROJECT_NAME
*/
function main() {
console.log("Hello from $PROJECT_NAME!");
}
if (require.main === module) {
main();
}
module.exports = { main };
EOF
# Create test file
cat > tests/index.test.js << EOF
const { main } = require('../src/index');
describe('main function', () => {
test('should run without errors', () => {
expect(() => main()).not.toThrow();
});
});
EOF
# Create .gitignore
cat > .gitignore << 'EOF'
# Node
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json
yarn.lock
# Testing
coverage/
.nyc_output/
# Build
dist/
build/
*.tgz
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# Environment
.env
.env.local
.env.*.local
# Logs
logs/
*.log
EOF
echo "✅ JavaScript project structure created"
echo ""
echo "🔧 Adding Claude Code Framework..."
# Create .claude directory structure (using shared-setup-patterns skill)
mkdir -p $CLAUDE_DIR/work
mkdir -p $CLAUDE_DIR/memory
mkdir -p $CLAUDE_DIR/reference
mkdir -p $CLAUDE_DIR/hooks
# Generate security hooks from shared skill
echo "I'll create .claude/settings.json with security hooks from the shared-setup-patterns skill."
# Create project CLAUDE.md
cat > CLAUDE.md << EOF
# $PROJECT_NAME
JavaScript/Node.js project with modern tooling.
## Project Knowledge
@.claude/memory/project_state.md
@.claude/memory/dependencies.md
@.claude/memory/conventions.md
@.claude/memory/decisions.md
## Current Work
@.claude/work/current/README.md
EOF
# Generate memory files from shared skill templates
echo "I'll create memory files (.claude/memory/*) using templates from the shared-setup-patterns skill."
# Create work README
cat > $CLAUDE_DIR/work/current/README.md << 'EOF'
# Current Work
Track active development tasks here. Use work units for larger features:
.claude/work/current/ ├── 001_feature_name/ │ ├── requirements.md │ ├── implementation.md │ └── notes.md
EOF
echo ""
echo "✅ JavaScript project setup complete!"
echo ""
echo "Next steps:"
echo " 1. cd into project directory (if not already there)"
echo " 2. npm install (or: yarn install, pnpm install)"
echo " 3. npm test"
echo " 4. npm start"
echo ""
echo "Project structure:"
echo " src/ - Source code"
echo " tests/ - Test files"
echo " .claude/ - Claude framework"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 183 lines · 17 tokens per session scan A e5928d2b592a
setup:javascript is a command published in the GitHub repository stefan-jansen/claude-code-toolkit (101 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 998 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
setup:javascript compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup:javascriptstefan-jansen/claude-code-toolkit | Command | 101 | 4mo ago | MIT | A | 17 | Claude Code |
| pull-repostravisjneuman/.claude | Command | 115 | yesterday | MIT | A | 13 | Claude Code |
| update-countstravisjneuman/.claude | Command | 115 | yesterday | MIT | A | 13 | Claude Code |
| workflow-classifysangrokjung/claude-forge | Command | 886 | 2mo ago | MIT | A | 18 | Claude Code |
| create-task-list.templateevan043/claude-cli-advanced-starter-pack | Command | 62 | 4mo ago | MIT | A | 0 | Claude Code |
| todo.templateevan043/claude-cli-advanced-starter-pack | Command | 62 | 4mo ago | MIT | A | 0 | Claude Code |
| update-check.templateevan043/claude-cli-advanced-starter-pack | Command | 62 | 4mo ago | MIT | A | 0 | Claude Code |