@batoanng/ai
v0.1.1
Published
Install reusable AI coding skills and agents into a project.
Readme
ai-agent
ai-agent is a prompt package for installing reusable AI coding skills and agents into a project.
- Use a skill for a focused workflow, such as removing unnecessary React Effects, debugging TypeScript, or applying TDD.
- Use an agent for a broader working role, such as code review, architecture, or simplification.
- Install one item when a project needs a specific workflow. Install all items when bootstrapping a project with the full prompt toolkit.
Install With @batoanng/ai
The package exposes separate skills and agents commands through the @batoanng/ai npm package:
npx -p @batoanng/ai skills add <skill-slug>
npx -p @batoanng/ai skills add -a
npx -p @batoanng/ai agents add <agent-slug>
npx -p @batoanng/ai agents add -aInstalling Skills
Install one skill into the current project:
npx -p @batoanng/ai skills add react-avoid-use-effectInstall every bundled skill:
npx -p @batoanng/ai skills add -aSkills are installed directly under the current folder:
./<skill-slug>/To install into Codex's project-local skill folder, run the command from .codex/skills.
Each skill install includes SKILL.md, any supporting references/, and one provider-specific reference file.
Provider Selection
Skill installs default to OpenAI:
npx -p @batoanng/ai skills add react-avoid-use-effectThe CLI logs the selected provider on every skill install:
Using provider: openaiTo install the Claude reference instead:
npx -p @batoanng/ai skills add react-avoid-use-effect --provider claudeAvailable providers:
| Provider | Included skill reference |
| --- | --- |
| openai | agents/openai.yaml |
| claude | agents/claude.md |
Installing Agents
Install one standalone agent:
npx -p @batoanng/ai agents add code-reviewerInstall every bundled agent:
npx -p @batoanng/ai agents add -aAgents are installed to:
.claude/agents/<agent-slug>.mdStandalone agents are provider-independent. If --provider is passed to an agent command, the install still writes the same agent file and logs that provider selection is ignored.
Updating Existing Installs
Existing installed skills and agents are skipped by default so local edits are preserved:
Skipped react-avoid-use-effect: already exists at ./react-avoid-use-effect. Use --force to replace it.Use --force to replace an existing install with the packaged version:
npx -p @batoanng/ai skills add react-avoid-use-effect --force
npx -p @batoanng/ai agents add code-reviewer --forceBundled Skills
| Skill | Group | Purpose |
| --- | --- | --- |
| extract-enum | general | Refactor repeated domain literals into a shared string enum when runtime reuse matters. |
| purposeful-logging | general | Add, review, and reduce logs so each line has diagnostic value and the right signals become metrics or spans. |
| solid-typescript | general | Apply practical SOLID pressure tests to TypeScript design without adding ceremony. |
| structure-types | general | Organize and scale TypeScript types and interfaces by domain and reuse boundary. |
| test-driven-development | general | Drive implementation through a red-green-refactor workflow. |
| typescript-debugging | general | Debug TypeScript and JavaScript issues with verified source maps, intentional instrumentation, and root-cause-first fixes. |
| use-types-structures | general | Prefer existing data structures from the @batoanng/types npm package and justify complexity choices. |
| extract-custom-hook | react | Refactor duplicated React stateful logic into a focused custom Hook. |
| react-avoid-use-effect | react | Remove unnecessary React Effects and replace them with React-first patterns. |
Bundled Agents
| Agent | Purpose |
| --- | --- |
| architect | System design, scalability, and architecture trade-off analysis. |
| code-architect | Feature-level implementation blueprints based on existing codebase patterns. |
| code-reviewer | General code review for correctness, maintainability, and security. |
| code-simplifier | Behavior-preserving simplification and cleanup of recently changed code. |
| database-reviewer | Cross-database review for PostgreSQL, MySQL, and MongoDB with one consistent checklist for performance, schema, security, and operations. |
| tdd-guide | Tests-first implementation guidance and coverage discipline. |
| typescript-debugger | Debug TypeScript and JavaScript failures through reproduction, source-map validation, targeted instrumentation, and verified fixes. |
| typescript-reviewer | TypeScript/JavaScript-focused review with emphasis on type safety and async correctness. |
Package Layout
.
├── agents/
├── bin/
├── config.toml
├── skills/
│ ├── general/
│ └── react/
├── src/
├── test/
├── README.md
└── SPECS.mdSkill source folders follow this shape:
skills/<group>/<skill>/
├── SKILL.md
├── agents/
│ ├── claude.md
│ └── openai.yaml
└── references/SKILL.mdis the canonical skill instruction file.agents/openai.yamlis the OpenAI-facing skill reference.agents/claude.mdis the Claude-facing skill reference.references/stores deeper supporting material used by the skill.
Standalone agent guides live in agents/.
Configuration
The package currently includes top-level execution limits in config.toml:
max_threads = 4
max_depth = 1Development
Run the test suite:
npm testSee SPECS.md for the technical CLI contract.
Extending The Package
To add a new skill:
- Create
skills/<group>/<skill>/SKILL.md. - Add
skills/<group>/<skill>/agents/openai.yaml. - Add
skills/<group>/<skill>/agents/claude.md. - Add
references/only if the skill needs deeper source material. - Document the new skill in this README.
To add a new standalone agent:
- Add a new Markdown guide under
agents/. - Give it a clear role, scope, and operating checklist.
- Document it in this README.
