Code Feeder

当用户需将代码提供给外部 AI(重构/分析/修复)时激活。自动收集代码、记录意图、生成上下文文档。支持增量合并。

6 stars 2 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Ecrypted-Data/Code_Feeder_Skill --skill code-feeder
Manual install
git clone --depth 1 https://github.com/Ecrypted-Data/Code_Feeder_Skill.git /tmp/Code_Feeder_Skill
mkdir -p ~/.claude/skills
cp -r /tmp/Code_Feeder_Skill/. ~/.claude/skills/code-feeder

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Code Feeder Skill

**目标**:生成包含**用户意图**和**关键代码**的高质量 Markdown 文档。
**脚本路径**:`~/.claude/skills/code-feeder/scripts/` (若不存在则搜索 `code_collector.py`)

## 🧠 核心法则

1.  **意图第一**:必须询问收集目的(如"重构登录"),并写入文档。
2.  **精准采集**:根据意图挑选代码。小文件批量导入,大文件提取片段。
3.  **闭环补全**:工具反馈"跳过"的文件,**必须**用 `--append` 模式提取关键片段补全。

## ⚙️ 模式决策

| 模式 | 标志 | 适用场景 | 关键参数 |
| :--- | :--- | :--- | :--- |
| **Batch** | `--mode batch` | 小文件/配置文件 | `--files f1 f2` |
| **Snippets** | `--mode snippets` | 大文件(>500KB)/特定函数 | `--target f1 --ranges [...]` |
| **Append** | `--append` | 补全漏掉的文件/增量更新 | (配合 Snippets 使用) |

## 📋 执行流程

### 1. 确认意图
若未提供,询问:"收集代码的具体目的是什么?关注哪些模块?"

### 2. 检测与规划
```bash
python {script_dir}/detect_project.py "{project_path}"
```
*根据输出忽略无关目录,聚焦核心文件。*

### 3. 执行收集
**A. 批量模式 (首选)**
```bash
python {script_dir}/code_collector.py "{project_path}" \
  --mode batch --files src/main.py config.json ... \
  --intent "{user_intent}" --output "ctx.md"
```

**B. 片段模式 (针对大文件/特定逻辑)**
*支持类型: `function`, `class`, `method`, `lines`*
```bash
python {script_dir}/code_collector.py "{project_path}" \
  --mode snippets --target "src/heavy.js" \
  --ranges '[{{"type":"function","name":"login"}}, {{"type":"lines","start":1,"end":50}}]' \
  --intent "{user_intent}" --output "ctx.md"
```

### 4. 补全 (Critical)
检查输出中的 **"⚠️ 跳过的文件"**。若文件重要,**立即**用追加模式提取:
Read the full skill on GitHub

Details

Skill name
code-feeder
Repo updated
20 January 2026

FAQ

What does the Code Feeder skill do?

当用户需将代码提供给外部 AI(重构/分析/修复)时激活。自动收集代码、记录意图、生成上下文文档。支持增量合并。

How do I install the Code Feeder skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add Ecrypted-Data/Code_Feeder_Skill --skill code-feeder. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Code Feeder popular?

It lives in Ecrypted-Data/Code_Feeder_Skill, which has 6 GitHub stars and 2 forks.

Related skills

Adobe Fonts Skill

7

alexh/adobe-fonts-skill

Search Adobe Fonts (Typekit) families, create and manage web kits/projects, and return ready-to-use embed snippets plus CSS font-family values. Use when the user asks to find Adobe fonts, compare font options, set up Typekit for a website, add fonts to kits, publish kits, or generate copy/paste font embed metadata for Codex, Claude Code, or OpenCode workflows.

Software Development

Automotive Syseng

6

duonghvu/automotive-syseng

When the user wants to analyze automotive requirements, check INCOSE/EARS compliance, review MISRA-C code, assess ADAS levels, or verify ISO 26262/AUTOSAR/SOTIF conformance. Also use when the user says 'check requirements', 'EARS check', 'INCOSE analysis', 'MISRA check', 'ASIL assessment', 'V-model check', 'requirements breakdown', 'ADAS level', 'AUTOSAR review', 'SOTIF analysis', 'functional safety', or 'requirements quality'. For general code review, see review.

Software Development

Codebase Map

7

rdilruba/codebase-map

Build a persistent, evidence-based map of a software repository inside docs/codebase-map/ - TL;DR, architecture and dependency diagrams in Mermaid, real data flows traced with an archetype-specific strategy, the most important files ("the spine"), a reading order, potentially AI-assisted code, key concepts, and open questions. Five modes - "codebase-map init" builds the full map, "codebase-map update" refreshes it after changes, "codebase-map explain [topic]" covers one feature or domain, "codebase-map trace [flow]" follows one request path, "codebase-map check" reports drift without writing.

Software Development

Ozon API

6

MissiaL/ozon-api

Use for Ozon Seller API and Ozon Performance API work: товары, цены, остатки, FBS/rFBS/FBO, поставки, возвраты, отчёты, финансы, отзывы, чаты, реклама, кампании, статистика, ставки. Triggers: ozon, озон, Ozon API, озон апи, Seller API, реклама на озоне, api-seller.ozon.ru, api-performance.ozon.ru, docs.ozon.ru/api.

Software Development

Mcd Status Codes

7

chaucerj/mcd-status-codes

麦门监控台 —— 主动运维型身体 SRE。把每一笔麦当劳订单判定为 HTTP 状态码(双方向语义宪法 v4.0:18 码 + 3 指标告警),Agent 依据代谢模型(体重/身高/年龄→BMR→TDEE→分餐预算)在咖啡窗与补给窗主动探活提醒:该喝没喝的咖啡判 599 超时、减脂缺口下发 103 下午茶建议、超预算 412 否决、异常订单自动生成 P1-P3 事故复盘。当用户想回顾麦当劳订单、查看热量/营养/健康合规、生成监控面板或状态码报告、听取主动补给提醒、复盘事故或查询自己的 SRE 职级,或询问 1024 程序员节限定玩法时使用。基于麦当劳中国官方 MCP 只读采集,全部数值确定性可复算。

Software Development

Octav API

4

Octav-Labs/octav-api-skill

Integrate with Octav API for cryptocurrency portfolio tracking, transaction history, and DeFi analytics across 50+ blockchain networks. Use when building applications that need to: (1) Track wallet balances and net worth across multiple chains, (2) Query transaction history with filtering and search, (3) Monitor DeFi protocol positions (Aave, Uniswap, etc.), (4) Access historical portfolio snapshots, (5) Analyze token distribution and holdings, (6) Pay per request as an autonomous agent via x402. Triggers on: "Octav API", "crypto portfolio API", "blockchain portfolio tracking", "DeFi analytics

Software DevelopmentIn 2 lists

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.