agentleFS
reaatechreaatech/agents-md-kit/skills/scaffolding/skill.md

scaffolding

Skill2 starsChanged 6 months agoMITView on GitHub

Template-based file generation for new agents and skills

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    User intent: Create a new MCP server agent with standard skills

    line 25
  2. Distinctive:

    Never include real user data in generated examples

    line 129
  3. Very specific:

    Use placeholder values like user-123, example@example.com

    line 130
  4. Distinctive:

    Don't include actual API keys or secrets in templates

    line 131
  5. Distinctive:

    Write access required for output directory

    line 135
  6. Distinctive:

    Create parent directories if they don't exist

    line 136
  7. Distinctive:

    Never overwrite existing files without explicit consent (overwrite: true)

    line 137

“Common” is measured: kept by at least 6 in 10 of the 5 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

Scaffolding

Capability

Generates AGENTS.md and SKILL.md files from Handlebars templates, creating a complete directory structure with proper frontmatter, required sections, and skill definitions for all agent types.

MCP Tools

ToolInput SchemaOutputRate Limit
scaffold_agentz.object({ agentId: z.string(), displayName: z.string(), agentType: z.enum(['mcp','orchestrator','classifier','router','evaluator']), outputDir: z.string(), description: z.string().optional(), version: z.string().optional(), overwrite: z.boolean().optional(), skills: z.array(z.object({ skillId: z.string(), displayName: z.string(), skillType: z.enum(['tool','orchestration','evaluation','routing']), description: z.string().optional() })).optional() }){ created: string[], skipped: string[], errors: string[] }30 RPM

Usage Examples

Example 1: Scaffold a new MCP server agent

  • User intent: Create a new MCP server agent with standard skills
  • Tool call:
    {
      "name": "scaffold_agent",
      "arguments": {
        "agentId": "my-data-agent",
        "displayName": "My Data Agent",
        "agentType": "mcp",
        "outputDir": "./agents/my-data-agent",
        "description": "A data processing MCP server agent",
        "skills": [
          { "skillId": "data-query", "displayName": "Data Query", "skillType": "tool" },
          { "skillId": "data-validation", "displayName": "Data Validation", "skillType": "tool" }
        ]
      }
    }
  • Expected response:
    {
      "created": [
        "./agents/my-data-agent/AGENTS.md",
        "./agents/my-data-agent/skills/data-query/skill.md",
        "./agents/my-data-agent/skills/data-validation/skill.md"
      ],
      "skipped": [],
      "errors": []
    }

Example 2: Scaffold an orchestrator with dry-run

  • User intent: Preview what would be generated without writing files
  • Use the CLI:
    agents-md-kit scaffold \
      --agent-id my-orchestrator \
      --display-name "My Orchestrator" \
      --agent-type orchestrator \
      --output-dir ./agents/my-orchestrator \
      --skills routing,circuit-breaker \
      --dry-run
  • Expected output:

    Lists files that would be created with whether they already exist. No files written.

Example 3: Scaffold with library API

import { generateFiles, previewGeneration } from "@reaatech/agents-markdown-scaffold";

const config = {
  agentType: "mcp",
  agentId: "my-agent",
  displayName: "My Agent",
  outputDir: "./my-agent",
  overwrite: false,
  skills: [
    { skillId: "echo", displayName: "Echo", skillType: "tool" },
  ],
};

// Dry-run preview
const preview = previewGeneration(config);

// Generate files
const result = generateFiles(config);
console.log(result.created, result.skipped, result.errors);

Generated Structure

outputDir/
├── AGENTS.md           # Full template with all required sections
└── skills/
    └── {skill-id}/
        └── skill.md    # Full template with all required sections

Error Handling

Known Failure Modes

FailureCauseRecovery
Directory existsOutput directory already has filesSkip existing files, report in skipped
Invalid agentIdContains invalid charactersReturn error with valid format suggestion
Permission deniedNo write access to directoryReturn error suggesting permission fix
Invalid agentTypeNot a recognized agent typeReturn error with valid type list

Recovery Strategies

  • Existing files: Skip files that already exist (or overwrite if configured)
  • Invalid IDs: Suggest using lowercase alphanumeric with hyphens only
  • Permission issues: Suggest running with appropriate permissions
  • Unknown types: Return list of valid agent types

Security Considerations

PII Handling

  • Never include real user data in generated examples
  • Use placeholder values like user-123, example@example.com
  • Don't include actual API keys or secrets in templates

Permissions

  • Write access required for output directory
  • Create parent directories if they don't exist
  • Never overwrite existing files without explicit consent (overwrite: true)

Audit Logging

  • Log all scaffold operations with agentId and output path
  • Include request_id for tracing
  • Track files created and skipped

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.