AGENT SKILL

module-check

Checks a written plan, or a diff before commit, against every critical rule of the modules it touches; reports conflicts quoting the plan and at most five reminders. Read-only.

License 许可
MIT
最近更新
2026-10-21
Stars
★ 1
Forks
0

01 前言 Front Matter

name
module-check
description
Checks a written plan, or a diff before commit, against every critical rule of the modules it touches; reports conflicts quoting the plan and at most five reminders. Read-only.

02 资源文件 1

03 SKILL.md 正文

module-check

At discovery a task's words rarely name the rule it will break; a plan's words do (set(…, {merge: true}) against "nested fields: dot-paths, never merge"). Check the plan.

When to use

  • A plan, a design or a report that names the approach is written and not carried out yet.
  • A change is ready to commit: the diff since its base.

When not to use

  • No plan yet: module-discover maps the task first.
  • The docs must change: module-sync.

Scope

Read-only: it writes only a temporary file outside the repository. It never edits the plan, the code or a doc, and never commits.

If segmently-modules is not found, tell the user how to install it — the segmently-modules plugin for Claude Code, uv tool install git+https://github.com/segmently-ai/segmently-modules.git, or pipx install git+https://github.com/segmently-ai/segmently-modules.git — and stop until it runs.

Steps

  1. The modules: every module the plan or its discovery report names, and the files the plan edits (or the change's files).
  2. The rules, whole: segmently-modules rules <module>… --files <path>… > <temp file> (a change: --from-diff <base>..HEAD, <base> being where the work branched off, git merge-base <target> HEAD); read the file to the end.
  3. Check with references/prompt.md: in a fresh agent with no tools when the agent can start one (it sees only the plan and the rules), else yourself.

Report

  • Conflicts: each — the rule with its doc:line, the plan's words quoted, the fix; or none.
  • Reminders: at most five — the rule with its doc:line, why it bears on this plan.
  • Not checked: the modules with no rules (module-sync writes their index) and the files outside modules; a module whose rules run past about 30,000 characters is checked but named here too: a section that took in feature text buries its rules (module-sync keeps it to rules).

Exit codes

0 ok · 2 from rules = a usage error (an unknown module, no module and no file): read stderr, fix the command.

Gates

No gates — read-only: it reports and stops; the user decides what to change.

04 同仓库更多 Skills

segmently-ai
segmently-ai/segmently-modules

${skill}

${description}

★ 1
segmently-ai
segmently-ai/segmently-modules

designer

Designs user interface work and reviews it against the designer docs of the modules it touches. Prototype — a brief and standalone HTML mocks from the team's tokens, then it waits for approval before any code; rework-audit — an existing flow's dead ends and what must survive, before a redesign; review — screenshots of the running app checked against every UX invariant and the flow patterns, always written with a PASS or BLOCKED verdict. Use for any task that adds or changes screens, dialogs, layouts or styling, or when the user asks for a mockup, prototype, design, UI or UX review.

★ 1
segmently-ai
segmently-ai/segmently-modules

qa-acceptance

Writes the acceptance criteria of one task before any code is written. Finds the touched modules with discover, reads their qa and qa_acceptance docs, flags problems in the task itself, splits it into sub-tasks, applies equivalence partitioning, boundary values, decision tables or state transitions, and writes prerequisites PRE-NNN and criteria AC-NNN in Given, When, Then form, reusing existing baseline criteria by id. Shows them in the conversation; a file only at a path the user names. Use when the user asks for acceptance criteria, a test plan or a definition of done for a task.

★ 1
segmently-ai
segmently-ai/segmently-modules

qa-acceptance-baseline

Creates or refreshes a module's acceptance baseline, the qa_acceptance role doc that says what must never break, as P0, P1 and P2 criteria with stable AC-NNN ids in Given, When, Then form. Reads every doc and the code of the module through Segmently Modules, confirms its understanding, the requirements and the criteria with the user block by block, continues from the highest existing id and never renumbers. Use when the user asks for a module's acceptance baseline, regression criteria, or to refresh them after the module changed.

★ 1
segmently-ai
segmently-ai/segmently-modules

module-sync

Brings module docs and registry fields in line with a work session — what it decided, rejected, discovered and changed. Takes the session's knowledge first and the code change second, asks sync-instructions which docs to update, prints findings and a proposal per module, edits docs, keywords and links, runs the sync hooks and checks with ci. Autonomous, it asks only in four ambiguous cases and never commits. Use at the end of a session that changed module code or revealed module knowledge, when the user says "sync the session", "sync the docs", or a CI drift check fails.

★ 1
segmently-ai
segmently-ai/segmently-modules

module-split

Splits an oversized module into two to six child modules. Analyses the module's docs section by section, proposes the children with a section-to-child table per doc and what stays in the parent, and stops for confirmation. Then freezes each split doc as a legacy copy, creates the children with create, moves the sections word for word, rewrites the parent as an index, routes the code and validates with lint. Use when lint reports a module doc over its size budget, or the user says "split this module", "too big", "break X into submodules".

★ 1