Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configsWrote 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/matt-dionis/claude-code-configs/build)<a href="https://agentmods.dev/commands/matt-dionis/claude-code-configs/build"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/build/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/matt-dionis/claude-code-configs/build"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/build.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.00000 | $0.02407 |
| Opus 5.5 | $0.00000 | $0.00963 |
| Sonnet 5.5 | $0.00000 | $0.00481 |
| Haiku 4.5 | $0.00000 | $0.00241 |
Grade A, and why
build scanned grade A with 1 finding 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
import { exec } from 'child_process'; How it starts
The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build MCP Server for Production
Builds and prepares your MCP server for production deployment.
Usage
/build [target] [options]
Targets
node- Build for Node.js (default)docker- Build Docker imagenpm- Prepare for npm publishing
Options
--minify- Minify output--sourcemap- Include source maps--analyze- Analyze bundle size
Implementation
import { exec } from 'child_process';
import { promisify } from 'util';
import * as fs from 'fs/promises';
import * as path from 'path';
const execAsync = promisify(exec);
async function buildServer(
target: 'node' | 'docker' | 'npm' = 'node',
options: {
minify?: boolean;
sourcemap?: boolean;
analyze?: boolean;
} = {}
) {
console.log('🔨 Building MCP Server for Production');
console.log('='.repeat(50));
// Pre-build checks
await runPreBuildChecks();
// Build based on target
switch (target) {
case 'node':
await buildForNode(options);
break;
case 'docker':
await buildForDocker(options);
break;
case 'npm':
await buildForNpm(options);
break;
}
// Post-build validation
await validateBuild(target);
console.log('\n✅ Build completed successfully!');
}
async function runPreBuildChecks() {
console.log('\n🔍 Running pre-build checks...');
// Check for uncommitted changes
try {
const { stdout: gitStatus } = await execAsync('git status --porcelain');
if (gitStatus.trim()) {
console.warn('⚠️ Warning: You have uncommitted changes');
}
} catch {
// Git not available or not a git repo
}
// Run tests
console.log(' Running tests...');
try {
await execAsync('npm test');
console.log(' ✅ Tests passed');
} catch (error) {
console.error(' ❌ Tests failed');
throw new Error('Build aborted: tests must pass');
}
// Check dependencies
console.log(' Checking dependencies...');
try {
await execAsync('npm audit --production');
console.log(' ✅ No vulnerabilities found');
} catch (error) {
console.warn(' ⚠️ Security vulnerabilities detected');
console.log(' Run "npm audit fix" to resolve');
}
}
async function buildForNode(options: any) {
console.log('\n📦 Building for Node.js...');
// Clean previous build
await fs.rm('dist', { recursive: true, force: true });
// Update tsconfig for production
const tsConfig = JSON.parse(await fs.readFile('tsconfig.json', 'utf-8'));
const prodConfig = {
...tsConfig,
compilerOptions: {
...tsConfig.compilerOptions,
sourceMap: options.sourcemap || false,
inlineSources: false,
removeComments: true,
},
};
await fs.writeFile('tsconfig.prod.json', JSON.stringify(prodConfig, null, 2));
// Build with TypeScript
console.log(' Compiling TypeScript...');
await execAsync('npx tsc -p tsconfig.prod.json');
// Minify if requested
if (options.minify) {
console.log(' Minifying code...');
await minifyCode();
}
// Copy package files
console.log(' Copying package files...');
await fs.copyFile('package.json', 'dist/package.json');
await fs.copyFile('README.md', 'dist/README.md').catch(() => {});
await fs.copyFile('LICENSE', 'dist/LICENSE').catch(() => {});
// Create production package.json
const pkg = JSON.parse(await fs.readFile('package.json', 'utf-8'));
const prodPkg = {
...pkg,
scripts: {
start: 'node index.js',
},
devDependencies: undefined,
};
await fs.writeFile('dist/package.json', JSON.stringify(prodPkg, null, 2));
// Analyze bundle if requested
if (options.analyze) {
await analyzeBundleSize();
}
console.log(' ✅ Node.js build complete');
console.log(' Output: ./dist');
}
async function buildForDocker(options: any) {
console.log('\n🐋 Building Docker image...');
// Build Node.js first
await buildForNode(options);
// Create Dockerfile if it doesn't exist
const dockerfilePath = 'Dockerfile';
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 · 377 lines · 0 tokens per session scan A 41fd9c6646d7
build is a command published in the GitHub repository Matt-Dionis/claude-code-configs (619 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,407 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
build compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| buildMatt-Dionis/claude-code-configs | Command | 619 | 1y ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 154k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 154k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 154k | today | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 154k | today | MIT | A | 14 | Claude Code |