engineering

engineering is a skill for Claude Code, Codex from HsuanYuLee/polaris. It costs 156 tokens per session (2,254 once invoked), scanned A, original, MIT.

An implementation workflow for a coding task whose definition of success has already been agreed. It covers exploring, changing the code, measuring the result, and continuing through repeated work cycles.

In plain words
What is it for?
Use it to take over or continue an approved task, inspect its frozen requirements, record baseline measurements, replace inadequate checks with evidence, and track the work loop.
Why use it?
It separates building the change from deciding what success means. It also requires measurement commands to be recorded and makes unclear or unusable measurements visible instead of treating them as successful.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/hsuanyulee/polaris/engineering
Any agent
npx skills add HsuanYuLee/polaris --skill engineering
Clone the repo
git clone --depth 1 https://github.com/HsuanYuLee/polaris

Made for: Claude Code, Codex.

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 engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/hsuanyulee/polaris/engineering.svg)](https://agentmods.dev/skills/hsuanyulee/polaris/engineering)
Your own site
<a href="https://agentmods.dev/skills/hsuanyulee/polaris/engineering"><img src="https://agentmods.dev/badge/skills/hsuanyulee/polaris/engineering.svg" alt="Measured on agentmods" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,254 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00156 $0.02254
Opus 5 $0.00078 $0.01127
Sonnet 5 $0.00031 $0.00451
Haiku 4.5 $0.00016 $0.00225

Measured today against content hash 52938800bc68, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

engineering 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 today.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/frozen-assertion-fence.sh, scripts/record-measurement-change.sh, scripts/run-hardened-oracle.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/engineering/SKILL.md · 139 lines

How it starts

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

engineering — 兩個關卡之間

這裡沒有關卡。派工怎麼切、實作怎麼做、試幾次、走哪條路,都在這裡,沒有人在等你交表格。 正因為頭尾兩個關卡在,中間才可以很隨便。

接手

{issue}/index.md 就夠了——凍結塊是成功的定義,可以改的那部分是其餘一切。不需要去翻別的 artifact。

bash .claude/skills/engineering/scripts/frozen-assertion-fence.sh verify {issue}/index.md
bash .claude/skills/driving-work-to-done/scripts/spine-loop-state.sh show --state {issue}/.spine/loop-state.json
bash .claude/skills/engineering/scripts/record-measurement-change.sh show --ledger {issue}/.spine/measurement-ledger.json

量測命令

第一次寫的命令要登錄 baseline:

bash .claude/skills/engineering/scripts/record-measurement-change.sh record \
  --ledger {issue}/.spine/measurement-ledger.json \
  --assertion-id A-P1 --new-command '<cmd>' --baseline

量不到目標是常態,換就是了,但換要帶三元組:舊命令 hash、新命令 hash、以及這條新命令 在實作之前紅過的證據。

bash .claude/skills/engineering/scripts/record-measurement-change.sh record \
  --ledger {issue}/.spine/measurement-ledger.json \
  --assertion-id A-P1 --old-command '<舊>' --new-command '<新>' --red-evidence <path>

紅不了的命令什麼都沒量。一個因為工具不存在而失敗的紀錄不算紅過,它只證明環境壞了。

量不到要說出來,不能回綠。 負向的量測天生會把「我沒看到」讀成「它沒發生」——掃到 0 個 檔案、找不到那棵樹、正則對上 0 次,這些在輸出上跟「掃過了,沒問題」長得一模一樣。所以每條 量測前面要有一個 preflight:目標在不在、樣本數夠不夠。preflight 不過就用另一個 exit code 停下來(慣例是 2=量不到、1=量到了而且是紅的、0=綠),不要讓它走進判定。

自己剛寫的檢查第一次就綠是可疑訊號,通常代表規則太窄。落地之前先餵它一份已知壞掉的 輸入,確認它真的會紅。

在這裡發現問題,先自己解

發現的問題 怎麼辦
量測方法不對 原地改,帶紅過證據換命令,繼續
切分不對 重切,繼續
assertion 不對 不是這一站能解的——回 driving-work-to-done 讀該停哪一種

施工計劃那一類不存在:這條流程不分「明確施工」與「嘗試實作」。看得懂就做,看不懂就先探。

輪次

一輪沒產出 code 也是一輪。「試過 A,撞到 X,結論走 B,code 全丟」是正常結果——這一輪的產出 是知識,寫進可以改的那部分就是交付。不要為了讓這一輪看起來有東西,把失敗的探索包裝成交付。

bash .claude/skills/driving-work-to-done/scripts/spine-loop-state.sh record \
  --state {issue}/.spine/loop-state.json \
  --outcome converged|unconverged|zero_delta --note '<一句話>'

連續沒收斂到上限時流程升人類,不繼續自轉。上限是活區可調的參數,不是驗收條件。

三件要浮出來的事

方法自由,但有三件事 oracle 照不到,即使做了會變綠也要寫進可以改的那部分並講清楚為什麼,等人回話:

  • 新增依賴:把一個新套件拉進來。
  • 重造既有組件:手寫一個 repo 裡已經有的東西。
  • 擴大 security surface:多開一個對外介面、多讀一份憑證、多信任一個輸入。

Read the full file on GitHub · 139 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · +8 lines 52938800bc68
  2. 5d ago First seen · 131 lines · 156 tokens per session scan A 80e71f9e284c

Subscribe to this mod's changes

engineering is a skill published in the GitHub repository HsuanYuLee/polaris (5 stars, last pushed yesterday), licensed MIT. It adds 156 tokens to every session and 2,254 once invoked, about $0.0008 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-31.

Related

Other skills, from other repositories

research-topic-compiler

Product Research / 产品研究编译器:当用户要围绕一个产品问题做系统调研、竞品证据、替代方案、行业信号、 用户与市场研究、最佳实践提炼、产品候选池、本地 HTML 研究看板、可视化研究报告或跨职能 Dashboard 时使用。 当用户只有大白话、模糊方向、业务愿望或 Roadmap/PRD 前置材料想法,需要先转成清晰研究目标、研究问题和输出要求时也使用。 适合把研究转成 Research Project、学习报告、证据矩阵、PM 决策看板、候选池、模板、实践任务、业务判断、商业化输入或高门槛应用研究前置。适合“系统研究一个主题” “整理到…

PANGKAIFENG/ai-product-manager-skills · 319 tokens

prd-architect

PRD 架构师 / 需求文档起草:当用户要把一个产品想法、需求草稿、脑暴结果或功能说明整理成 PRD 时使用。 可用中文唤起:“帮我写 PRD”“帮我选 PRD 模板”“把这个需求整理成 PRD”“判断该用轻量 PRD 还是标准 PRD” “补一张可编辑 Draw.io 核心流程图”“PRD 里加架构图”。 会在 PRD-lite、PRD-standard、PRD-ai-native 中选择一个模板资产按需加载,并在需要时加载 mockup handoff、 Draw.io 图示或开发 handoff 附录;页面型 PRD 默认联动生成项目 UI 对齐的 HTML、关键截图和正文证据。 不用于直接编码、单纯画…

PANGKAIFENG/ai-product-manager-skills · 196 tokens

brainstorming

设计脑暴 / 实现前方案校准:当用户想把已基本成立的想法、功能方向或产品问题,在写 PRD、画 mockup 或进入开发计划前,先比较方案、确认取舍、对齐 UI/视觉约束,并收敛成可执行设计 spec 时使用。 可用中文唤起:“先脑暴一下方案”“先不要写 PRD,帮我设计几种路径”“参考 brainstorming 把这个需求变成设计 spec” “实现前先讨论设计”。问题还没定义清楚时先用 ai-collaboration-calibration;已有方案要压力测试时用 grill-me; 直接写 PRD 时用 prd-architect;grill-me 返回精确设计 gap 时,本 Skill 只输出 Design…

PANGKAIFENG/ai-product-manager-skills · 171 tokens

complex-exploration

复杂探索资产化 / Complex Exploration:当用户面对复杂、不确定、多轮迭代的产品策略、Roadmap、商业化定价、竞品定位、复杂 PRD 前置探索、项目复盘或方法论沉淀任务时使用。它先判断任务类型,暴露隐含假设,重构真正问题,规划探索路径和中间产物,并在结束后沉淀认知、结构、方法论、工具和影响力资产。不用于简单润色、翻译、摘要、明确执行任务;问题只需早期认知校准时优先用 ai-collaboration-calibration,已有方案要压力测试时用 grill-me,系统专题研究用 research-topic-compiler。.

PANGKAIFENG/ai-product-manager-skills · 160 tokens

decision-research

决策调研 / Decision-Driven Research:当用户面对一个具体决策需要找信息时使用——「有没有现成方案」 「怎么接入 X 平台」「这个技术可行吗」「业界怎么做 Y」「选 A 还是 B」「桌面端应该怎么定位」 「高级版和基础版怎么拉开差异」「这个产品方向对不对」。 核心行为:先框定研究层级和问题类型,再锚定决策问题,枚举竞争假设,主动找反对证据, 用排除逻辑给出有立场的结论。支持技术选型、产品策略、商业判断、竞品定位等所有需要做决定的调研。 可用中文唤起:「帮我调研」「有没有现成方案」「这个怎么接」「技术上可行吗」「帮我选一个」 「这个产品方向对不对」「我们应该怎么定位」「行业怎么做」。 与…

PANGKAIFENG/ai-product-manager-skills · 335 tokens

prd-review

PRD 评审 / 需求评审:当用户已有 PRD 初稿、handoff、需求文档或产品方案,需要从 PM、研发、测试视角找缺口、 冲突、不可实现点和不可测试点时使用。可用中文唤起:“帮我审 PRD”“从研发和测试视角挑问题” “这个需求文档能不能交付开发”“帮我给 PRD 出修改草案”“检查 PRD 图示是否缺失或不可编辑”。 不用于凭空生成 PRD 初稿、直接写代码,或对 PRD 背后的成熟方案做一问一答压力测试;方案压测用 grill-me。.

PANGKAIFENG/ai-product-manager-skills · 151 tokens