aver005/pooprusteek/pooprusteek-add-slash-command
Claude Code and agent skill by aver005/pooprusteek
- community
Checking that the SKILL.md file is still in the repository.
Recipe for adding a new in-TUI slash command (/foo) to PoopRusteek — the Command trait, one-file-per-command layout, registration, and CommandResult routing. Use when adding or editing a slash command; not for agent tools (see pooprusteek-add-tool).
Install
npx vskill@latest install aver005/pooprusteek/pooprusteek-add-slash-commandSKILL.md
The same SKILL.md was published earlier as aver005/pooprusteek/pooprusteek-add-slash-command.
Add a PoopRusteek Slash Command
Source of truth: src/commands/mod.rs + src/commands/defs/. Reference: .memories/reference/COMMANDS.md.
Copy assets/command-template.rs as a starting skeleton.
Rules
- One file per command in
src/commands/defs/, plus one registration line in
register_defaults() in src/commands/mod.rs.
name()must return the name WITHOUT a leading/. Dispatch (parse_input) strips the
/ before lookup, and the registry key is the bare name. A registry test (no_registered_command_name_starts_with_slash) fails the build otherwise. (/goal historically had this bug — harmless only because the extra slash was tolerated; don't repeat it.)
- A command never mutates `App` directly.
executegets&mut AppState+&Configand returns
a CommandResult; app-level effects (spawning turns, touching the provider, the semantic service, etc.) are performed by the interpreter apply_command_result in src/app/keys/dispatch.rs, reached via CommandResult/AppEvent. Anything richer than editing AppState/Config needs a CommandResult variant, not a reach-in.
The Command trait (commands/mod.rs)
CommandResult variants (non-exhaustive — see commands/mod.rs)
Handled · Error(String) · LoadSession(String) · ResetProvider · Quit · TtlUpdate(u64) · ReloadMcp · ShowTools · ShowSkills · ToggleSkill(String,bool) · Jobs(JobCommandAction) · OpenWhitelist · OpenConfirm(ConfirmAction) · Sidechat(String) · NewChat · OpenChats · SpawnAgent(String) · OpenAgents · Serve(ServeAction) · Rag(RagAction) · Update(UpdateAction) · … Add a new variant here when your command needs an app-level effect, and handle it in apply_command_result (app/keys/dispatch.rs).
Handy shared helpers in commands/mod.rs: with_args(args, usage, body) (canonical Usage: error when the arg is empty) and save_config_then(&cfg, then) (persist config, run then only on a successful write).
Minimal end-to-end example (src/commands/defs/retry.rs)
Register it (in register_defaults, commands/mod.rs):
And declare the module (top of commands/defs/mod.rs). /help is generated from the live registry, so nothing else needs touching. Add the module to defs/ and you're done.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/contributor/pooprusteek-add-slash-command/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aver005/pooprusteek/pooprusteek-add-slash-command)