CLI for bootstrapping projects with Dalhe base files.
dalhe init copies the template from src/template/init into the current directory, prepares the initial project structure, and runs openspec init --tools claude,codex.
dalhe skill lists, installs, removes, and updates skills maintained in src/template/skills, publishing them globally for Codex and Claude Code.
Official skills do not use prefixes.
dalhe update updates the global CLI installation and also updates OpenSpec.
Current template includes:
AGENTS.mdCLAUDE.md.ai-framework/DESIGN.md.ai-framework/RULES.md
During init, if any destination file already exists, execution stops and nothing is overwritten.
- Node.js
>=22.0.0
Package on npm: https://www.npmjs.com/package/dalhe-cli
Install directly from npm:
npm install -g dalhe-cliOpenSpec is installed automatically on the first dalhe init if it is not already available in PATH.
Install directly from repository:
npm install -g git+https://github.com/alexishida/dalhe-cli.gitOpenSpec is installed automatically on the first dalhe init if it is not already available in PATH.
Inside project repository:
npm install -g .OpenSpec is installed automatically on the first dalhe init if it is not already available in PATH.
Go into folder where you want to create project base:
dalhe initExample:
mkdir my-project
cd ./my-project
dalhe initdalhe init
dalhe skill list
dalhe skill install <skill-name>
dalhe skill install-all
dalhe skill uninstall <skill-name>
dalhe skill uninstall-all
dalhe skill update-all
dalhe update
dalhe --help
dalhe -h
dalhe --version
dalhe -v- Copies all template files into current folder.
- Creates required directories automatically.
- Blocks overwrites when a conflict is found.
- If
openspecis not available inPATH, runsnpm install -g @fission-ai/openspec@latest. - After copying, runs
openspec init --tools claude,codexin current folder. - This mode avoids the interactive OpenSpec menu and installs configuration directly for Claude Code and Codex.
- Requires
npmto be installed in order to installOpenSpecautomatically when needed. - Shows total number of copied files at the end.
bin/dalhe.js: CLI entry point.src/commands: application commands.src/core: execution base and error handling.src/services: support services.src/template/init: base files copied byinit.src/template/skills: skill helper files maintained in repository.test: automated tests..ai-framework/RULES.md: official project rules, including technical context and mandatory change guidelines.
Lists all skills available in src/template/skills.
Currently included skills:
rails8: support for development, refactoring, and review of Rails 8 apps.rails-code-audit: structured Rails 7/8 audits focused on security, code smells, conventions, and Oracle or MariaDB/MySQL concerns.nodejs-dev: support for developing and maintaining Node.js projects.pure-ruby: support for developing and maintaining pure Ruby projects.
dalhe skill listInstalls a skill globally in both environments:
- Codex: copies entire skill folder to
$CODEX_HOME/skills/<skill-name>. - Codex without
CODEX_HOME: uses~/.codex/skills/<skill-name>on Linux and%USERPROFILE%\.codex\skills\<skill-name>on Windows. - Claude Code: copies entire skill folder to
~/.claude/skills/<skill-name>on Linux and%USERPROFILE%\.claude\skills\<skill-name>on Windows. - If skill already exists in global destination, that skill folder is replaced with current template version.
dalhe skill install rails8Installs all skills shipped with this CLI globally for both Codex and Claude Code.
dalhe skill install-allRemoves skill from both global destinations.
dalhe skill uninstall rails8Removes all skills shipped with this CLI from both global destinations.
dalhe skill uninstall-allReinstalls all skills from this CLI that are already installed in at least one managed destination, syncing current template version to Codex and Claude Code.
dalhe skill update-allUpdates CLI globally from official repository and syncs OpenSpec:
dalhe updateBehavior:
- Runs
npm install -g git+https://github.com/alexishida/dalhe-cli.git. - Then runs
npm install -g @fission-ai/openspec@latest. - Uses
npm.cmdon Windows. - Uses
npmon Linux. - Requires
npmto be installed and permission to update global packages.
Any project change must keep this README.md updated whenever there is impact on behavior, usage, commands, flow, structure, requirements, or any relevant tool context.
npm install
npm test
node ./bin/dalhe.js --helpTo test full flow without installing globally:
node ./bin/dalhe.js initIn this case, make sure npm is installed and available in PATH, so CLI can install OpenSpec automatically when needed.
MIT
If you need to renew npm authentication before publishing:
npm logout
npm login
npm whoami
npm publish