ha-coding-common

ha-coding-common is a skill for Claude Code from shiwenwen/hope-agent. It costs 39 tokens per session (833 once invoked), scanned A, original, MIT.

A general working method for coding tasks: inspect the repository first, preserve existing changes, follow local instructions, keep edits focused, and finish with evidence.

In plain words
What is it for?
Use it as a baseline when implementing, fixing, refactoring, or maintaining code, especially before choosing files to change and deciding how to verify the result.
Why use it?
It reduces accidental overwrites and unsupported design changes by grounding implementation decisions in the current code, tests, documentation, and project conventions.

Skill for Claude Code

Written for Claude Code: paths in frontmatter. Also seen: mentions subagents; mentions AGENTS.md.

Good fit Use it as a baseline when implementing, fixing, refactoring, or maintaining code, especially before choosing files to change and deciding how to verify the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shiwenwen/hope-agent/ha-coding-common
About the project

Hope Agent is a cross-device personal AI assistant that remembers context, uses tools, and continues working toward goals through dynamically organized workflows. Individuals use it from desktop, web, server, or messaging environments to manage projects, knowledge, designs, and long-running tasks. The catalogue add-ons extend its agent workflows and capabilities.

shiwenwen/hope-agent · 1,553 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shiwenwen/hope-agent --skill ha-coding-common
Clone the repo
git clone --depth 1 https://github.com/shiwenwen/hope-agent

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ha-coding-common

README.md
[![agentmods](https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-coding-common.svg)](https://agentmods.dev/skills/shiwenwen/hope-agent/ha-coding-common)
Your own site
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-coding-common"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-coding-common.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00833
Opus 5 $0.00019 $0.00417
Sonnet 5 $0.00008 $0.00167
Haiku 4.5 $0.00004 $0.00083

Measured 7d ago against content hash bf92be177859, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ha-coding-common scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ha-coding-common/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 95 lines · 39 tokens per session scan A bf92be177859

Subscribe to this mod's changes

ha-coding-common is a skill published in the GitHub repository shiwenwen/hope-agent (1,553 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 833 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

memory

Use this skill when Pioneer should proactively use durable memory or recalled context: decide whether memory can improve a turn, answer from remembered user/project facts, request memory tools, search/list/get stored memories, save durable preferences or project decisions, forget memories, audit or clean up memory, or…

pioneerdotai/pioneer · 64 tokens

subagents

Use this skill when Pioneer should delegate current-turn work to attached task-backed subagents, coordinate parallel child agents, wait for child results, review/revise/accept/cancel/detach attached work, or synthesize accepted child results into the parent answer.

pioneerdotai/pioneer · 54 tokens

tasks

Use this skill when Pioneer should create, inspect, update, reschedule, pause, resume, troubleshoot, or configure delivery for durable tasks, scheduled tasks, recurring tasks, interval tasks, cron jobs, background work, or existing task state.

pioneerdotai/pioneer · 50 tokens

browser

Headless web browsing: navigation, page inspection, interaction, data extraction, screenshots, PDFs, and browser session management.

pioneerdotai/pioneer · 26 tokens

technology-search

Search tech blogs, developer forums, and IT media (TechCrunch, Hacker News, 36氪, etc.) for software and hardware industry updates with heat ranking and EN↔CN translation. Use this skill only when the topic is clearly about programming, software, hardware, AI, or IT infrastructure.

netease-youdao/LobsterAI · 65 tokens

imap-smtp-email

Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.

netease-youdao/LobsterAI · 82 tokens