一键导入
code-style
riseshia's coding conventions. Use it always unless a project-specific convention (CLAUDE.md, style guides) exists.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
riseshia's coding conventions. Use it always unless a project-specific convention (CLAUDE.md, style guides) exists.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.
Quality-check the code-style guide for contradictions, duplications, and ambiguous rules. Run after editing the code-style skill files.
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.
| name | code-style |
| description | riseshia's coding conventions. Use it always unless a project-specific convention (CLAUDE.md, style guides) exists. |
| user-invocable | false |
| version | 0.1.0 |
riseshia's coding conventions. Project-specific conventions (the repo's CLAUDE.md, style guides, existing code) always take priority over this guidance.
Before writing or modifying code:
Comments must not repeat what the code already expresses. Use comments for explaining why something is done, or to provide context not obvious from the code itself.
When to comment:
When not to comment:
Code is the source of truth.
| Language / context | Detect by | Reference to read |
|---|---|---|
| Ruby | .rb, Gemfile, RSpec | reference/ruby.md |
| Ruby on Rails | Rails project (config/application.rb, ActiveRecord, migrations) | reference/rails.md and reference/ruby.md |
| Rust | .rs, Cargo.toml | reference/rust.md |
| Terraform | .tf, .tfvars, HCL | reference/terraform.md |
| TypeScript / React | .ts, .tsx, React | reference/typescript.md |
For Rails work, apply both the Ruby and Rails references (Rails conventions build on top of the Ruby ones).