[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F3ES5QWR8W4FAJFAWWWVAD":3,"skill-same:01M6F3ES5QWR8W4FAJFAWWWVAD":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":6,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6F3ES5QWR8W4FAJFAWWWVAD","oss-code-analysis",null,"Explore open-source GitHub repository source trees via web browsing to analyze and compare feature implementations at the code level. Supports two modes: cross-project comparison and single-project deep dive. Use when evaluating how OSS projects implement a specific feature, choosing architecture patterns, or benchmarking implementation strategies.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fcomsky\u002Fremy-skill-recipes\u002Foss-code-analysis\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"oss code analysis","code","analysis","oss","code analysis","analyze","web browsing","trees","project","deep","strategies","patterns","architecture","projects","explore","how","open","architecture patterns","repository","benchmarking","2026-11-10 10:12:30",false,"---\nname: oss-code-analysis\ndescription: >\n  Explore open-source GitHub repository source trees via web browsing\n  to analyze and compare feature implementations at the code level.\n  Supports two modes: cross-project comparison and single-project deep dive.\n  Use when evaluating how OSS projects implement a specific feature,\n  choosing architecture patterns, or benchmarking implementation strategies.\nlicense: MIT\ncompatibility:\n  - Claude Code\n  - Cursor\nmetadata:\n  type: execution\n  category: research\n  maturity: draft\n  estimated_time: 20 min\n---\n\n# Skill: OSS Code-Level Feature Analysis\n\n**Type:** Execution\n\n## Purpose\n\nExplore open-source GitHub repositories at the **source code level** to understand\nhow specific features are implemented.\n\nTwo analysis modes:\n\n- **Compare:** Analyze the same feature across multiple OSS projects\n- **Deep Dive:** Deeply analyze a single project's feature implementation\n\nThe goal is to extract actionable implementation insights — not to copy code,\nbut to understand architectural decisions, trade-offs, and proven patterns.\n\n---\n\n## When to Use\n\n- Before implementing a feature, to study how mature OSS projects solved it\n- When choosing between architectural patterns and needing code-level evidence\n- When evaluating libraries or frameworks by reading their internals\n- When comparing implementation strategies across multiple projects\n- When reverse-engineering how a specific OSS feature works under the hood\n\n---\n\n## When NOT to Use\n\n- UX\u002Finteraction-level comparison (use `competitive-feature-benchmark` instead)\n- Pricing, licensing, or business model comparison\n- Projects hosted on private repositories without access\n- Analyzing proprietary\u002Fclosed-source software\n- Simple API usage questions answerable from official documentation\n\n---\n\n## Inputs Required\n\nDo not run this skill without:\n\n- [ ] Target feature to analyze (name and scope)\n- [ ] Analysis mode (`compare` or `deep-dive`)\n\nOptional but recommended:\n\n- [ ] GitHub repository URLs (1 for deep-dive, 2–5 for compare)\n- [ ] Specific aspects to focus on (e.g., error handling, caching strategy)\n- [ ] Our current implementation or design proposal for contextual comparison\n\nIf repository URLs are not provided, identify 3–5 relevant OSS projects via web search.\n\n---\n\n## Output Format\n\n1. Repository Overview\n2. Source Tree Map\n3. Architecture Analysis\n4. Key Code Walkthrough\n5. Technology Stack Summary\n6. Comparison Table (compare mode) \u002F Findings Summary (deep-dive mode)\n7. Strategic Recommendations\n\n---\n\n## Procedure\n\n### Step 1 – Mode Selection & Input Validation\n\nConfirm with the user:\n\n- Which feature to analyze\n- Which mode: `compare` or `deep-dive`\n- Target repositories (URLs)\n\nIf repositories are not specified:\n\n- Use web search to find 3–5 well-maintained OSS projects implementing the target feature\n- Prefer projects with: >1k stars, recent commits within 6 months, clear documentation\n- Present the candidate list to the user for confirmation before proceeding\n\n---\n\n### Step 2 – Repository Structure Exploration\n\nFor each target repository, browse the GitHub web interface:\n\n**2-1. Project overview**\n\n- Read the repository root page (README, top-level files)\n- Note: star count, last commit date, primary language, license\n\n**2-2. Directory tree mapping**\n\n- Browse the top-level directory structure\n- Identify architectural layers from folder names (e.g., `src\u002F`, `lib\u002F`, `internal\u002F`, `packages\u002F`)\n- Map the folder hierarchy relevant to the target feature\n\n**2-3. Build system & package configuration**\n\n- Read dependency manifest files: `package.json`, `Cargo.toml`, `go.mod`, `pyproject.toml`, `pom.xml`, etc.\n- Note framework versions and key dependencies\n\n#### GitHub Source Browsing Guide\n\nUse these URL patterns for efficient navigation:\n\n| Purpose | URL Pattern |\n|---|---|\n| Repository root | `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}` |\n| Directory listing | `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Ftree\u002F{branch}\u002F{path}` |\n| Raw file content | `https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002F{branch}\u002F{path}` |\n| GitHub API (directory) | `https:\u002F\u002Fapi.github.com\u002Frepos\u002F{owner}\u002F{repo}\u002Fcontents\u002F{path}` |\n| GitHub API (tree, recursive) | `https:\u002F\u002Fapi.github.com\u002Frepos\u002F{owner}\u002F{repo}\u002Fgit\u002Ftrees\u002F{branch}?recursive=1` |\n| Search within repo | `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Fsearch?q={keyword}&type=code` |\n\nPreferred tools (in order of reliability):\n\n1. `raw.githubusercontent.com` URLs for direct file content access (plain text, no HTML parsing)\n2. GitHub API endpoints for directory trees and structured metadata (JSON responses)\n3. `WebFetch` for GitHub pages when API is unavailable (HTML parsing may be needed)\n4. `WebSearch` for finding relevant files when directory structure is unclear\n\n---\n\n### Step 3 – Entry Point & Core Module Identification\n\nLocate the code that implements the target feature:\n\n**3-1. Entry point discovery**\n\n- Check README, CONTRIBUTING.md, or docs\u002F for architecture guides\n- Look for obvious entry points: `main.*`, `index.*`, `app.*`, `server.*`\n- Trace from CLI commands, API routes, or exported modules\n\n**3-2. Feature-specific module location**\n\n- Search for feature-related keywords in file\u002Ffolder names\n- Read import statements and module declarations to trace dependencies\n- Follow the call chain from entry point to the target feature's core logic\n\n**3-3. Key file inventory**\n\nProduce a list of key files with their roles:\n\n- **Compare mode:** 5–8 key files per repository (focus on the most\n  relevant to the target feature)\n- **Deep-dive mode:** 8–15 key files (broader coverage acceptable)\n\n```\npath\u002Fto\u002Ffile.ts — Role description (e.g., \"Main scheduler loop\")\npath\u002Fto\u002Ftypes.ts — Role description (e.g., \"Core data structures\")\n```\n\n---\n\n### Step 4 – Code-Level Deep Reading\n\n> **SCOPING RULE:** For each key file, first read **exported symbols,\n> type signatures, and function headers only** (first pass).\n> Then full-read only the functions\u002Fsections directly relevant to the\n> target feature (second pass). For files exceeding 500 lines, always\n> use line-range reading restricted to the relevant sections.\n> Maximum full-read budget: **10 files per repository** in compare mode,\n> **15 files** in deep-dive mode.\n\nRead each key file and analyze:\n\n#### A. Architecture Pattern\n\n- Overall pattern: MVC, Clean Architecture, Hexagonal, Event-Driven, Pipeline, etc.\n- Module boundaries and coupling strategy\n- Dependency direction (inward vs outward)\n\n#### B. Core Data Structures\n\n- Primary types, interfaces, structs, or classes\n- State management approach\n- Data flow between modules\n\n#### C. Key Algorithms & Logic\n\n- Core processing logic and control flow\n- Concurrency\u002Fparallelism strategy (if applicable)\n- Performance-critical paths\n\n#### D. Error Handling & Resilience\n\n- Error propagation strategy (exceptions, Result types, error codes)\n- Retry, fallback, and circuit breaker patterns\n- Validation and input sanitization\n\n#### E. Extension Points\n\n- Plugin\u002Fmiddleware architecture\n- Configuration and customization hooks\n- Public API surface\n\n---\n\n### Step 5 – Technology Stack Analysis\n\nCompile for each repository:\n\n| Category | Details |\n|---|---|\n| Language & version | e.g., TypeScript 5.3, Rust 1.75 |\n| Framework | e.g., Next.js 14, Actix-web 4 |\n| Key libraries | Role of each major dependency |\n| Build tooling | Bundler, compiler, task runner |\n| Test framework | Unit, integration, E2E tools |\n| CI\u002FCD | Pipeline configuration if visible |\n\n---\n\n### Step 6 – Synthesis\n\n#### Compare Mode: Comparative Table\n\nCreate a structured comparison across all analyzed repositories:\n\n| Dimension | Repo A | Repo B | Repo C |\n|---|---|---|---|\n| Architecture pattern | | | |\n| Core data model | | | |\n| Key algorithm approach | | | |\n| Error handling strategy | | | |\n| Extension mechanism | | | |\n| External dependencies | | | |\n| Code complexity | | | |\n| Test coverage approach | | | |\n\nFor each dimension, note the trade-offs of each approach.\n\n#### Deep-Dive Mode: Findings Summary\n\nProduce:\n\n- Architecture diagram (Mermaid) showing module relationships\n- Data flow diagram for the target feature\n- Call chain from entry point to core logic\n- Key design decisions and their rationale (inferred from code\u002Fcomments)\n\n---\n\n### Step 7 – Strategic Recommendations\n\nAnswer:\n\n1. Which implementation pattern is most suitable for our context and why?\n2. What are the key trade-offs between the approaches observed?\n3. What pitfalls or anti-patterns were found that we should avoid?\n4. What design decisions should we adopt or adapt?\n5. Are there reusable components or libraries worth considering?\n\nProvide a clear, prioritized recommendation with justification.\n\n---\n\n## Guardrails\n\n- If a repository is inaccessible (private, deleted, rate-limited), report the gap immediately and proceed with available repositories.\n- Do not clone, fork, or download repositories. Analysis is read-only via web browsing.\n- Do not fabricate code snippets or architecture details not found in the source.\n- For large repositories (>10k files), restrict analysis scope to the target feature's relevant modules only.\n- Always record the license type of each analyzed repository.\n- Explicitly state when analysis is based on inference rather than direct code reading.\n- Do not compare code quality subjectively without citing specific patterns or metrics.\n- When quoting code snippets, always include the file path and approximate line range.\n\n---\n\n## Failure Patterns\n\nCommon bad outputs:\n\n- Listing repositories without actually reading their source code\n- Producing architecture descriptions based on README alone without verifying against actual code\n- Comparing projects at different abstraction levels (one at code level, another at documentation level)\n- Missing the comparison table in compare mode\n- Ignoring error handling and edge case analysis\n- Recommending a pattern without explaining trade-offs\n- Analyzing the entire repository instead of focusing on the target feature\n- Presenting outdated information from an old branch instead of the default branch\n- Failing to distinguish between the project's public API and internal implementation\n\n---\n\n## Example 1 (Minimal Context)\n\n**Input:**\n\nFeature: real-time collaboration (CRDT-based)\nMode: compare\nRepositories: not specified\n\n**Output:**\n\n1. Repository Overview: Yjs (14k stars, TypeScript), Automerge (3k stars, Rust+WASM), Diamond-types (1k stars, Rust)\n2. Source Tree Map: core CRDT modules, network sync layers, storage adapters per project\n3. Architecture Analysis:\n   - Yjs: monolithic core with plugin-based extensions (awareness, undo-manager)\n   - Automerge: Rust core compiled to WASM with thin JS wrapper\n   - Diamond-types: pure Rust, optimized for text editing performance\n4. Key Code Walkthrough: CRDT merge logic, operation encoding, conflict resolution per project\n5. Technology Stack: Yjs (pure TS, no deps), Automerge (Rust + wasm-bindgen), Diamond-types (Rust, no runtime deps)\n6. Comparison Table: architecture pattern, merge algorithm (Yjs: YATA, Automerge: RGA variant, Diamond: Fugue), memory model, WASM usage, extensibility, document size overhead\n7. Strategic Recommendation: Yjs for rapid integration with existing JS ecosystem; Automerge for cross-platform with Rust performance; Diamond-types if text-only editing with maximum performance is the priority\n\n---\n\n## Example 2 (Realistic Scenario)\n\n**Input:**\n\nFeature: authentication middleware implementation\nMode: deep-dive\nRepository: https:\u002F\u002Fgithub.com\u002Fnextauthjs\u002Fnext-auth\nFocus: how session management and JWT handling are implemented internally\n\n**Output:**\n\n1. Repository Overview: NextAuth.js — 25k stars, TypeScript, ISC license, actively maintained with weekly releases\n2. Source Tree Map:\n   ```\n   packages\u002F\n   ├── core\u002Fsrc\u002F          — Framework-agnostic auth logic\n   │   ├── lib\u002F           — Session, CSRF, callback handlers\n   │   ├── providers\u002F     — OAuth, Email, Credentials provider implementations\n   │   └── types.ts       — Core type definitions\n   ├── next-auth\u002Fsrc\u002F     — Next.js-specific adapter\n   └── frameworks-*\u002F      — SvelteKit, Express adapters\n   ```\n3. Architecture Analysis: Provider pattern with framework adapters. Core auth logic is framework-agnostic in `packages\u002Fcore\u002F`, each framework has a thin adapter layer. Session handling branches into JWT (stateless) and database (stateful) strategies via a strategy interface.\n4. Key Code Walkthrough:\n   - `packages\u002Fcore\u002Fsrc\u002Flib\u002Factions\u002Fsession.ts` — Session retrieval: decodes JWT or queries DB adapter based on `session.strategy` config\n   - `packages\u002Fcore\u002Fsrc\u002Fjwt.ts` — JWT encode\u002Fdecode using `jose` library, supports JWE encryption\n   - `packages\u002Fcore\u002Fsrc\u002Flib\u002Factions\u002Fcallback\u002Findex.ts` — OAuth callback flow: validates state, exchanges code for tokens, calls user-defined callbacks\n   - `packages\u002Fcore\u002Fsrc\u002Fproviders\u002Foauth.ts` — Generic OAuth provider with PKCE support, token endpoint configuration\n5. Technology Stack: TypeScript 5.x, `jose` for JWT\u002FJWE, `oauth4webapi` for OAuth 2.0, `@panva\u002Fhkdf` for key derivation, Turborepo monorepo, Vitest for testing\n6. Findings Summary:\n   - Mermaid architecture diagram showing Core → Provider → Adapter → Framework layer relationships\n   - JWT flow: request → session middleware → decode JWT → validate expiry → attach to context → call user callback\n   - Design decisions: framework-agnostic core enables multi-framework support; provider pattern allows easy addition of new OAuth providers; adapter pattern abstracts database operations\n7. Strategic Recommendations:\n   - Adopt the framework-agnostic core + thin adapter pattern for multi-framework auth libraries\n   - The provider pattern with typed configuration objects is highly extensible — recommended for any pluggable authentication system\n   - Consider: JWT-only strategy avoids database dependency but complicates token revocation; NextAuth solves this with short-lived JWTs + rotation\n\n---\n\n## Notes\n\n**FAST MODE** (only if explicitly requested):\n\n- Limit to 3 key files per repository\n- Skip Step 5 (Technology Stack Analysis)\n- In compare mode, limit to 3 repositories maximum\n\n---\n\n- This skill complements `competitive-feature-benchmark` which operates at the UX\u002Finteraction level. Use both together for a complete picture: code-level implementation (this skill) + user-facing design (competitive-feature-benchmark).\n- For very large repositories, consider analyzing only the most recent tagged release rather than the HEAD of the default branch to ensure stability of analysis.\n- GitHub API has rate limits (60 requests\u002Fhour unauthenticated, 5000\u002Fhour with token). If rate-limited, switch to `raw.githubusercontent.com` URLs or `WebFetch` on regular GitHub pages.\n\n","# Skill: OSS Code-Level Feature Analysis\n\n**Type:** Execution\n\n## Purpose\n\nExplore open-source GitHub repositories at the **source code level** to understand\nhow specific features are implemented.\n\nTwo analysis modes:\n\n- **Compare:** Analyze the same feature across multiple OSS projects\n- **Deep Dive:** Deeply analyze a single project's feature implementation\n\nThe goal is to extract actionable implementation insights — not to copy code,\nbut to understand architectural decisions, trade-offs, and proven patterns.\n\n---\n\n## When to Use\n\n- Before implementing a feature, to study how mature OSS projects solved it\n- When choosing between architectural patterns and needing code-level evidence\n- When evaluating libraries or frameworks by reading their internals\n- When comparing implementation strategies across multiple projects\n- When reverse-engineering how a specific OSS feature works under the hood\n\n---\n\n## When NOT to Use\n\n- UX\u002Finteraction-level comparison (use `competitive-feature-benchmark` instead)\n- Pricing, licensing, or business model comparison\n- Projects hosted on private repositories without access\n- Analyzing proprietary\u002Fclosed-source software\n- Simple API usage questions answerable from official documentation\n\n---\n\n## Inputs Required\n\nDo not run this skill without:\n\n- [ ] Target feature to analyze (name and scope)\n- [ ] Analysis mode (`compare` or `deep-dive`)\n\nOptional but recommended:\n\n- [ ] GitHub repository URLs (1 for deep-dive, 2–5 for compare)\n- [ ] Specific aspects to focus on (e.g., error handling, caching strategy)\n- [ ] Our current implementation or design proposal for contextual comparison\n\nIf repository URLs are not provided, identify 3–5 relevant OSS projects via web search.\n\n---\n\n## Output Format\n\n1. Repository Overview\n2. Source Tree Map\n3. Architecture Analysis\n4. Key Code Walkthrough\n5. Technology Stack Summary\n6. Comparison Table (compare mode) \u002F Findings Summary (deep-dive mode)\n7. Strategic Recommendations\n\n---\n\n## Procedure\n\n### Step 1 – Mode Selection & Input Validation\n\nConfirm with the user:\n\n- Which feature to analyze\n- Which mode: `compare` or `deep-dive`\n- Target repositories (URLs)\n\nIf repositories are not specified:\n\n- Use web search to find 3–5 well-maintained OSS projects implementing the target feature\n- Prefer projects with: >1k stars, recent commits within 6 months, clear documentation\n- Present the candidate list to the user for confirmation before proceeding\n\n---\n\n### Step 2 – Repository Structure Exploration\n\nFor each target repository, browse the GitHub web interface:\n\n**2-1. Project overview**\n\n- Read the repository root page (README, top-level files)\n- Note: star count, last commit date, primary language, license\n\n**2-2. Directory tree mapping**\n\n- Browse the top-level directory structure\n- Identify architectural layers from folder names (e.g., `src\u002F`, `lib\u002F`, `internal\u002F`, `packages\u002F`)\n- Map the folder hierarchy relevant to the target feature\n\n**2-3. Build system & package configuration**\n\n- Read dependency manifest files: `package.json`, `Cargo.toml`, `go.mod`, `pyproject.toml`, `pom.xml`, etc.\n- Note framework versions and key dependencies\n\n#### GitHub Source Browsing Guide\n\nUse these URL patterns for efficient navigation:\n\n| Purpose | URL Pattern |\n|---|---|\n| Repository root | `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}` |\n| Directory listing | `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Ftree\u002F{branch}\u002F{path}` |\n| Raw file content | `https:\u002F\u002Fraw.githubusercontent.com\u002F{owner}\u002F{repo}\u002F{branch}\u002F{path}` |\n| GitHub API (directory) | `https:\u002F\u002Fapi.github.com\u002Frepos\u002F{owner}\u002F{repo}\u002Fcontents\u002F{path}` |\n| GitHub API (tree, recursive) | `https:\u002F\u002Fapi.github.com\u002Frepos\u002F{owner}\u002F{repo}\u002Fgit\u002Ftrees\u002F{branch}?recursive=1` |\n| Search within repo | `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Fsearch?q={keyword}&type=code` |\n\nPreferred tools (in order of reliability):\n\n1. `raw.githubusercontent.com` URLs for direct file content access (plain text, no HTML parsing)\n2. GitHub API endpoints for directory trees and structured metadata (JSON responses)\n3. `WebFetch` for GitHub pages when API is unavailable (HTML parsing may be needed)\n4. `WebSearch` for finding relevant files when directory structure is unclear\n\n---\n\n### Step 3 – Entry Point & Core Module Identification\n\nLocate the code that implements the target feature:\n\n**3-1. Entry point discovery**\n\n- Check README, CONTRIBUTING.md, or docs\u002F for architecture guides\n- Look for obvious entry points: `main.*`, `index.*`, `app.*`, `server.*`\n- Trace from CLI commands, API routes, or exported modules\n\n**3-2. Feature-specific module location**\n\n- Search for feature-related keywords in file\u002Ffolder names\n- Read import statements and module declarations to trace dependencies\n- Follow the call chain from entry point to the target feature's core logic\n\n**3-3. Key file inventory**\n\nProduce a list of key files with their roles:\n\n- **Compare mode:** 5–8 key files per repository (focus on the most\n  relevant to the target feature)\n- **Deep-dive mode:** 8–15 key files (broader coverage acceptable)\n\n```\npath\u002Fto\u002Ffile.ts — Role description (e.g., \"Main scheduler loop\")\npath\u002Fto\u002Ftypes.ts — Role description (e.g., \"Core data structures\")\n```\n\n---\n\n### Step 4 – Code-Level Deep Reading\n\n> **SCOPING RULE:** For each key file, first read **exported symbols,\n> type signatures, and function headers only** (first pass).\n> Then full-read only the functions\u002Fsections directly relevant to the\n> target feature (second pass). For files exceeding 500 lines, always\n> use line-range reading restricted to the relevant sections.\n> Maximum full-read budget: **10 files per repository** in compare mode,\n> **15 files** in deep-dive mode.\n\nRead each key file and analyze:\n\n#### A. Architecture Pattern\n\n- Overall pattern: MVC, Clean Architecture, Hexagonal, Event-Driven, Pipeline, etc.\n- Module boundaries and coupling strategy\n- Dependency direction (inward vs outward)\n\n#### B. Core Data Structures\n\n- Primary types, interfaces, structs, or classes\n- State management approach\n- Data flow between modules\n\n#### C. Key Algorithms & Logic\n\n- Core processing logic and control flow\n- Concurrency\u002Fparallelism strategy (if applicable)\n- Performance-critical paths\n\n#### D. Error Handling & Resilience\n\n- Error propagation strategy (exceptions, Result types, error codes)\n- Retry, fallback, and circuit breaker patterns\n- Validation and input sanitization\n\n#### E. Extension Points\n\n- Plugin\u002Fmiddleware architecture\n- Configuration and customization hooks\n- Public API surface\n\n---\n\n### Step 5 – Technology Stack Analysis\n\nCompile for each repository:\n\n| Category | Details |\n|---|---|\n| Language & version | e.g., TypeScript 5.3, Rust 1.75 |\n| Framework | e.g., Next.js 14, Actix-web 4 |\n| Key libraries | Role of each major dependency |\n| Build tooling | Bundler, compiler, task runner |\n| Test framework | Unit, integration, E2E tools |\n| CI\u002FCD | Pipeline configuration if visible |\n\n---\n\n### Step 6 – Synthesis\n\n#### Compare Mode: Comparative Table\n\nCreate a structured comparison across all analyzed repositories:\n\n| Dimension | Repo A | Repo B | Repo C |\n|---|---|---|---|\n| Architecture pattern | | | |\n| Core data model | | | |\n| Key algorithm approach | | | |\n| Error handling strategy | | | |\n| Extension mechanism | | | |\n| External dependencies | | | |\n| Code complexity | | | |\n| Test coverage approach | | | |\n\nFor each dimension, note the trade-offs of each approach.\n\n#### Deep-Dive Mode: Findings Summary\n\nProduce:\n\n- Architecture diagram (Mermaid) showing module relationships\n- Data flow diagram for the target feature\n- Call chain from entry point to core logic\n- Key design decisions and their rationale (inferred from code\u002Fcomments)\n\n---\n\n### Step 7 – Strategic Recommendations\n\nAnswer:\n\n1. Which implementation pattern is most suitable for our context and why?\n2. What are the key trade-offs between the approaches observed?\n3. What pitfalls or anti-patterns were found that we should avoid?\n4. What design decisions should we adopt or adapt?\n5. Are there reusable components or libraries worth considering?\n\nProvide a clear, prioritized recommendation with justification.\n\n---\n\n## Guardrails\n\n- If a repository is inaccessible (private, deleted, rate-limited), report the gap immediately and proceed with available repositories.\n- Do not clone, fork, or download repositories. Analysis is read-only via web browsing.\n- Do not fabricate code snippets or architecture details not found in the source.\n- For large repositories (>10k files), restrict analysis scope to the target feature's relevant modules only.\n- Always record the license type of each analyzed repository.\n- Explicitly state when analysis is based on inference rather than direct code reading.\n- Do not compare code quality subjectively without citing specific patterns or metrics.\n- When quoting code snippets, always include the file path and approximate line range.\n\n---\n\n## Failure Patterns\n\nCommon bad outputs:\n\n- Listing repositories without actually reading their source code\n- Producing architecture descriptions based on README alone without verifying against actual code\n- Comparing projects at different abstraction levels (one at code level, another at documentation level)\n- Missing the comparison table in compare mode\n- Ignoring error handling and edge case analysis\n- Recommending a pattern without explaining trade-offs\n- Analyzing the entire repository instead of focusing on the target feature\n- Presenting outdated information from an old branch instead of the default branch\n- Failing to distinguish between the project's public API and internal implementation\n\n---\n\n## Example 1 (Minimal Context)\n\n**Input:**\n\nFeature: real-time collaboration (CRDT-based)\nMode: compare\nRepositories: not specified\n\n**Output:**\n\n1. Repository Overview: Yjs (14k stars, TypeScript), Automerge (3k stars, Rust+WASM), Diamond-types (1k stars, Rust)\n2. Source Tree Map: core CRDT modules, network sync layers, storage adapters per project\n3. Architecture Analysis:\n   - Yjs: monolithic core with plugin-based extensions (awareness, undo-manager)\n   - Automerge: Rust core compiled to WASM with thin JS wrapper\n   - Diamond-types: pure Rust, optimized for text editing performance\n4. Key Code Walkthrough: CRDT merge logic, operation encoding, conflict resolution per project\n5. Technology Stack: Yjs (pure TS, no deps), Automerge (Rust + wasm-bindgen), Diamond-types (Rust, no runtime deps)\n6. Comparison Table: architecture pattern, merge algorithm (Yjs: YATA, Automerge: RGA variant, Diamond: Fugue), memory model, WASM usage, extensibility, document size overhead\n7. Strategic Recommendation: Yjs for rapid integration with existing JS ecosystem; Automerge for cross-platform with Rust performance; Diamond-types if text-only editing with maximum performance is the priority\n\n---\n\n## Example 2 (Realistic Scenario)\n\n**Input:**\n\nFeature: authentication middleware implementation\nMode: deep-dive\nRepository: https:\u002F\u002Fgithub.com\u002Fnextauthjs\u002Fnext-auth\nFocus: how session management and JWT handling are implemented internally\n\n**Output:**\n\n1. Repository Overview: NextAuth.js — 25k stars, TypeScript, ISC license, actively maintained with weekly releases\n2. Source Tree Map:\n   ```\n   packages\u002F\n   ├── core\u002Fsrc\u002F          — Framework-agnostic auth logic\n   │   ├── lib\u002F           — Session, CSRF, callback handlers\n   │   ├── providers\u002F     — OAuth, Email, Credentials provider implementations\n   │   └── types.ts       — Core type definitions\n   ├── next-auth\u002Fsrc\u002F     — Next.js-specific adapter\n   └── frameworks-*\u002F      — SvelteKit, Express adapters\n   ```\n3. Architecture Analysis: Provider pattern with framework adapters. Core auth logic is framework-agnostic in `packages\u002Fcore\u002F`, each framework has a thin adapter layer. Session handling branches into JWT (stateless) and database (stateful) strategies via a strategy interface.\n4. Key Code Walkthrough:\n   - `packages\u002Fcore\u002Fsrc\u002Flib\u002Factions\u002Fsession.ts` — Session retrieval: decodes JWT or queries DB adapter based on `session.strategy` config\n   - `packages\u002Fcore\u002Fsrc\u002Fjwt.ts` — JWT encode\u002Fdecode using `jose` library, supports JWE encryption\n   - `packages\u002Fcore\u002Fsrc\u002Flib\u002Factions\u002Fcallback\u002Findex.ts` — OAuth callback flow: validates state, exchanges code for tokens, calls user-defined callbacks\n   - `packages\u002Fcore\u002Fsrc\u002Fproviders\u002Foauth.ts` — Generic OAuth provider with PKCE support, token endpoint configuration\n5. Technology Stack: TypeScript 5.x, `jose` for JWT\u002FJWE, `oauth4webapi` for OAuth 2.0, `@panva\u002Fhkdf` for key derivation, Turborepo monorepo, Vitest for testing\n6. Findings Summary:\n   - Mermaid architecture diagram showing Core → Provider → Adapter → Framework layer relationships\n   - JWT flow: request → session middleware → decode JWT → validate expiry → attach to context → call user callback\n   - Design decisions: framework-agnostic core enables multi-framework support; provider pattern allows easy addition of new OAuth providers; adapter pattern abstracts database operations\n7. Strategic Recommendations:\n   - Adopt the framework-agnostic core + thin adapter pattern for multi-framework auth libraries\n   - The provider pattern with typed configuration objects is highly extensible — recommended for any pluggable authentication system\n   - Consider: JWT-only strategy avoids database dependency but complicates token revocation; NextAuth solves this with short-lived JWTs + rotation\n\n---\n\n## Notes\n\n**FAST MODE** (only if explicitly requested):\n\n- Limit to 3 key files per repository\n- Skip Step 5 (Technology Stack Analysis)\n- In compare mode, limit to 3 repositories maximum\n\n---\n\n- This skill complements `competitive-feature-benchmark` which operates at the UX\u002Finteraction level. Use both together for a complete picture: code-level implementation (this skill) + user-facing design (competitive-feature-benchmark).\n- For very large repositories, consider analyzing only the most recent tagged release rather than the HEAD of the default branch to ensure stability of analysis.\n- GitHub API has rate limits (60 requests\u002Fhour unauthenticated, 5000\u002Fhour with token). If rate-limited, switch to `raw.githubusercontent.com` URLs or `WebFetch` on regular GitHub pages.\n\n",{"name":5,"license":15,"metadata":49,"description":54,"compatibility":55},{"type":50,"category":51,"maturity":52,"estimated_time":53},"execution","research","draft","20 min","Explore open-source GitHub repository source trees via web browsing to analyze and compare feature implementations at the code level. Supports two modes: cross-project comparison and single-project deep dive. Use when evaluating how OSS projects implement a specific feature, choosing architecture patterns, or benchmarking implementation strategies.\n",[56,57],"Claude Code","Cursor","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fcomsky\u002Fremy-skill-recipes\u002Foss-code-analysis",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill oss-code-analysis",{"tool":73,"command":74},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill oss-code-analysis",{"tool":76,"command":77},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill oss-code-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fcomsky\u002Fremy-skill-recipes\u002Foss-code-analysis\u002FSKILL.md",true,[],[82,96,106,115,121,128],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":92,"publishedAt":44},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[87],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[93,94,95],"model","model hierarchy","model hierarchy skill",{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":102,"publishedAt":44},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[101],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},[103,104,105],"MCP","zoom","zoom mcp",{"skillNo":107,"name":108,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":44},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[112,113,114,104],"sdk","zoom apps sdk","apps",{"skillNo":116,"name":117,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":44},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[117],{"skillNo":122,"name":123,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":127,"publishedAt":44},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[126],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},[123],{"skillNo":129,"name":130,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":44},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[130]]