一键导入
style-guide-lint
Quality-check the code-style guide for contradictions, duplications, and ambiguous rules. Run after editing the code-style skill files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Quality-check the code-style guide for contradictions, duplications, and ambiguous rules. Run after editing the code-style skill files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | style-guide-lint |
| description | Quality-check the code-style guide for contradictions, duplications, and ambiguous rules. Run after editing the code-style skill files. |
| user-invocable | true |
| version | 0.1.0 |
| license | CC0-1.0 |
| arguments | optional path to the guide directory (defaults to the code-style skill in this repo or plugin) |
Detect contradictions and duplications across the code-style guide files before they drift apart. A duplicated rule is a latent contradiction: once one copy is edited and the other is not, the guide disagrees with itself.
Output is a report. Never apply fixes as part of this skill; propose them.
Resolve the guide directory in this order:
plugins/shia-guides/skills/code-style/ under the current repository, if it exists (linting the working copy).code-style skill directory (sibling of this skill's base directory).Lint SKILL.md and every file under reference/.
Read every target file and extract each normative statement (imperatives and value judgments: prefer, avoid, do, don't, never, always, use, write). Build a table:
| ID | Location | Rule (condensed) | Topic |
|---|---|---|---|
| S-01 | SKILL.md:26 | Comments explain why/why not, not what | comments |
Group the inventory by topic and examine every same-topic pair (within a file and across files). SKILL.md must also be audited against itself — its principle bullets and its dedicated sections can restate each other. Classify each overlapping pair:
Rules of thumb:
For the 2–3 topics with the heaviest overlap, write a short code sample (in the relevant language) that the overlapping rules all apply to, and derive what the guide tells you to do. If two rules push the sample in different directions, that confirms a contradiction — record the sample in the finding. If the rules agree on the sample, the pair stays at whatever Step 2 classified it as (usually duplication). Static reading misses conflicts that only appear in application; this step catches them.
Present findings sorted by severity: contradictions, then duplications. For each finding include:
file:line locations and short quotes.Close with the inventory size (rules extracted per file) so coverage is visible. If nothing is found, say so plainly and still show the inventory size.
Audit Claude-authored commits across all repositories Claude has worked in against the code-style guide, reporting violations plus guide defects (missing, dead, or ambiguous rules) the violations reveal. Run on demand from the dotfiles (marketplace) repo.
riseshia's coding conventions. Use it always unless a project-specific convention (CLAUDE.md, style guides) exists.
Explain a topic as a single, readable, self-contained HTML file that the user opens in a browser. Use when the user runs /explain-with-html, or asks to have something explained "as HTML", "in a browser", or with a visual/diagram-heavy write-up. The topic is optional — infer it from the recent conversation and confirm before generating. Use mermaid.js for diagrams when they help.
Run a development task as an event-driven state machine (plan → plan-approve → implement → validate → minor-fix/recheck → open-pr → followup → retrospect → done). A thin orchestrator fires named transitions via a CLI that enforces the plan-approve human gate and bounded rework/continue loops, reads a per-state prompt for each node, delegates heavy work-states to fresh workers (Agent tool or claude -p) over a file-based handoff, and ships via a Draft PR. Use when the user wants to run a non-trivial task end-to-end with minimal supervision.
High-precision code review inspired by Alibaba Open Code Review. Script-driven pre-processing, per-file isolated review, three-layer false-positive reduction.
Run a session-level retrospective after a shia-guides:workflow run and propose concrete, composable improvements to the workflow's three surfaces — the `pipeline` transition table, `nodes/*.md` orchestrator routers, and `workers/*.txt` worker prompts. Grounds findings in the run's `.workflow/history.log` (timestamped transition/worker trace), state counters, and the shipped diff. Use when a run is finished (before `abort`) and you want to turn what happened into a better workflow.