explain
Skill16 starsChanged 3 days agoApache-2.0View on GitHub
Analyze and explain code in the swiss-ai-hub monorepo by reading the documentation hierarchy (README.md, CLAUDE.md, scope docs) and tracing cross-scope dependencies. Use when user says 'explain this code', 'what does this do', 'how does this work', 'walk me through', 'explain folder X', or 'help me understand'. Takes a file or folder path as argument. Do NOT use for code review (use /review-diff), or documentation updates (use /update-doc).
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 98 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Read docs from broad to narrow — each layer adds context:
- Distinctive: line 43
Read the source files at \$ARGUMENTS and trace how they fit into the architecture:
“Common” is measured: kept by at least 6 in 10 of the 98 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Explain Code - Analyze and Explain Any File or Folder
Explain the code at $ARGUMENTS by reading the documentation hierarchy, analyzing structure, and tracing dependencies across the swiss-ai-hub monorepo.
Step 1: Identify the Scope
Determine which monorepo scope the target path belongs to:
| Scope | Source root | Responsibility |
packages/core | packages/core/swiss_ai_hub/core/ | Shared library (events, entities, NATS, auth, config) |
packages/api | packages/api/swiss_ai_hub/api/ | REST API + WebSocket (FastAPI) |
packages/agent | packages/agent/swiss_ai_hub/agent/ | AI agent workflows (custom workflow engine) |
packages/pipeline | packages/pipeline/swiss_ai_hub/pipeline/ | Data ingestion (Dagster) |
packages/process | packages/process/swiss_ai_hub/process/ | Business process orchestration |
packages/bot | packages/bot/swiss_ai_hub/bot/ | Bot integrations (Teams, Slack) |
packages/web | packages/web/ | Frontend admin UI (Nuxt 3) |
packages/backup | packages/backup/swiss_ai_hub/backup/ | Backup/restore (independent Dagster instance) |
packages/sysadmin-api | packages/sysadmin-api/swiss_ai_hub/sysadmin_api/ | Sysadmin-gated tenant lifecycle API |
packages/sysadmin-web | packages/sysadmin-web/ | Sysadmin UI (Nuxt layer extending web) |
Python packages use a nested layout: the package root contains swiss_ai_hub/{scope}/ with the source code.
Step 2: Read the Documentation Hierarchy
Read docs from broad to narrow — each layer adds context:
README.md— project-wide architecture and services overview{scope}/README.md— scope-level architecture, folder structure, patterns{scope}/CLAUDE.md— coding conventions, key classes, essential files for that scope- README in the target directory itself (if it exists)
- READMEs in parent directories between the scope root and the target
Step 3: Analyze the Code in Context
Read the source files at $ARGUMENTS and trace how they fit into the architecture:
- Architectural layer: Controller → Service → Entity? Event handler? Dagster asset? workflow
@stepmethod? - Cross-scope dependencies: Does it import from
packages/core? Which shared classes does it use (events, entities, NATS subscribers, auth)? - Event system role: Does it publish or subscribe to Control/Display events? Check
packages/core/swiss_ai_hub/core/events/for the event hierarchy. - Entry points: How is this code triggered? (API route registration in
main.py, NATS subscription, Dagster asset materialization, bot handler registration)
Step 4: Provide the Explanation
Structure the explanation as:
- Purpose — what problem this solves and where it fits in the platform
- Key components — main classes/files with their roles
- Data flow — how requests/events flow through this code
- Dependencies — what it imports from
packages/coreand other scopes - Integration points — how other parts of the system interact with it
Examples
Explain the API routes:
/explain packages/api/swiss_ai_hub/api/routes/agentOutput: Explanation of the agent API controllers, services, DTOs, route registration, and how they connect to
packages/core entities.
Explain an agent:
/explain packages/agent/swiss_ai_hub/agent/agents/rag_agentOutput: Breakdown of the RAG agent workflow — events, config, steps, and NATS integration.
Explain a shared module:
/explain packages/core/swiss_ai_hub/core/subscribersOutput: How the NATS subscriber layer works — core and JetStream subscribers, the topics they listen on, and how they fit the Swiss AI Agent Protocol.
Troubleshooting
| Problem | Solution |
| Target path does not exist | Verify the path — check for typos or use Glob to find it |
| No README in the hierarchy | Rely on scope CLAUDE.md and code analysis |
| Code is highly complex | Break explanation into sections per file or component |
| Scope unclear | Check which pyproject.toml the path falls under |
| Cross-scope imports | Trace back to packages/core — all shared code lives there |
Other versions111 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 111
- Z3Prover/z3★ 13ksame name
- crbnos/carbon★ 2.8ksame name
- poshan0126/dotclaude★ 871same name
- VinkyDev/vibestart★ 278same name
- hsantanna88/clo-author★ 262same name
- hugosantanna/clo-author★ 262same name
- entireio/skills★ 223same name
- sammcj/agentic-coding★ 167same name
- SerhiiKorniienko/bullshit-detector★ 151same name
- kv0906/pm-kit★ 138same name
101 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use debug-fix, root-cause and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
zebbernSkilldebug-fix
Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)
Also in 3 projects that use this
Ingramradical235Skillroot-cause
Structured root cause analysis using WHERE (MECE decomposition) then WHY (causal structure diagrams) pipeline. Includes coin-flip detection, logical-leap detection, and vicious cycle intervention. Use when buffer enters YELLOW/RED, when metrics stall, or when Actions execute but don't produce results.
Also in 5 projects that use this
Hugging FaceSkillself-review
Use before opening a PR, or whenever asked to self-review a diffusers contribution. Applies the same rubric as the `@claude` CI (checks the diff against references/review-rules.md, traces call paths for dead code). Reports findings grouped by severity, flagging what to fix before submitting (blocking issues + dead code) vs what to leave for the actual review. Report-only — does not edit files.
Also in 5 projects that use this
thoughtbotSkillchallenge
Pressure-test an assumption, decision, or inherited constraint — Socratic cross-examination that forces you to defend or abandon your position
Also in 4 projects that use this
Itsokay-coSkilldiscover
Automated pattern discovery — finds what correlates with your best and worst sleep nights. Scans workouts, meals, caffeine, tags, gut scores, and timing patterns. Use when the user wants to know what actually affects their sleep.
Also in 5 projects that use this
neurofooSkillsocratic
Socratic questioning to examine beliefs, uncover assumptions, and develop deeper understanding. Use to challenge thinking, evaluate proposals, or teach without lecturing.
Also in 3 projects that use this
In this repository50 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- .github/actions/CLAUDE.mdCLAUDE.md
- arc42Skill
- audit-frontendSkill
- bot-frameworkSkill
- create-or-audit-claude-mdSkill
- create-or-audit-skillSkill
- create-or-audit-subagentSkill
- create-prSkill
- dagster-pipelinesSkill
- debug-agentSkill
- debug-frontendSkill
- debug-pipelineSkill
- design-systemSkill
- docker-devSkill
- document-decisionSkill
- document-featureSkill
- generate-sdkSkill
- i18nSkill
- implement-feedback-from-prSkill
- likec4-dslSkill
- lintSkill
- merge-mainSkill
- nats-eventsSkill
- plan-issueSkill
- pr-demo-videoSkill
- primevue-lookupSkill
- rclone-guideSkill
- reflectSkill
- review-diffSkill
- scaffold-agentSkill
- scaffold-api-endpointSkill
- scaffold-api-repositorySkill
- scaffold-api-serviceSkill
- scaffold-bot-handlerSkill
- scaffold-composableSkill
- scaffold-event-displaySkill
- scaffold-frontend-componentSkill
- scaffold-frontend-pageSkill
- scaffold-frontend-subpageSkill
- scaffold-pipelineSkill
- setup-bot-connectionSkill
- splice-issueSkill
- sync-agent-docsSkill
- test-scopeSkill
- update-docSkill
- verify-sdk-syncSkill
- write-docSkill
- write-issueSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

