dot_claude/skills/learning-primer/SKILL.md
Research a repo/docs in parallel for a given topic and generate a disposable GFM+mermaid learning primer (Markdown). Triggers (Japanese): 「〜の学習資料を作って」 「オンボーディング資料がほしい」「〜をキャッチアップしたい」「primer 作って」. Output is not committed (defaults to repo-local `.ai/`, globally git-ignored); view with mo or any GFM+mermaid viewer.
npx skillsauth add paveg/dots learning-primerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Research target repositories/docs in parallel for a topic and generate a
disposable learning primer (Markdown, with mermaid diagrams) tailored to the
reader. Domain-agnostic: never hardcode domain knowledge — research it from
sources each time.
Initial request: $ARGUMENTS
Diagrams are the centerpiece. Use mermaid aggressively to maximize the reader's comprehension and knowledge retention.
audience before → after and the prerequisite Tier dependencies as diagrams too| Arg | Required | Default | Description |
|-----|----------|---------|-------------|
| topic | ✓ | — | Subject to learn |
| audience | ✓ | — | Reader profile; frame as "current state → target state" |
| sources | optional | cwd | Repos/dirs to research (multiple allowed) |
| out | optional | .ai/<topic-slug>-primer.md | Output path |
The default out lives in .ai/, which is globally git-ignored
(~/.config/git/ignore), so it is never committed. Override with out=/tmp/...
to write outside the repo. Outside a git repo where .ai/ is not ignored, set
out explicitly.
Early return: if topic or audience is missing, ask for it. Do not guess.
topic / audience; ask if missing (early return)sources (default cwd) is a docs site / plain Markdown / code-only, and adapt
[!WARNING] Landing / index / category pages are often stubs. Do not trust the index — read the real files (design docs, ADRs, how-tos, code).
topic into 3–5 sub-areas. Generic categories: concept & motivation / how it works / workflow & lifecycle / surrounding ecosystem & tools / prerequisitespath(:line)" (no long quotations — preserve main context)audience before → after to create the perspective shiftout (create .ai/ if absent). If the output dir already holds an index/README, add a one-line pointer to the new primer (reading-order position + freshness). Finish by presenting the viewer command mo <out>. Installs (brew/npm/gh ext, etc.) need network — delegate to the user; automate only generation (file write) and localhost viewingWrite the primer in the audience's language; translate the headings accordingly.
If the audience's language is not explicit, default to the language the
audience/topic arguments are written in; if mixed or unstated, use the
language of the user's request.
# <topic> Learning Primer (for <audience>)
> Freshness header (blockquote, not frontmatter): sources researched / last updated YYYY-MM-DD / disposable note
0. Mindset (current → target / perspective-shift table)
1. Big picture and the "why" + diagram
2. Components & related repos/tools map + diagram
3. Workflow / lifecycle + diagram
4. Sub-area deep dives (structure/relationship diagram per area)
5. Prerequisites (Tier 1/2/3 table + dependency diagram)
6. What to read (source paths, by priority)
7. First steps (concrete actions)
Appendix: glossary (optional)
Budget: 4–8 diagrams total. If per-§4-sub-area coverage would push the total past 8, merge related sub-areas or drop the lowest-value diagram — the 8-cap wins over per-section coverage.
| Purpose | Syntax |
|---------|--------|
| Structure/dependency, before/after | graph TD |
| Data flow / pipeline | flowchart LR |
| Lifecycle / phases | stateDiagram-v2 |
| Cross-system calls | sequenceDiagram |
| Schema / relationships | erDiagram |
≤ ~10 nodes per diagram; concrete labels (no ServiceA — use UserService).
```mermaid fences (no image/HTML embeds)> [!NOTE] etc.); :::note and MDX-specific syntax are forbiddenpath(:line) to every non-obvious claim. If you cannot cite it, do not write itharness-engineering.md). The evaluator verifies grounding, not implementationYYYY-MM-DDaudience as before → after gives a foothold for understandingdevelopment
Iteratively improve agent-facing text instructions (skills, slash commands, task prompts, CLAUDE.md sections, code-generation prompts) by having a bias-free executor run them and evaluating from both sides (executor self-report + caller-side metrics). Repeat until improvement plateaus. Use immediately after creating or significantly revising a skill/prompt, or when unexpected agent behavior is suspected to stem from ambiguous instructions.
development
UI design quality standards and principles for frontend implementation and code review. Use when (1) implementing UI from design specs or mockups, (2) reviewing frontend/UI code, (3) creating new UI components, (4) building user interfaces for web or mobile apps. Complements frontend-design skills with quality enforcement.
development
Pre-submission review for iOS App Store. Scans the codebase for common rejection reasons and generates a pass/fail report with fixes. Use this skill when the user mentions App Store submission, review, release, 審査, 提出, or phrases like "ready to submit", "before submitting to Apple", "submission review", "rejection check". Also trigger when the user is preparing a TestFlight build for external review or discussing App Store rejection issues. Supports Swift/SwiftUI, UIKit, and React Native projects with Apple IAP and RevenueCat.
data-ai
Delegate an interrupt task to a background agent in an isolated worktree. The main session continues uninterrupted. The agent implements, commits, pushes, and creates a PR. Use when a quick fix or small task needs to happen without losing current context.