跳到正文
cccskills
免费在 GitHub 公开

humans-tech-debt

Autonomous tech-debt reduction workflow for the Humans repository. Use when the user wants Codex to improve high-value code quality issues in a dedicated git worktree branched from origin/main, commit each improvement separately, push progress, and continue until diminishing returns.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(3)

  • SKILL.md4.1 KB
  • agents/openai.yaml219 B
  • references/humans-tech-debt-rules.md12.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Humans Tech Debt

Run recurring autonomous tech-debt reduction passes in this repository.

Start Or Resume

  1. Confirm the repo root is the current Humans checkout.
  2. Resume an existing techdebt/* worktree and branch if the user is continuing prior work.
  3. Otherwise fetch origin/main, create a fresh branch techdebt/YYYY-MM-DD-codex-N, and attach a worktree at .claude/worktrees/techdebt-YYYY-MM-DD-codex-N.
  4. Keep scratch notes and temporary files under local/tech-debt-runs/<run-id>/.

Non-Negotiable Limits

  • Section-owned persistence and generated migrations are allowed when the task needs them. Follow section-migrations-in-maintenance; substantial architecture transitions get explicitly scoped tasks and dedicated PRs.
  • Preserve JSON serialization contracts unless the task authorizes changing them.
  • Removing or reshaping public members follows debt-sweep-standing-policy: dead members and pre-approved in-place shapes go; deleting files or controller actions still needs Peter.
  • Prefer structural simplification and consolidation over broad rewrites.
  • Treat Reforge or any score as a detector, not an objective. A score decrease alone never justifies a commit.
  • Do not add thin behavior to DTO/request/command/options/input records just to escape a parameter-bag or long-signature rule. Methods such as ApplyTo, ToDto, RenderWith, BuildSummary, SaveAsync, or service-delegating wrappers are acceptable only when they enforce real invariants, validation, state transitions, or domain policy that the type already owns.

Working Loop

  1. Read humans-tech-debt-rules.md.
  2. Pick one high-value debt item at a time.
  3. Before editing, write a one-sentence architecture thesis: what concept will be deleted, what responsibility will move to its rightful owner, or what duplication/coupling will disappear. If the thesis is "the score drops", abandon the candidate.
  4. Make the smallest coherent improvement that reduces divergence, duplication, misplaced responsibility, or durable public surface.
  5. Add or extend tests when practical.
  6. Run targeted verification, plus dotnet build Humans.slnx --disable-build-servers -v q -clp:ErrorsOnly.
  7. Run a score-blind second pass before commit. Review only the diff, the architecture thesis, and verification. Reject the change if it would not be worth keeping without metric movement.
  8. Run the full dotnet test Humans.slnx --no-build --disable-build-servers -v quiet -clp:ErrorsOnly gate before any push.
  9. Commit each accepted improvement separately and push the branch after verified progress.
  10. Continue until remaining ideas are low-value, speculative, blocked by forbidden areas, or only reducible through metric-gaming changes.

Metric Integrity

  • Use Reforge to find suspicious surfaces and compare checkpoints, not to decide that a weak patch is good.
  • Prefer changes that remove a real concept, collapse duplicated behavior, narrow cross-section dependencies, or move a rule to its owning section.
  • Reject refactors whose main effect is moving assignments, formatting strings, or service calls from one class into a request/command object without reducing coupling or clarifying ownership.
  • Do not keep working toward a percentage target after the remaining candidates fail the architecture thesis or score-blind review. Report that the safe score reduction is exhausted instead.

Parallel Work

  • Use subagents only for independent exploration or disjoint implementation slices.
  • Keep ownership separated to avoid conflicting edits.
  • Review and integrate each result before pushing.

Output

  • Leave the worktree clean when stopping.
  • Report the branch, worktree path, commits made, verification run, and any unresolved risks.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

check-pr

免费

Check an externally created PR for coding rule violations against memory/INDEX.md atoms and docs/architecture/code-review-rules.md.

中文简介正在准备中。当前显示原文说明。

nobodies-collective/Humans42026年10月22日 更新

Two-phase memory hygiene. Phase 1: scan external Claude Code memory (~/.claude/projects/<slug>/memory/) for durable rules to migrate into the repo and entries already duplicated by repo atoms. Phase 2: audit in-repo memory/, CLAUDE.md, docs/architecture/, and docs/sections/ for dead links, duplication, drift, and bloat.

中文简介正在准备中。当前显示原文说明。

nobodies-collective/Humans42026年10月22日 更新

Review, repair and steward the nightly Codex debt-sweep PR (branch codex/daily-debt/<date>). Judges every commit GOOD / REPAIR / REVERT, triages the bot review findings through /fix, lands one round-1 commit, files follow-up issues, then stewards the PR itself with a 3-round ceiling. Run by the 08:00 UTC cloud routine; also '/debt-review', '/debt-review 1789'.

中文简介正在准备中。当前显示原文说明。

nobodies-collective/Humans42026年10月22日 更新

Autonomous themed tech-debt cleanup. Reads docs/architecture/debt-ledger.yml, rotates to the least-recently-served debt theme, works it for a time budget (default 2h) or until drained, opens one PR, and asks judgment questions inline at the end. Use for daily debt burndown without Peter pointing at a target: grandfathered analyzer rules, architecture-test baselines, obsolete-field reads, cross-section stitching.

中文简介正在准备中。当前显示原文说明。

nobodies-collective/Humans42026年10月22日 更新

ef-regen

免费

Scrap and regenerate the in-flight EF migrations on the current branch as one consolidated migration. Use when migrations have accumulated mid-development cruft (added/removed columns, stacked add-column-to-existing-table fixes, hand-edited SQL that needs to come out, schema changes that should have been one migration but ended up as five), or when the branch has merged main and its migrations are now stuck mid-chain so `dotnet ef migrations remove` is unsafe. Triggers on phrases like 'regen the migrations', 'redo these migrations', 'scrap and regen migrations', 'consolidate the in-flight migrations', 'redo the migration stack', or any time an agent hits the mid-chain situation in `memory/architecture/migration-regen-after-rebase.md`.

中文简介正在准备中。当前显示原文说明。

nobodies-collective/Humans42026年10月22日 更新

Use when a sprint tracking issue (label `sprint`) on peterdrier/Humans needs working — routine-fired cloud runs, or any unattended session told to execute the sprint queue.

中文简介正在准备中。当前显示原文说明。

nobodies-collective/Humans42026年10月22日 更新

查看 nobodies-collective 的全部技能

报告此技能的问题