ワンクリックで
explain
// Explains code/architecture with Mermaid diagrams and sequence flows. Triggers: what does X do, how does Y work, explain code, sequence diagram.
// Explains code/architecture with Mermaid diagrams and sequence flows. Triggers: what does X do, how does Y work, explain code, sequence diagram.
Create new Claude Code lifecycle hook (PreToolUse/PostToolUse/Stop/SessionStart) with bash + hooks.json. Triggers: create hook, lifecycle hook, PreToolUse, PostToolUse, hook event.
CI/CD: GitHub Actions, GitLab CI, Jenkins, caching, blue-green, canary. Triggers: CI, CD, pipeline, GitHub Actions, workflow YAML, release, canary, rollout.
Detect/generate/debug CI pipeline config (GitHub Actions, GitLab CI). Triggers: CI setup, build pipeline, GitHub Actions config, debug CI, GitLab CI.
C#/.NET: LINQ, async/await, DI, records, nullable refs, ASP.NET Core, EF Core, MediatR. Triggers: C#, .NET, dotnet, ASP.NET, EF Core, LINQ, record type, IServiceCollection.
Docker/K8s: Dockerfile, multi-stage, compose, manifests, Helm. Triggers: Docker, Dockerfile, container, Kubernetes, k8s, compose, Helm, pod.
SEO validator: meta/OG, Schema.org, hreflang, Core Web Vitals, crawlability. Triggers: SEO, meta tags, Schema.org, hreflang, LCP, INP, CLS, Core Web Vitals, sitemap, crawlability.
| name | explain |
| description | Explains code/architecture with Mermaid diagrams and sequence flows. Triggers: what does X do, how does Y work, explain code, sequence diagram. |
| user-invocable | true |
| effort | medium |
| argument-hint | [file or module path] |
| agent | code-archaeologist |
| context | fork |
| allowed-tools | Read, Grep, Glob |
$ARGUMENTS
Generates visual architecture explanations.
"This module handles [Responsibility]. It interacts with [Dependencies]."
Generate a graph showing imports/exports.
graph TD
A[AuthService] -->|uses| B[UserRepo]
A -->|validates| C[Schema]
D[Controller] -->|calls| A
If logical flows are detected:
sequenceDiagram
User->>Controller: Login
Controller->>Service: Validate
Service->>DB: Check Creds
DB-->>Service: Result
Service-->>Controller: Token
Run the bundled script to extract imports and generate a Mermaid diagram:
python3 ${CLAUDE_SKILL_DIR}/scripts/dependency-graph.py src/auth.py
accTitle) may render as raw text on older renderers. Stick to the basic subset unless you know the target.dependency-graph.py parses imports statically; dynamic imports (__import__, importlib.import_module, JavaScript await import()) are invisible. Note explicitly when the generated graph is likely incomplete.par block or a note./review or /refactor/explore or Grep/docs/architecture-audit/debug, not /explain