repo-mentor
Use this skill when the user wants to learn, analyze, package, or present a GitHub repository or local codebase for interviews, resumes, onboarding, architecture review, or project storytelling. Triggers on requests like "analyze this repo", "help me learn this project", "turn this project into a resume project", "prepare interview talking points", or repository URLs/paths paired with learning or resume goals.
- License 许可
- MIT
- 最近更新
- 2026-08-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- repo-mentor
- description
- Use this skill when the user wants to learn, analyze, package, or present a GitHub repository or local codebase for interviews, resumes, onboarding, architecture review, or project storytelling. Triggers on requests like "analyze this repo", "help me learn this project", "turn this project into a resume project", "prepare interview talking points", or repository URLs/paths paired with learning or resume goals.
02 资源文件 7
- 脚本scripts/generate_learning_package.py7.2 KB
- 脚本scripts/job_match.py6.8 KB
- 脚本scripts/learning_experiment.py14.7 KB
- 脚本scripts/repo_analysis.py13.0 KB
- 脚本scripts/repo_inventory.py6.5 KB
- 脚本tests/test_learning_experiment.py5.7 KB
- 脚本tests/test_repo_analysis.py5.4 KB
03 SKILL.md 正文
RepoMentor Skill
RepoMentor turns a repository into interview-ready project assets. It is optimized for students and engineers who need to understand an unfamiliar codebase, identify credible improvement opportunities, and convert the work into resume bullets and interview narratives.
Core Outcome
Produce a structured repository learning package with:
- Architecture map
- Technical-stack summary
- Core module responsibilities
- Key execution/call flows
- Learning roadmap
- Upgrade plan
- Resume bullets
- Interview talking points
- Follow-up tasks that can be implemented incrementally
Always ground claims in repository evidence. Distinguish observed facts from inferred architecture or suggested improvements.
Required Workflow
Phase 1: Scope The Target
Identify the repository source:
- GitHub URL
- Local path
- Uploaded archive or directory
- Current workspace repository
Ask one concise clarification only if the target repository is missing. Otherwise proceed.
Also infer the user's career goal if present. For fall recruiting, prioritize resume bullets, interview explanation, and credible personal upgrade scope.
Phase 2: Build Evidence and Seed Artifacts
If a local path is available, create two artifacts before synthesizing. They are the evidence record for the final report and must remain available in the Artifact panel:
python /mnt/skills/public/repo-mentor/scripts/repo_analysis.py /path/to/repo \
--max-files 600 \
--output-file /mnt/user-data/outputs/repomentor_repository_evidence.json
python /mnt/skills/public/repo-mentor/scripts/generate_learning_package.py /path/to/repo \
--analysis-file /mnt/user-data/outputs/repomentor_repository_evidence.json \
--output-file /mnt/user-data/outputs/repomentor_learning_package.md
If the repository is uploaded into the sandbox, use that uploaded path. If only a GitHub URL is provided and web/GitHub tools are available, inspect official repository metadata and files first. If cloning is necessary, ask before downloading large repositories. If there is no local path, do not claim that the static dependency evidence was generated.
The evidence artifact identifies:
- Languages and approximate file counts
- Package/build files
- Application entry points
- Test files
- Documentation files
- Internal Python and TypeScript import relations
- API route and frontend page candidates
- Dependency-ranked core files
Read repomentor_learning_package.md before writing any LLM-generated analysis.
Phase 3: Read High-Signal Files
Read a small, deliberate set of files before synthesizing:
- README and docs index
- Package/build manifests (
package.json,pyproject.toml,go.mod,Cargo.toml,pom.xml, etc.) - App/server entry points
- Routing/API files
- Core domain modules
- Tests that describe intended behavior
Avoid exhaustive file dumping. Prefer targeted search and a concise evidence table.
Never read runtime secret files such as .env, .env.local, private-key files,
credential stores, or token files. A clearly named example configuration file may
be read only when it contains no credentials.
Phase 4: Build The Learning Package
repomentor_learning_package.md has already been seeded with deterministic
repository facts. Enrich that same Artifact after reading high-signal files.
Do not remove its provenance note, evidence snapshot, or caveats. Add only
evidence-backed content to the following sections:
repomentor_<repo_name>_learning_package.md
Use this exact structure:
# RepoMentor Learning Package: <repo>
## 1. One-Sentence Positioning
<What this project is, who it serves, and why it matters.>
## 2. Evidence Snapshot
| Area | Evidence | Why It Matters |
|------|----------|----------------|
| Tech stack | <files/deps observed> | <interpretation> |
| Entry points | <paths> | <interpretation> |
| Data/state | <paths> | <interpretation> |
| Tests/docs | <paths> | <interpretation> |
## 3. Architecture Map
<Add a Mermaid flowchart showing the main user, UI/API, runtime, domain, and storage/tool boundaries.>
## 4. Core Modules
| Module | Responsibility | Key Files | Interview Angle |
|--------|----------------|-----------|-----------------|
## 5. Main Execution Flow
1. <Step with file evidence>
2. <Step with file evidence>
3. <Step with file evidence>
## 6. Learning Roadmap
| Day | Goal | Files To Read | Output |
|-----|------|---------------|--------|
## 7. Upgrade Plan
| Upgrade | User Value | Technical Work | Risk | Resume Value |
|---------|------------|----------------|------|--------------|
## 8. Resume Bullets
- **<Capability>**: <action + architecture + measurable or verifiable result>.
- **<Capability>**: <action + architecture + measurable or verifiable result>.
- **<Capability>**: <action + architecture + measurable or verifiable result>.
## 9. Interview Talking Points
### Project Pitch
<60-90 second explanation.>
### Deep-Dive Questions
| Question | Strong Answer Outline |
|----------|-----------------------|
## 10. Next Implementation Step
<Smallest credible change to start making the project your own.>
The final answer must link both generated artifacts:
repomentor_repository_evidence.jsonrepomentor_learning_package.md
Phase 5: Job Description Matching (When A JD Is Provided)
If the user provides a target job description, write its text to
/mnt/user-data/workspace/repomentor_job_description.txt, then generate two
additional artifacts:
python /mnt/skills/public/repo-mentor/scripts/job_match.py \
--analysis-file /mnt/user-data/outputs/repomentor_repository_evidence.json \
--jd-file /mnt/user-data/workspace/repomentor_job_description.txt \
--job-title "<target job title>" \
--output-file /mnt/user-data/outputs/repomentor_job_match.json \
--markdown-file /mnt/user-data/outputs/repomentor_job_match.md
The match score measures repository evidence coverage of only the recognizable technical requirements. It is not a candidate score, an automatic-application decision, or an interview prediction. Link both artifacts in the final answer and use only matched, file-backed technologies when tailoring resume bullets.
Phase 6: Resume Conversion Rules
When writing resume bullets:
- Do not imply the user authored the original open-source project.
- Use phrases like "基于 ... 二次开发", "围绕 ... 场景改造", "扩展 ... 能力", "梳理并重构 ..." when appropriate.
- Prefer verifiable outputs over inflated metrics.
- If metrics are unavailable, use artifact counts, supported workflows, or before/after workflow scope.
- Keep bullets differentiated from generic agent infrastructure work. Emphasize repository learning, project packaging, product workflow, frontend presentation, and open-source adaptation.
Phase 7: Learning-Time Experiment (When Measuring Efficiency)
Do not claim a fixed understanding-time reduction from a one-off experience. When the user wants to measure learning efficiency, initialize an experiment ledger and record paired tasks with the same repository label, task prompt, and required-output checklist:
python /mnt/skills/public/repo-mentor/scripts/learning_experiment.py init \
--ledger /mnt/user-data/outputs/repomentor_learning_experiment.json
python /mnt/skills/public/repo-mentor/scripts/learning_experiment.py record \
--ledger /mnt/user-data/outputs/repomentor_learning_experiment.json \
--task-id "repo-01" \
--repo-label "example-repository" \
--task-prompt "梳理技术栈、入口、三个核心模块、主调用链和两个可讲解难点" \
--required-section "技术栈" \
--required-section "入口与调用链" \
--required-section "核心模块" \
--required-section "可讲解难点" \
--mode baseline \
--duration-minutes 90 \
--quality-score 4
Record the RepoMentor-assisted run with exactly the same task fields and an Artifact path. Then generate two additional artifacts:
python /mnt/skills/public/repo-mentor/scripts/learning_experiment.py summary \
--ledger /mnt/user-data/outputs/repomentor_learning_experiment.json \
--output-file /mnt/user-data/outputs/repomentor_learning_experiment_summary.json
python /mnt/skills/public/repo-mentor/scripts/learning_experiment.py report \
--ledger /mnt/user-data/outputs/repomentor_learning_experiment.json \
--output-file /mnt/user-data/outputs/repomentor_learning_experiment_report.md
The script only aggregates paired records whose two quality scores meet the
ledger threshold (default 4/5). Its default minimum is six eligible pairs.
Before that threshold is met, report the workflow and collected data, but do
not use a fixed percentage in a resume or project description.
Good Resume Bullet Patterns
Chinese:
- **开源项目场景化改造**:基于 <project> 二次开发 <scenario>,梳理 <frontend/backend/runtime/tooling> 链路,将通用能力产品化为 <user-facing workflow>。
- **Repo 分析工具链扩展**:设计 <workflow>,自动识别 <tech stack/modules/entry points>,生成 <architecture summary/learning roadmap/resume bullets> 等结构化产物。
- **项目表达闭环**:将代码理解结果沉淀为可复盘 Markdown artifact,覆盖 <architecture/interview/resume/upgrade plan>,支撑从开源学习到简历表达的转化。
English:
- **Open-source adaptation**: Customized <project> for <scenario>, mapping <frontend/backend/runtime/tooling> into a user-facing workflow for <outcome>.
- **Repository analysis pipeline**: Designed a workflow that identifies <tech stack/modules/entry points> and produces structured artifacts including <architecture summary/learning roadmap/resume bullets>.
- **Interview asset generation**: Persisted repository understanding as reproducible Markdown artifacts covering <architecture/interview/resume/upgrade plan>.
Quality Bar
The final answer should include:
- A short summary of what was analyzed
- A link/path to the generated artifact
- 3-5 prioritized next implementation steps
- A concise resume-ready project description
Never provide a resume description that overclaims original authorship of upstream code.
04 同仓库更多 Skills
web-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
video-generation
Use this skill when the user requests to generate, create, or imagine videos. Supports structured prompts and reference image for guided generation.
vercel-deploy
Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.
systematic-literature-review
Use this skill when the user wants a systematic literature review, survey, or synthesis across multiple academic papers on a topic. Also covers annotated bibliographies and cross-paper comparisons. Searches arXiv and outputs reports in APA, IEEE, or BibTeX format. Not for single-paper tasks — use academic-paper-review for reviewing one paper.
surprise-me
Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for "something interesting".
zh-output-example
Reviews Chinese skill documentation for publication readiness. Invoke when the user asks in Chinese to review a skill.