跳到正文
cccskills
免费在 GitHub 公开

improve-codebase-architecture

Use when reviewing PlainTab architecture, looking for refactoring opportunities, reducing coupling, improving testability, or making modules easier for agents to understand without redesigning stable behavior.

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

查看安装方法

包含的文件(2)

  • SKILL.md2.5 KB
  • agents/openai.yaml259 B

SKILL.md(原文)

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

Improve PlainTab Architecture

Use this skill for architecture review, not routine feature work. Adapted for PlainTab from Matt Pocock's improve-codebase-architecture skill.

Scope Guard

PlainTab values minimal, stable changes. Do not propose a rewrite. Do not change code during the review unless the user asks for implementation.

Respect:

  • .claude/rules/00-core.md
  • The relevant module rule under .claude/rules/
  • Startup invariants in index.html
  • Storage ownership in js/wallpaper/data.js
  • The no-build-tools/no-frameworks constraint

Vocabulary

  • Module: a file or cohesive runtime area with an interface and implementation.
  • Interface: everything callers must know to use the module, including ordering, config shape, errors, and side effects.
  • Implementation: the code hidden behind that interface.
  • Depth: how much behavior is hidden behind a small interface.
  • Seam: a place behavior can change without editing every caller.
  • Locality: how concentrated the knowledge, bug surface, and change surface are.

Review Process

  1. Pick one area, such as wallpaper sources, settings panel, storage migration, command palette, search, i18n, or startup.
  2. Read the module rule and the current files.
  3. Follow callers enough to understand who depends on the interface.
  4. Look for friction:
    • Understanding one concept requires bouncing through many files.
    • Callers must know too much ordering or storage detail.
    • A module is mostly pass-through and does not buy locality.
    • Two similar flows duplicate subtle behavior.
    • The real behavior is hard to verify through an existing interface.
  5. Apply the deletion test: if deleting the module only moves the same complexity to callers, it is shallow; if deleting it spreads hidden complexity across callers, it is earning its keep.

Output

Present 2 to 5 candidates. For each:

  • Files involved.
  • Current friction.
  • Proposed direction.
  • Benefit in terms of locality, depth, and testability.
  • Risk to startup, storage compatibility, wallpaper visibility, or UI quietness.
  • Recommendation strength: Strong, Worth exploring, or Speculative.

End with the one candidate to tackle first and the smallest safe first step. If the review contradicts an existing project rule, call that out directly instead of burying it.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Use when preparing a PlainTab release or bumping the PlainTab version, triggered by phrases like "更新版本", "bump version", "upgrade to vX.Y.Z", "发布新版本". Updates manifest.json, runtime UI/version constants, localized changelogs, store listings, release notes, validation notes, and current project docs.

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

kaininx/PlainTab952026年5月27日 更新

Claude adapter for bumping the PlainTab version. Use when the user asks "更新版本", "bump version", "upgrade to vX.Y.Z", "发布新版本", or asks to prepare a PlainTab release.

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

kaininx/PlainTab952026年5月27日 更新

Claude adapter for preparing and creating PlainTab git commits with scoped, detailed Conventional Commit messages. Use when the user asks to commit, 提交, stage changes, or use precise Conventional Commit / Google-style commit messages.

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

kaininx/PlainTab952026年5月27日 更新

Prepare and create PlainTab git commits with scoped Conventional Commit subjects and detailed commit bodies. Use when the user asks to commit, 提交, create a git commit, stage changes, or asks for precise Conventional Commits / Google-style commit messages; especially when the worktree may contain unrelated user changes.

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

kaininx/PlainTab952026年5月27日 更新

diagnose

免费

Claude adapter for diagnosing PlainTab bugs, broken flows, startup issues, storage or wallpaper regressions, and performance regressions.

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

kaininx/PlainTab952026年5月27日 更新

diagnose

免费

Use when diagnosing PlainTab bugs, broken UI behavior, failing extension/web-mode flows, storage or wallpaper regressions, startup issues, or performance regressions.

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

kaininx/PlainTab952026年5月27日 更新

查看 kaininx 的全部技能

报告此技能的问题