Scaffolds a standalone TypeScript project exporting plugins for hiero-cli, with guided interviews for project setup and plugin configuration.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scaffold a standalone TypeScript project that exports one or more plugins for hiero-cli, registered via hcli plugin-management add -p '<manifest-path>'.
Before doing anything else, read the full contents of .claude/skills/create-community-plugin/references/RULES.md. It contains project structure rules, config file templates, naming conventions, and code generation standards. Apply them silently — do not narrate rule application. Only surface a rule if the user's requirements conflict with it.
Check whether the target directory already contains a project (has a package.json):
If the target directory does not exist yet, it is always fresh mode.
Ask questions one at a time. Each question follows naturally from the previous answer.
Required information:
~/IdeaProjects/{project-name}; confirm with the user@hiero-ledger/hiero-cli@latest).tgz file — ask for the absolute path to the fileAsk questions one at a time. The goal is to gather enough information to generate every plugin file without ambiguity.
Minimum required before Phase 3:
requireConfirmation)Interview rules:
BaseTransactionCommand). Ask about transaction lifecycle only when relevant.Command). Do not ask about transaction lifecycle.requireConfirmation only for commands described as deleting or clearing resources.Before generating anything, present a summary:
Project: {name}
Directory: {absolute-path}
hiero-cli: {npm version | file:/absolute/path.tgz}
Mode: {fresh | expansion}
Plugin: {plugin-name} ({displayName})
Description: {description}
Commands:
{command-name} — {summary}
Handler: Pattern A (simple) | Pattern B (transaction)
Options: {list}
Output fields: {list}
Hooks: {list or none}
Confirmation: {yes/no}
State: {yes — fields: ... | no}
Custom hooks: {yes — names: ... | no}
⚠️ Rule conflicts: {list or "none"}
Ask: "Does this look correct? Anything to change before I generate?"
Wait for explicit confirmation before proceeding.
Generate files in this order:
git init inside it; create .gitignorepackage.json — use the template from RULES.md §12, substituting {project-name}, {description}, and the hiero-cli dependency value; cross-check all devDependencies versions against hiero-ledger/hiero-cli package.jsontsconfig.base.json, tsconfig.json, tsconfig.test.json — copy verbatim from hiero-ledger/hiero-cli (see RULES.md §12)jest.config.js, jest.unit.config.js — copy verbatim from hiero-ledger/hiero-clieslint.config.js — copy verbatim from hiero-ledger/hiero-cliREADME.md — project name, one-line description, and the ready-to-run hcli plugin-management add commandGenerate in this order:
src/plugins/{name}/manifest.tssrc/plugins/{name}/commands/{command}/input.tssrc/plugins/{name}/commands/{command}/output.tssrc/plugins/{name}/commands/{command}/handler.tssrc/plugins/{name}/commands/{command}/types.ts (only if Pattern B with complex intermediate types)src/plugins/{name}/commands/{command}/index.tssrc/plugins/{name}/schema.ts (only if the plugin persists state)src/plugins/{name}/index.tssrc/plugins/{name}/__tests__/unit/helpers/mocks.tssrc/plugins/{name}/__tests__/unit/helpers/fixtures.tssrc/plugins/{name}/__tests__/unit/{command}.test.tsApply all rules from RULES.md silently. If a user requirement conflicts with a rule, flag it in the Phase 3 summary under "⚠️ Rule conflicts", propose a compliant alternative, and proceed with the compliant version unless the user explicitly overrides.
Run sequentially from inside the project directory:
npm install
npm run build
If either command fails:
npm run build (no need to re-run npm install unless a new dependency is required)Do not declare success until both commands complete cleanly.
Output a short summary:
✅ Plugin project scaffolded.
Project: {absolute-path}
Plugin: {plugin-name}
Files created:
{list of all created files}
Register with hiero-cli:
hcli plugin-management add -p '{absolute-path}/dist/plugins/{plugin-name}/manifest.js'
⚠️ The manifest path above is machine-local. If you move this project, re-run the add command with the new path.
[If local .tgz: ⚠️ package.json references a local .tgz — update the path if that file moves.]
Next steps:
1. Implement handler logic in each handler.ts (marked with // IMPLEMENT)
2. Run tests: npm test
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
/hiero-cli:create-community-pluginfrom hiero-cli
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /hiero-cli:create-community-plugin still runs it.
npx claudepluginhub hedera-dev/hedera-skills --plugin hiero-cliOther plugins' skills for the same job