hf-to-architecture

hf-to-architecture is a skill for Claude Code from hujianbest/harness-flow. It costs 78 tokens per session (768 once invoked), scanned A, original, MIT.

A guide for turning an approved software specification into a short design for modules, interfaces, data, and key flows. It also records important architecture decisions.

In plain words
What is it for?
Use it before splitting work into tasks to define affected modules, testable seams, core data, important paths, and links to architecture decisions.
Why use it?
It gives implementation a clear structure and prevents design choices from being left implicit or scattered across the codebase.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the harness-flow plugin — 14 skills shipped together

Good fit Use it before splitting work into tasks to define affected modules, testable seams, core data, important paths, and links to architecture decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hujianbest/harness-flow/hf-to-architecture
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 hujianbest/harness-flow --skill hf-to-architecture
Clone the repo
git clone --depth 1 https://github.com/hujianbest/harness-flow

Made for: Claude Code.

Or install harness-flow, the plugin that ships this one along with the rest of its 14 skills.

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 hf-to-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/hujianbest/harness-flow/hf-to-architecture/github.svg)](https://agentmods.dev/skills/hujianbest/harness-flow/hf-to-architecture)
Your own site
<a href="https://agentmods.dev/skills/hujianbest/harness-flow/hf-to-architecture"><img src="https://agentmods.dev/badge/skills/hujianbest/harness-flow/hf-to-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hf-to-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/hujianbest/harness-flow/hf-to-architecture"><img src="https://agentmods.dev/badge/skills/hujianbest/harness-flow/hf-to-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 768 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 23
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00078 $0.00768
Opus 5 $0.00039 $0.00384
Sonnet 5 $0.00016 $0.00154
Haiku 4.5 $0.00008 $0.00077

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

Security

Grade A, and why

hf-to-architecture 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 12d 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/hf-to-architecture/SKILL.md · 51 lines

What it actually says

hf-to-architecture

spec.md 已通过 hf-review(规格)之后、拆票之前,把「本片怎么建」钉成一页增量架构,供 hf-to-tickets 切垂直切片。

前置

  1. 冷读 spec.mdproduct/architecture.md(若有)、CONTEXT.md(若有)、相关 ADR,以及 product/ 假设台账。更新 progress.mdto-architecture
  2. 加载 hf-codebase-design。本阶段产出仍落在本特性目录。

流程

  1. 对齐产品架构:写明本片落在哪些产品模块/场景上;越界须显式标注并记 ADR/假设台账,必要时回写 product/architecture.md
  2. 定模块与缝:只写本特性新增或触及的模块(宜少)、各自职责、公共接口/缝;优先复用既有缝,新缝取最高可测点。用深模块词汇(小接口、大行为)。禁止复述产品架构全文。
  3. 关键流程与数据:画 1~3 条端到端路径;核心实体与关系几行即可,字段级细节留给票。
  4. 横切约定:仅写本片相对产品横切的偏离;目录与命名默认继承开发视图。
  5. ADR:难以逆转的决策写入 docs/adr/(或追加到 product/decisions.md),正文只链接过去。
  6. 落盘 features/<id>/architecture.md(≤80 行),含对齐声明与机器可读确认行占位。
  7. 送审:按 hf-review 走架构评审 → reviews/architecture-review.mdinteractive 等确认;auto 可在非降级评审后 auto-approved
  8. 更新 progress.md 中的当前阶段与下一步。

architecture.md 最小结构

# 架构 — <特性名>

- 日期:
- 对应规格: `spec.md`
- 用户确认:

## 对齐产品架构
<!-- 必须引用 product/architecture.md;说明落点模块/场景;越界显式写出 -->

## 本片模块与缝
## 核心数据
## 关键流程
## 横切偏离
## ADR 链接

红线

  • spec-review 通过记录,不得写入「已确认」架构并推进到 to-tickets 阶段
  • 存在 product/architecture.md 时,正文应含对齐声明(由技能与 hf-review 约束)
  • 不在本阶段实现代码或拆完整票单(拆票是 hf-to-tickets)
  • 不静默填补欠定:默认选择进 product/assumptions.md
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. 12d ago First seen · 51 lines · 78 tokens per session scan A dc01b2408559

Subscribe to this mod's changes

hf-to-architecture is a skill published in the GitHub repository hujianbest/harness-flow (53 stars, last pushed 12d ago), licensed MIT. It adds 78 tokens to every session and 768 once invoked, about $0.0004 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens