/ha-coding-common
Hope-native baseline for implementing, fixing, refactoring, and maintaining code: inspect the repository first, protect user changes, keep scope narrow, and finish with direct evidence.
$ npx -y skills add shiwenwen/hope-agent --skill ha-coding-common --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/ha-coding-common
Context preview
The summary Claude sees to decide when to auto-load this skill.
Hope-native baseline for implementing, fixing, refactoring, and maintaining code: inspect the repository first, protect user changes, keep scope narrow, and finish with direct evidence.
SKILL.md
ha-coding-common.SKILL.mdname: ha-coding-common
description: "Hope-native baseline for implementing, fixing, refactoring, and maintaining code: inspect the repository first, protect user changes, keep scope narrow, and finish with direct evidence."
paths: ["*.rs", "*.ts", "*.tsx", "*.js", "*.jsx", "*.py", "*.go", "*.java", "*.kt", "*.swift", "*.c", "*.cpp", "*.h", "*.rb", "*.php", "*.sh"]
Hope Coding Common
Use this as the default discipline for coding work. Load a narrower `ha-*` coding skill when planning, debugging, testing, review, multi-agent execution, verification, or Workflow authoring is the real center of the task.
Precedence
1. Follow the user's current request. 2. Read and follow the nearest `AGENTS.md` and repository instructions. 3. Preserve existing architecture and local conventions unless the task requires changing them. 4. Treat this skill as methodology only. It never grants permissions, changes a mode, or overrides a runtime safety gate.
Start From Evidence
- Inspect the worktree, relevant files, nearby tests, and existing docs before
choosing an implementation.
- Search with `rg` / `rg --files` when available; read surrounding code rather
than editing from a single match.
- Assume uncommitted changes may belong to the user. Never revert, overwrite, or
reformat unrelated work.
- Prefer existing helpers, error types, state models, and ownership boundaries.
Size The Work
Small and clear
Act directly when the behavior, owning file, and verification path are obvious. Do not create a formal plan, new abstraction, or subagent ceremony merely because the task is coding.
Multi-step or uncertain
Use `ha-coding-plan` when the change spans ownership boundaries, has ordering constraints, carries migration risk, or needs explicit completion criteria. In normal execution mode, continue implementing after the plan when the next action is clear. Plan Mode remains read-only.
Specialized work
- Bug, regression, crash, or failing test: `ha-debug`.
- Test design or regression coverage: `ha-test-strategy`.
- Review request: `ha-code-review`.
- Independent fan-out with meaningful parallel benefit: `ha-multi-agent-coding`.
- Proof of completion: `ha-verify`.
- Durable `workflow.js`: `ha-workflow-script`.
Load the smallest useful set. Do not activate every coding skill up front.
Control-Plane Boundaries
- Goal defines the durable outcome and completion criteria.
- Plan describes an implementation approach; it does not create a Goal.
- Task exposes current progress and must reflect actual state.
- Workflow executes one durable, observable orchestration run.
- Loop decides when another turn should be triggered.
- Worktree isolates writes; it is not a planning or completion signal.
Do not silently enable or complete any control plane from skill instructions.
Change Discipline
- Keep edits scoped to the requested behavior and owning subsystem.
- Add an abstraction only when it removes real complexity or matches a local
pattern.
- Use structured parsers and APIs for structured data.
- Avoid unrelated cleanup, metadata churn, generated files, and speculative
compatibility layers.
- For multi-step work, keep user-visible tasks truthful and only one task in
progress unless the runtime is genuinely executing independent work.
- Ask only when the next step is unsafe, irreversible, or cannot be inferred
from available evidence.
Finish The Work
1. Inspect the final diff and current worktree state. 2. Use `ha-verify` to map requirements to the smallest sufficient evidence. 3. Report what changed, what was verified, and any real residual risk. 4. Do not claim completion from intent, a passing unrelated command, or child Agent completion alone.
Smoke Prompts
- "Implement this small feature and keep the diff minimal."
- "Finish this refactor without touching unrelated user changes."
- "Continue the current coding task through targeted verification."
Read more
name: ha-coding-common description: "Hope-native baseline for implementing, fixing, refactoring, and maintaining code: inspect the repository first, protect user changes, keep scope narrow, and finish with direct evidence." paths: ["*.rs", "*.ts", "*.tsx", "*.js", "*.jsx", "*.py", "*.go", "*.java", "*.kt", "*.swift", "*.c", "*.cpp", "*.h", "*.rb", "*.php", "*.sh"]
Hope Coding Common
Use this as the default discipline for coding work. Load a narrower `ha-*` coding skill when planning, debugging, testing, review, multi-agent execution, verification, or Workflow authoring is the real center of the task.
Precedence
1. Follow the user's current request. 2. Read and follow the nearest `AGENTS.md` and repository instructions. 3. Preserve existing architecture and local conventions unless the task requires changing them. 4. Treat this skill as methodology only. It never grants permissions, changes a mode, or overrides a runtime safety gate.
Start From Evidence
- Inspect the worktree, relevant files, nearby tests, and existing docs before
choosing an implementation.
- Search with `rg` / `rg --files` when available; read surrounding code rather
than editing from a single match.
- Assume uncommitted changes may belong to the user. Never revert, overwrite, or
reformat unrelated work.
- Prefer existing helpers, error types, state models, and ownership boundaries.
Size The Work
Small and clear
Act directly when the behavior, owning file, and verification path are obvious. Do not create a formal plan, new abstraction, or subagent ceremony merely because the task is coding.
Multi-step or uncertain
Use `ha-coding-plan` when the change spans ownership boundaries, has ordering constraints, carries migration risk, or needs explicit completion criteria. In normal execution mode, continue implementing after the plan when the next action is clear. Plan Mode remains read-only.
Specialized work
- Bug, regression, crash, or failing test: `ha-debug`.
- Test design or regression coverage: `ha-test-strategy`.
- Review request: `ha-code-review`.
- Independent fan-out with meaningful parallel benefit: `ha-multi-agent-coding`.
- Proof of completion: `ha-verify`.
- Durable `workflow.js`: `ha-workflow-script`.
Load the smallest useful set. Do not activate every coding skill up front.
Control-Plane Boundaries
- Goal defines the durable outcome and completion criteria.
- Plan describes an implementation approach; it does not create a Goal.
- Task exposes current progress and must reflect actual state.
- Workflow executes one durable, observable orchestration run.
- Loop decides when another turn should be triggered.
- Worktree isolates writes; it is not a planning or completion signal.
Do not silently enable or complete any control plane from skill instructions.
Change Discipline
- Keep edits scoped to the requested behavior and owning subsystem.
- Add an abstraction only when it removes real complexity or matches a local
pattern.
- Use structured parsers and APIs for structured data.
- Avoid unrelated cleanup, metadata churn, generated files, and speculative
compatibility layers.
- For multi-step work, keep user-visible tasks truthful and only one task in
progress unless the runtime is genuinely executing independent work.
- Ask only when the next step is unsafe, irreversible, or cannot be inferred
from available evidence.
Finish The Work
1. Inspect the final diff and current worktree state. 2. Use `ha-verify` to map requirements to the smallest sufficient evidence. 3. Report what changed, what was verified, and any real residual risk. 4. Do not claim completion from intent, a passing unrelated command, or child Agent completion alone.
Smoke Prompts
- "Implement this small feature and keep the diff minimal."
- "Finish this refactor without touching unrelated user changes."
- "Continue the current coding task through targeted verification."
🦭 会记忆、能持续推进目标、会动态编排多 Agent 的跨端桌面 AI 助手,也可服务化常驻 NAS / 云端 | A cross-device desktop AI agent with memory, autonomous goals, dynamic workflows, and headless deployment
Repo: shiwenwen/hope-agent
Other skills on hope-agent.
- /email-draft
Use when the user asks to draft, polish, translate, or reply to an email. Produces a clean draft with subject line, greeting, body, and sign-off, plus a pre-send self-check.
Open skill - /feishu
Use when the user mentions 飞书 / Feishu / Lark workspace operations: docx (云文档) read/write, bitable (多维表格) records / views / dashboards, drive (云盘) upload/download, wiki (知识库) link resolution, approval (审批) instance create/cancel/query, calendar (日历) event create/list/update +
Open skill - /ha-browser
Hope Agent browser automation — the standard `status → tabs → snapshot → act` loop, stale-ref recovery rules, and what to do when login / 2FA / captcha / camera-prompt / dialog blocks progress. Load this skill whenever you reach for the `browser` tool. Trigger on: user asks the
Open skill - /ha-code-review
Hope-native review of uncommitted, staged, commit, branch, or PR changes: discover concrete regressions, independently verify candidates, and report actionable findings first without speculative noise.
Open skill - /ha-coding-plan
Hope-native implementation planning for non-trivial code changes: ground the plan in repository evidence, order dependencies, name critical files and risks, define verification, then continue execution when allowed.
Open skill - /ha-data-analytics
Hope-native local-first data analysis and Artifact reporting. Use for CSV/XLSX analysis, KPI readouts, metric diagnosis, product/business analysis, data-quality review, dashboards, charts, analytical reports, 数据分析, 指标诊断, 数据质量, 分析报告, or when the user wants a shareable offline
Open skill

