[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115417":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},115417,"oil-dev-skills","oil-oil\u002Foil-dev-skills","oil-oil","给 AI 编程 Agent 用的开发流程：探索、方案、委托、审查、治理五个 Skill",null,"Python",144,14,62,0,6,72,40,82.73,"MIT License",false,"main",true,[],"2026-11-18 15:47:56","2026-11-23 17:22:50","English · [中文](README.zh-CN.md)\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fassets\u002Freadme\u002Fhero.svg\" width=\"100%\" alt=\"oil-dev-skills: a development workflow for AI coding agents. Explore and plan on main; delegate implementation and run independent code review in a worktree; pass the merge gate back to main, then govern. After exploration, a separate bug-fix branch finds the root cause before fixing and merges back to main.\">\n\u003C\u002Fp>\n\n`oil-dev-skills` is a set of six Agent Skills that work together. Once installed in a skill-compatible coding agent such as Claude Code or Codex, you can invoke them in plain language. They break a change into five steps: map the existing code, write a plan you can actually read, hand off implementation under a clear contract, review the diff in a clean context, and tidy up docs, tests, and worktrees at the end of a milestone. For bugs with an unknown cause, a dedicated path finds the root cause before changing production code.\n\nEach skill also works on its own. Small changes don't need the full workflow—the agent explains the change, edits the code directly, and runs the relevant quick tests.\n\n## What problems it solves\n\nAs a project grows, asking an AI agent to edit code directly often runs into the same issues. Each one maps to a specific practice in this workflow:\n\n- **Writing duplicate helpers before understanding the existing code.** `oil-explore` traces call chains in read-only mode first and lists existing components and functions you can reuse.\n- **Plans that read like low-level implementation dumps.** `oil-plan` explains changes in terms of what changes externally, what gets reused, and what is out of scope this time, pulling out the trade-offs that need your call.\n- **Running the full test suite after every two lines of code.** The dispatch contract limits mid-coding checks to second-level compile, typecheck, and lint runs, followed by quick tests related to the change once coding is done. Full test suites and builds wait until the merge gate.\n- **Diffs that drift beyond the agreed plan or touch restricted directories.** Before review starts, a helper script compares the diff against the confirmed plan and project conventions and flags those files upfront.\n- **Patching symptoms while the same bug pattern remains elsewhere.** `oil-bug-fix` reproduces the failure and traces the root cause so the fix happens where bad data originates. It then checks whether the issue is systemic—if so, it scans the repo, fixes matching cases together, and proposes a deterministic check or review rule so it doesn't come back.\n- **`AGENTS.md` growing bloated, drifting out of sync with the code, and stale worktrees piling up.** `oil-govern` trims `AGENTS.md` into a task-routed entrypoint, deduplicates rules copied across topic docs and repo-local skills, and checks documentation links, freshness, test tiering, and worktree merge status before proposing cleanup.\n- **Losing track of branches: an agent editing in another worktree, local `main` drifting from the remote, work that only exists on one machine.** `oil-govern` builds a branch board that shows where every branch lives, whether it is pushed and merged, what it changes, and what to do with it, with its own recommendation for each one.\n\n## Check scope before reviewing\n\nHere is a real run on a sample repository. Its `AGENTS.md` marks `src\u002Fstorage\u002F` as high-risk and `vendor\u002F` as do-not-edit, while the confirmed plan only allows changes under `src\u002Fexport\u002F**` and `tests\u002F**`. Once implementation finishes, `oil-code-review`'s helper script flags three groups of files before the review itself begins:\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fassets\u002Freadme\u002Freview-check.svg\" width=\"100%\" alt=\"On the left are the dev profile in AGENTS.md and the allowed scope from the confirmed plan. On the right is the output from review_helper.py: src\u002Fstorage\u002Fproject_file.py falls under a high-risk path, vendor\u002Fffmpeg\u002Fwrap.py falls under a do-not-edit path, and 3 files fall outside the plan's allowed scope.\">\n\u003C\u002Fp>\n\nThe review then handles each group differently:\n\n- **High-risk paths** go to an agent with a clean context for an independent deep review.\n- **Do-not-edit paths** are treated as blocking issues unless the confirmed plan explicitly allowed them.\n- **Files outside the plan scope** are checked one by one: necessary additions are explained to you, while opportunistic drive-by edits are marked as blocking.\n\n## The six skills\n\n- **Explore · [`oil-explore`](skills\u002Foil-explore\u002FSKILL.md)**: Takes a read-only inventory of directory size, convention files, and working test and build commands. On larger repositories, it dispatches read-only sub-agents by module to trace call chains in parallel.\n- **Plan · [`oil-plan`](skills\u002Foil-plan\u002FSKILL.md)**: Scales across three levels. Small edits go straight to code; regular features align on a plan in chat; cross-module changes become a written spec that can fan out across multiple worktrees. Regular and cross-module plans get an independent critique before you see them. After implementation, it verifies the result and merges through a closing checklist. When you ask for sub-agent mode, the main agent only makes decisions—splitting work, writing contracts, making calls, and accepting results—while sub-agents do all the exploring, coding, debugging, review, and gate runs.\n- **Delegate · [`oil-delegate`](skills\u002Foil-delegate\u002FSKILL.md)**: Hands off a well-bounded task to locally installed CLI agents such as Claude Code, Codex, or Antigravity, returns structured results to your current session, and lets you follow up in the same thread. It can remember which agent you prefer for code review, plan critique, debugging consultations, and implementation.\n- **Review · [`oil-code-review`](skills\u002Foil-code-review\u002FSKILL.md)**: Reviews code diffs only. It checks scope drift against the plan first, then grades by risk: lightweight checks for minor UI tweaks, and a five-part deep review in a clean context for core logic and high-risk changes—covering end-to-end business and build verification, reuse, redundancy, runtime failure modes, and security and compatibility.\n- **Bug Fix · [`oil-bug-fix`](skills\u002Foil-bug-fix\u002FSKILL.md)**: Handles bugs whose cause isn't obvious yet. It reproduces the issue with a failing test, locates the root cause through git bisect, backward value tracing, or controlled experiments, and fixes where the bad state starts. If the pattern is systemic, it scans the repo to fix matching spots together and proposes an automated check or review rule. Small fixes with a known cause go straight through `oil-plan`.\n- **Govern · [`oil-govern`](skills\u002Foil-govern\u002FSKILL.md)**: Audits documentation, test tiers, and git worktrees, shows a branch board with a recommendation for every unmerged branch, helps generate and maintain your project's dev profile, and turns hard project rules into deterministic repo checks. The board is drawn as UI when your agent can render it, and as Markdown otherwise.\n\n## Installation\n\nSend this to your agent:\n\n```text\nPlease install this skill repository for me: https:\u002F\u002Fgithub.com\u002Foil-oil\u002Foil-dev-skills\n```\n\nOr install the full set from the terminal:\n\n```bash\nnpx skills add oil-oil\u002Foil-dev-skills\n```\n\nTo install a single skill, pass `--skill`:\n\n```bash\nnpx skills add oil-oil\u002Foil-dev-skills --skill oil-code-review\n```\n\nNo extra configuration is required after installation:\n\n- The scripts in `oil-explore`, `oil-plan`, `oil-code-review`, and `oil-govern` only inspect Git state and file structure. They need no API keys and work with any programming language.\n- On first use, `oil-delegate` detects which CLI agents are installed on your machine and asks which ones you want to enable.\n- When a task type such as code review or plan critique comes up for the first time, `oil-delegate` asks once which agent should handle it and remembers your choice. You can also say things like \"Always use codex for reviews from now on.\" These preferences live in `oil-delegate`'s local config and are never written into the repository.\n- If you previously installed [oil-delegate](https:\u002F\u002Fgithub.com\u002Foil-oil\u002Foil-delegate) on its own, keep only one copy after installing the full set so you don't end up with duplicate skill names.\n\n## Usage\n\nTell your agent what you want in plain language. A cross-module feature typically follows this order:\n\n```text\nUse oil-explore to trace the full video export call chain in this repo and list existing components and helpers we can reuse.\n```\n\n```text\nI want to add multi-select batch splitting to the timeline. Use oil-plan to write a plan I can easily follow and list the trade-offs that need my decision. Don't change any code yet.\n```\n\n```text\nThe plan looks good. Use oil-delegate to have codex implement it according to the plan and run the relevant quick tests when done.\n```\n\n```text\nUse oil-code-review to review the changes on the current branch, focusing on core logic and packaged runtime behavior.\n```\n\n```text\nUse oil-plan in sub-agent mode for this feature: you only make decisions, and sub-agents do the exploring, coding, and review.\n```\n\n```text\nUse oil-govern to audit the repository—check for stale docs, review the test tiering, and see which worktrees can be cleaned up.\n```\n\n```text\nUse oil-govern to show me the branch board: where each branch is, what it changes, and what I should do with it.\n```\n\nOnce review passes, `oil-plan` runs the merge gate from its closing checklist, commits and merges according to the repo's conventions, and cleans up the merged worktree.\n\nWhen you run into a bug whose cause isn't clear, describe the symptom directly:\n\n```text\nUse oil-bug-fix to investigate: overseas users report that some orders in the daily report are counted under the previous day, and we haven't been able to reproduce it locally.\n```\n\n## Project dev profile (recommended)\n\nAdd a section whose heading contains `oil-dev` to the target repository's `AGENTS.md` to record your quick test command, merge gate, high-risk paths, and do-not-edit paths:\n\n```markdown\n## Dev profile (oil-dev)\n\n- quick-test: `pytest tests\u002F{target} -q`\n- merge-gate: `make ci`\n- high-risk: `src\u002Fstorage\u002F**`, `src\u002Fauth\u002F**`, `migrations\u002F`\n- do-not-edit: `vendor\u002F`, `src\u002Fgenerated\u002F**`\n```\n\nOnce added, the skills read it directly: `oil-explore` stops guessing test commands, `oil-plan` copies `quick-test` and `merge-gate` into the dispatch contract, and `oil-code-review` flags changes in `high-risk` and `do-not-edit` paths as shown above. Without this section, each skill falls back to its built-in defaults.\n\nIf you'd rather not write it by hand, tell your agent: \"Use oil-govern to generate a dev profile for this repo.\" See [dev-profile.md](skills\u002Foil-govern\u002Freferences\u002Fdev-profile.md) for the format and generation steps.\n\n## Personal preferences\n\nSettings that apply only to you live in `~\u002F.oil-dev\u002Fpreferences.md` on your machine. All skills in this collection share that single file, with one section per skill written in plain language. Notes directly under a skill heading apply across all host agents, while notes under `### \u003Chost-name>` apply only to that host. This file stays out of project repositories; team-wide conventions still belong in the dev profile above.\n\nCurrently, `oil-plan` reads it to decide whether sub-agent mode is on by default, and `oil-explore` reads it when fanning out parallel exploration. You can specify how each host should dispatch exploration sub-agents: which mechanism to use, which model to pick, the maximum number of sub-agents, and how to clean them up afterward.\n\n```markdown\n## oil-plan\n\nUse sub-agent mode: you only make decisions.\n\n## oil-explore\n\nAt most 3 exploration sub-agents.\n\n### antigravity\n\n- Dispatch exploration sub-agents with swarm, using `\u003Cmodel-id>` for each worker.\n- Kill the workers once all briefs are collected.\n\n### claude-code\n\n- Use the Explore sub-agent with the haiku model.\n```\n\nYou can edit the file directly or tell your agent to save a preference for you:\n\n```text\nFrom now on, when using oil-explore in Claude Code, run exploration sub-agents on haiku and dispatch at most 3 of them.\n```\n\nAnything left unspecified uses the default: 2–3 sub-agents on a fast, lightweight model. Preferences for `oil-delegate` (which CLI agents are enabled and which agent handles each task type) are stored in its own config file rather than here.\n\n## Permissions, privacy, and boundaries\n\n- `oil-explore` is strictly read-only. `oil-code-review` and `oil-govern` are also read-only while gathering facts; before editing docs, deleting tests, or removing worktrees, they show the evidence and wait for your confirmation.\n- `oil-plan` does not start cross-module code edits until open trade-offs have your sign-off.\n- Before important operations—merging into the main branch, bulk deletes, deleting branches or worktrees with unmerged commits, rewriting pushed history, changing data formats or database schemas, releasing, or changing public interfaces—an independent read-only agent checks what will be affected, whether it can be undone, and what might be missing. You then confirm with that check in front of you.\n- While isolating a root cause, `oil-bug-fix` only adds tests and temporary diagnostic logs without altering production behavior; it asks before adding automated checks or updating `AGENTS.md` or `REVIEW.md`.\n- When `oil-delegate` runs code reviews, plan critiques, or debugging consultations, it uses read-only mode automatically and verifies afterward that the working tree is untouched. Before dispatching a task that writes code, it requires a clean working tree or an isolated worktree.\n- Prompts and files handed to external CLI agents are sent to their respective model providers and may incur usage costs. Do not include secrets or credentials in task prompts.\n- All helper scripts rely only on the Python 3.10+ standard library. They have been tested on macOS; Linux and Windows have not yet been verified on physical machines.\n- This collection does not handle packaging or release publishing. Signing, notarization, and deployment are product-specific and are best kept as scripts in the target repository.\n\n\u003Cdetails>\n\u003Csummary>Maintenance and testing\u003C\u002Fsummary>\n\nRun all unit tests without calling any models (finishes in under a minute):\n\n```bash\npython3 scripts\u002Fverify_repo.py\n```\n\nIf you have [oil-skill-creator](https:\u002F\u002Fgithub.com\u002Foil-oil\u002Foil-skill-creator) installed, pass `--validator \u003Cpath-to-oil-skill-creator>\u002Fscripts\u002Fvalidate_skill.py` to also check each skill against public authoring guidelines.\n\n`skills\u002Foil-delegate` stays in sync with the standalone [oil-delegate](https:\u002F\u002Fgithub.com\u002Foil-oil\u002Foil-delegate) repository. When maintaining both, verify they match with:\n\n```bash\npython3 scripts\u002Fsync_delegate.py --check\n```\n\n\u003C\u002Fdetails>\n\n## License\n\n[MIT](LICENSE)\n","oil-dev-skills 是一套面向 AI 编程 Agent 的结构化开发流程技能集，将代码变更拆解为探索、方案、委托、审查、治理五个核心阶段，并额外支持根因驱动的缺陷修复。它通过只读代码分析、可读性优先的变更计划、受限上下文的实现委托、基于契约的差异校验、自动化文档与工作树治理等机制，提升 AI 代理在中大型项目中的协作可靠性与可追溯性。适用于需要长期维护、多模块耦合、测试成本高或合规要求强的 Python 工程场景，尤其适合集成在 Claude Code、Codex 等支持 Skill 扩展的智能编程助手环境中。",2,"2026-11-24 04:50:57","CREATED_QUERY"]