opendatahub-io/docs-skills/docs-workflow-code-analysis
Claude Code and agent skill by opendatahub-io/docs-skills
- community
Checking that the SKILL.md file is still in the repository.
Run code-learner analysis on a source repository for the docs orchestrator workflow. Dispatches a subagent to run learn-code, keeping the heavy orchestration out of the main context. Produces ONBOARDING.md, module registry, per-module summaries, and cross-module relationship data.
Install
npx vskill@latest install opendatahub-io/docs-skills/docs-workflow-code-analysisSKILL.md
docs-workflow-code-analysis
Orchestrator step skill that wraps learn-code to analyze a source repository and produce structured code understanding for downstream documentation steps.
Arguments
| Flag | Required | Description | |
|---|---|---|---|
--repo | Yes | Path to the cloned source repository | |
--ticket | Yes | JIRA ticket ID | |
--output-dir | Yes | Base output directory (.agent_workspace/<ticket>/code-analysis/) |
Execution
1. Validate inputs
- Verify
--repodirectory exists and is a git repository - Verify
--output-dirparent exists; create output directory if needed
2. Check for cached analysis
Check if learn-code output already exists. Learn-code may store results in two locations depending on the subagent's working directory:
- Inside the repo:
${REPO}/.agent_workspace/*/synthesis/ONBOARDING.md - At the docs repo level:
${GIT_ROOT}/.agent_workspace/${REPO_NAME}/synthesis/ONBOARDING.md(whereGIT_ROOTis the documentation repo root andREPO_NAMEisbasename "${REPO}")
Check both locations:
If an ONBOARDING.md is found at either location, the analysis was already completed. Locate the corresponding base directory (the parent of synthesis/) and copy the onboarding guide to --output-dir. All other analysis files stay at the cached location — downstream agents read them from there directly.
Skip to step 4.
3. Dispatch learn-code subagent
You MUST use the Agent tool to run learn-code in an isolated subagent. Do NOT invoke Skill: learn-code inline — that would load 850+ lines of skill text plus all intermediate orchestration into the main context.
After the agent completes, locate the learn-code output. Check both possible locations (same as step 2):
If ONBOARDING.md is not found at either location after the agent completes, mark the step as failed and report the error.
4. Write step-result.json
Do not hand-author the sidecar — a hand-written sidecar drifts from the schema (e.g. string counts where the schema requires integers) and uses an orchestrator-delayed timestamp instead of a real wall-clock one. Run the script:
The script reads the analysis files at LEARN_CODE_BASE (not OUTPUT_DIR — the analysis files are not copied there) to derive the metrics deterministically:
- module_count: length of the
module-registry/registry.jsonarray. - relationship_count: count of
.jsonfiles inrelationships/. - languages_detected: keys of
language_countsindetection/detection.json, falling back to
primary_language.
It writes the conformant step-result.json with a real wall-clock completed_at. If the script exits non-zero, fix the arguments and re-run; do not substitute a stub.
5. Report completion
Print summary:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/docs-workflow-code-analysis/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opendatahub-io/docs-skills/docs-workflow-code-analysis)