coding-cli
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Required · Vendor-specific
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Shell exec
- Network behavior
- External requests
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: coding-cli
description: When the Manager assigns you a task with a "## Coding CLI Mode" section in spec.md, you do not w…
category: ai
runtime: no special runtime
---
# coding-cli output preview
## PART A: Task fit
- Use case: When the Manager assigns you a task with a "## Coding CLI Mode" section in spec.md, you do not write the code yourself. Instead, you: Check spec.md for the task. If it contains ## Coding CLI Mode, use this skill for all code changes. requires Vendor-specific API key. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “When to Use This Skill / Step-by-Step Workflow / 1. Prepare the Workspace” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “When the Manager assigns you a task with a "## Coding CLI Mode" section in spec.md, you do not write the code yourself. Instead, you: Check spec.md for the task. If it contains ## Coding CLI Mode, use this skill for all code changes. requires Vendor-specific API key. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “When to Use This Skill / Step-by-Step Workflow / 1. Prepare the Workspace” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files, run shell commands; may access external network resources; requires Vendor-specific API keys.
## Running Rules
- read files, write/modify files, run shell commands; may access external network resources; requires Vendor-specific API keys.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/path`, `/root`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files, run shell commands.
Start with a small task and check whether the result follows “When to Use This Skill / Step-by-Step Workflow / 1. Prepare the Workspace”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: coding-cli
description: When the Manager assigns you a task with a "## Coding CLI Mode" section in spec.md, you do not w…
category: ai
source: tomevault-io/skills-registry
---
# coding-cli
## When to use
- When the Manager assigns you a task with a "## Coding CLI Mode" section in spec.md, you do not write the code yourself…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “When to Use This Skill / Step-by-Step Workflow / 1. Prepare the Workspace” and keep inference separate from source facts.
- read files, write/modify files, run shell commands; may access external network resources; requires Vendor-specific API keys.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "coding-cli" {
input -> user goal + target files + boundaries + acceptance criteria
context -> When to Use This Skill / Step-by-Step Workflow / 1. Prepare the Workspace
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files, run shell commands | may access external network resources
guardrails -> requires Vendor-specific API keys + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Coding CLI Delegation
When the Manager assigns you a task with a "## Coding CLI Mode" section in spec.md, you do not write the code yourself. Instead, you:
- Understand the task deeply
- Prepare the workspace
- Generate a precise coding prompt
- Delegate execution to the Manager's CLI tool
- Review the result
When to Use This Skill
Check spec.md for the task. If it contains ## Coding CLI Mode, use this skill for all code changes.
Step-by-Step Workflow
1. Prepare the Workspace
Set up the workspace directory under the shared filesystem:
workspace="/root/hiclaw-fs/shared/tasks/{task-id}/workspace"
mkdir -p "$workspace"
# Clone a repo (example)
git clone <repo-url> "$workspace"
# Or copy existing code
cp -r /path/to/source "$workspace/"
Constraint: The workspace path must be under /root/hiclaw-fs/. The Manager accesses the same path via MinIO mirror.
2. Push Workspace to MinIO
Before sending the coding-request, push all workspace files so the Manager can access them:
mc mirror "/root/hiclaw-fs/shared/tasks/{task-id}/workspace/" \
${HICLAW_STORAGE_PREFIX}/shared/tasks/{task-id}/workspace/
2b. Check for Processing Marker
Before modifying the workspace or sending a coding-request, check if the task directory is being processed:
# Sync latest state from MinIO
mc mirror "${HICLAW_STORAGE_PREFIX}/shared/tasks/{task-id}/" \
"/root/hiclaw-fs/shared/tasks/{task-id}/"
# Check for processing marker
if [ -f "/root/hiclaw-fs/shared/tasks/{task-id}/.processing" ]; then
echo "Task directory is being processed. Wait for manager to complete."
# Do NOT send coding-request yet; wait and retry
fi
If a .processing marker exists, wait for the Manager to complete their operation before sending your request.
3. Generate a High-Quality Prompt
A good prompt includes:
- Target files: exact paths and relevant line numbers
- Specific changes: describe what to change, not just why
- Context: existing code structure, dependencies, interfaces
- Acceptance criteria: how to verify the change is correct
- Constraints: languages, frameworks, style conventions, things NOT to change
Example of a good prompt:
In the file `src/server/handlers/auth.go`, implement the `RefreshToken` function (currently a stub at line 142).
Requirements:
- Validate the incoming refresh_token from the request body (field name: "refresh_token")
- Look up the token in the database using `db.FindRefreshToken(ctx, token)` (already imported)
- If valid, generate a new access token with `auth.GenerateAccessToken(userID)` and return it as JSON: {"access_token": "<token>", "expires_in": 3600}
- If invalid or expired, return HTTP 401 with body: {"error": "invalid_refresh_token"}
- Follow the existing error handling pattern used in `LoginHandler` (line 89)
Do not change any other files.
Signs of a weak prompt (avoid):
- "Fix the auth system" (too vague)
- "Improve performance" (no specific target)
- "Add tests" (no specification of what to test or where)
4. Send coding-request: to Manager
Send in your Worker Room (or Project Room, wherever the task was assigned):
@manager:DOMAIN task-{task-id} coding-request:
workspace: /root/hiclaw-fs/shared/tasks/{task-id}/workspace
---PROMPT---
{your detailed coding prompt here}
---END---
Note: workspace can be any subdirectory under /root/hiclaw-fs/, e.g. a cloned git repo:
workspace: /root/hiclaw-fs/shared/tasks/{task-id}/workspace/my-repo
5. Wait for Manager's Response
The Manager will run the CLI tool and respond with either:
Success — coding-result:
@{your-name}:DOMAIN task-{task-id} coding-result:
CLI 工具已完成编码。请同步工作目录并 review 变更...
Failure — coding-failed:
@{your-name}:DOMAIN task-{task-id} coding-failed:
CLI 工具执行失败...你生成的提示词已保存于:/root/hiclaw-fs/shared/tasks/{task-id}/coding-prompts/
6a. On coding-result:
# Sync changes from MinIO
hiclaw-sync
# Review what changed
cd /root/hiclaw-fs/shared/tasks/{task-id}/workspace
git diff # if it's a git repo
# or: check coding-cli-logs/ for CLI output
Review the changes:
- Verify they match the task requirements
- Check for obvious errors or unintended modifications
- Run tests if applicable
Report to Manager:
@manager:DOMAIN task-{task-id} completed:
Changes reviewed and verified. {Brief summary of what was implemented.}
6b. On coding-failed:
Implement the coding task yourself using your normal approach. When done, report:
@manager:DOMAIN task-{task-id} completed:
Implemented manually (CLI delegation failed). {Brief summary.}
Multiple Rounds
If one CLI delegation doesn't fully complete the task (e.g., the first run fixed the bug but tests still fail), you can send another coding-request: with a follow-up prompt. Sync the workspace first to get the latest state before generating the next prompt.
Tips for Better Prompts
- Be surgical: "change line 47 from X to Y" beats "fix the login function"
- Provide imports: if the change requires new imports, specify them
- Show the pattern: reference existing code in the same file as the style guide
- Limit scope: tell the CLI "only modify file X, do not change tests or other files"
- Verify command: include how to check correctness, e.g. "run
go test ./...to verify"
Source: agentscope-ai/HiClaw — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review