Install
$ agentstack add skill-softspark-ai-toolkit-explain ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Explain
$ARGUMENTS
Generates visual architecture explanations.
Output Format
1. High-Level Role
"This module handles [Responsibility]. It interacts with [Dependencies]."
2. Dependency Graph (Mermaid)
Generate a graph showing imports/exports.
graph TD
A[AuthService] -->|uses| B[UserRepo]
A -->|validates| C[Schema]
D[Controller] -->|calls| A
3. Key Flows (Sequence)
If logical flows are detected:
sequenceDiagram
User->>Controller: Login
Controller->>Service: Validate
Service->>DB: Check Creds
DB-->>Service: Result
Service-->>Controller: Token
Protocol
- Scan: Read file contents to identify classes and functions.
- Link: Identify imports to find collaborators.
- Visualize: Generate standard Mermaid syntax.
Automated Dependency Graph
Run the bundled script to extract imports and generate a Mermaid diagram:
python3 ${CLAUDE_SKILL_DIR}/scripts/dependency-graph.py src/auth.py
Rules
- MUST start from what the user already knows — if it is unclear, ask one question before explaining
- MUST ground the explanation in the actual code (file:line references), not in generic framework theory
- NEVER use an analogy when a direct definition is clearer — analogies add a translation step for the reader
- NEVER produce a diagram that the text does not already justify — diagrams illustrate, they do not replace the explanation
- CRITICAL: when the code base is large, scope the explanation to one entry point plus its immediate collaborators. Explaining "the whole system" in one pass fails for any non-trivial project.
- MANDATORY: if the user asks for a short answer, give a one-paragraph summary without diagrams — not every request needs a Mermaid graph
Gotchas
- Mermaid renders differently across GitHub, VS Code preview, and static generators. Features added post-2023 (e.g., class diagram relations,
accTitle) may render as raw text on older renderers. Stick to the basic subset unless you know the target. dependency-graph.pyparses imports statically; dynamic imports (__import__,importlib.import_module, JavaScriptawait import()) are invisible. Note explicitly when the generated graph is likely incomplete.- Sequence diagrams have no notion of async vs sync. Two parallel calls render as sequential; distinguish with a
parblock or a note. - Architectural explanations that name "the service layer" or "the controller" leak framework jargon. If the project does not use those terms, use the project's own names — otherwise the reader is translating twice.
- Long Mermaid graphs wrap awkwardly on narrow screens. For >20 nodes, split into a high-level graph and drill-down graphs rather than one giant diagram.
When NOT to Use
- To critique or improve the code — use
/reviewor/refactor - To find a specific function across the codebase — use
/exploreorGrep - To write the documentation that the explanation turns into — use
/docs - For a full architecture audit or redesign — use
/architecture-audit - When the user asks "why is this broken" — use
/debug, not/explain
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: softspark
- Source: softspark/ai-toolkit
- License: MIT
- Homepage: https://softspark.eu
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.