This is a Node.js CLI tool (wp-agent-kit) designed to scaffold AI agent configuration for WordPress projects. It helps developers quickly set up AGENTS.md and .github skills/instructions in their repositories.
- Language: TypeScript (Node.js)
- Framework: Commander.js
- Prompting:
@clack/prompts - Build:
tsc(TypeScript Compiler) - Test:
vitest
- Entry Point:
src/cli.ts - Commands:
src/commands/*.ts(e.g.,install,setup,sync-skills,playground) - Core Logic:
src/lib/*.ts(e.g.,installer.tsfor file copying,triage-mapper.tsfor project detection) - Utilities:
src/utils/*.ts(e.g.,paths.ts,run.ts) - Assets:
AGENTS.template.md: The template file copied to user projects..github/: The source of skills and instructions copied to user projects.vendor/wp-agent-skills/: Submodule containing upstream skills.
- Run locally:
npm run dev(usestsx src/cli.ts) - Build:
npm run build(outputs todist/) - Test:
npm test(runs Vitest) - Lint:
npm run lint
install: Copies.githubandAGENTS.mdtemplate to a target directory.setup: Interactive wizard that detects project type and configures the kit.sync-skills: Pulls skills fromWordPress/agent-skillsinto.github/skills.playground: Launches a local WordPress Playground instance using a blueprint.build-release: Packages the CLI for release.
- When modifying commands, ensure you update the corresponding JSDoc comments.
- The
src/lib/installer.tsfile is critical as it handles the file copying logic. - The
src/lib/triage-mapper.tsfile contains logic for mapping project detection results to configuration options. - The
vendordirectory is gitignored and populated via submodule or script.