-
Notifications
You must be signed in to change notification settings - Fork 3
feat: CQRS cache hardening、ai-plan governance #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
914eb3b
docs(agents): 新增 ai-libs 只读参考规则
GeWuYou 66b848c
feat(codex): 新增项目级 boot skill
GeWuYou d54d770
feat(project): 添加GFramework项目配置文件
GeWuYou 4eca2f1
docs(cqrs): 收口 source generator 文档命名空间
GeWuYou ce10c1f
feat(codex): 新增PR评审技能并修复评审问题
GeWuYou 6ab3203
refactor(repo): 重构ai-plan目录语义
GeWuYou 815d917
chore(license): 添加 Mediator 库的 MIT 许可证文件
GeWuYou 5db27fc
docs(skill): 补充 PR review 技能触发词
GeWuYou 97b619c
fix(codex): 优化 FPR 的 API 优先审查流程
GeWuYou ce5a9d5
fix(ai-plan): 修正文档命令示例的 Markdown 歧义
GeWuYou c82518a
docs(ai-plan): 收口公共计划主题索引
GeWuYou c44b066
docs(ai-plan): 修复治理追踪锚点冲突
GeWuYou acd638e
fix(cqrs): 修正恢复主线与评审提示
GeWuYou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| name: gframework-boot | ||
| description: Repository-specific boot workflow for the GFramework repo. Use when Codex needs to start or resume work in this repository from short prompts such as "boot", "continue", "read AGENTS", or "start the next step"; when the user expects Codex to first read AGENTS.md, .ai/environment/tools.ai.yaml, and local-plan tracking files; or when Codex should assess task complexity, decide whether explorer or worker subagents are warranted, and then proceed under the repository's workflow rules. | ||
| --- | ||
|
|
||
| # GFramework Boot | ||
|
|
||
| ## Overview | ||
|
|
||
| Use this skill to bootstrap work in the GFramework repository with minimal user prompting. | ||
| Treat `AGENTS.md` as the source of truth. Use this skill to enforce a startup sequence, not to replace repository rules. | ||
|
|
||
| ## Startup Workflow | ||
|
|
||
| 1. Read `AGENTS.md` before choosing tools, planning edits, or delegating work. | ||
| 2. Read `.ai/environment/tools.ai.yaml` to confirm the preferred local toolchain. | ||
| 3. Inspect `local-plan/todos/` and `local-plan/traces/` before asking the user for missing context. | ||
| 4. Classify the task state: | ||
| - `new`: no matching recovery document exists, or the user is clearly starting fresh work | ||
| - `resume`: a matching todo or trace exists and the user is continuing that thread | ||
| - `recovery`: prior work looks partial, interrupted, or ambiguous and the next safe recovery point must be reconstructed | ||
| 5. Choose the best matching `local-plan` artifacts: | ||
| - Prefer path names or headings that match the user's task wording | ||
| - Break ties by most recently updated trace or todo | ||
| - If ambiguity would materially change implementation, summarize the candidates and ask one concise question | ||
| 6. Classify the task complexity before deciding on subagents: | ||
| - `simple`: one concern, one file or module, no parallel discovery required | ||
| - `medium`: a small number of modules, some read-only exploration helpful, critical path still easy to keep local | ||
| - `complex`: cross-module design, migration, large refactor, or work likely to exceed one context window | ||
| 7. Apply the delegation policy from `AGENTS.md`: | ||
| - Keep the critical path local | ||
| - Use `explorer` with `gpt-5.1-codex-mini` for narrow read-only questions, tracing, inventory, and comparisons | ||
| - Use `worker` with `gpt-5.4` only for bounded implementation tasks with explicit ownership | ||
| - Do not delegate purely for ceremony; delegate only when it materially shortens the task or controls context growth | ||
| 8. Before editing files, tell the user what you read, how you classified the task, whether subagents will be used, and the first implementation step. | ||
| 9. Proceed with execution, validation, and documentation updates required by `AGENTS.md`. | ||
|
|
||
| ## Task Tracking | ||
|
|
||
| For multi-step, cross-module, or interruption-prone work, maintain the repository recovery artifacts instead of keeping state only in chat. | ||
|
|
||
| - Update the active document under `local-plan/todos/` with completed work, validation results, risks, and the next recovery point. | ||
| - Update the matching document under `local-plan/traces/` with key decisions, delegated scope, and the immediate next step. | ||
| - If the task is clearly complex and no recovery artifact exists yet, create one before substantive edits. | ||
|
|
||
| ## Recovery Heuristics | ||
|
|
||
| - If the user says `next step`, `continue`, `继续`, or similar resume language, assume recovery mode and search `local-plan/` first. | ||
| - If the current branch and the newest recovery documents describe the same feature area, prefer resuming that thread. | ||
| - If the repository state suggests in-flight work but no recovery document matches, reconstruct the safest next step from code, tests, and Git state before asking the user for clarification. | ||
|
|
||
| ## Example Triggers | ||
|
|
||
| - `boot` | ||
| - `Use $gframework-boot and continue the current task` | ||
| - `Read AGENTS and local-plan, then start the next step` | ||
| - `继续当前任务,先看 AGENTS.md 和 local-plan` | ||
|
|
||
| ## References | ||
|
|
||
| Read `references/startup-artifacts.md` when you need a quick reminder of the repository entrypoints, task-state heuristics, or delegation defaults without re-reading the entire skill. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| interface: | ||
| display_name: "GFramework Boot" | ||
| short_description: "Bootstrap GFramework repository tasks" | ||
| default_prompt: "Use $gframework-boot to start or resume work in this GFramework repository." |
31 changes: 31 additions & 0 deletions
31
.codex/skills/gframework-boot/references/startup-artifacts.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Startup Artifacts | ||
|
|
||
| ## Required Reads | ||
|
|
||
| - `AGENTS.md` | ||
| - `.ai/environment/tools.ai.yaml` | ||
| - `local-plan/todos/` | ||
| - `local-plan/traces/` | ||
|
|
||
| ## Local-Plan Selection Heuristics | ||
|
|
||
| - Match the user's wording against todo and trace file names first. | ||
| - Prefer the newest matching trace when several candidates describe the same feature area. | ||
| - If one file records a clearer recovery point than a newer but vague file, prefer the clearer recovery point. | ||
|
|
||
| ## Complexity Defaults | ||
|
|
||
| - `simple`: keep everything local, no subagent | ||
| - `medium`: keep design local, optionally use one `explorer` for parallel read-only discovery | ||
| - `complex`: keep architecture and integration local, delegate only bounded non-blocking subtasks | ||
|
|
||
| ## Model Defaults | ||
|
|
||
| - `explorer`: `gpt-5.1-codex-mini` | ||
| - `worker`: `gpt-5.4` | ||
|
|
||
| ## Startup Summary Template | ||
|
|
||
| Use a short update before execution: | ||
|
|
||
| `Read AGENTS.md, the environment inventory, and the relevant local-plan artifacts. This looks like a <task-state> <complexity> task. I will <delegate-or-not> and start with <first-step>.` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,5 +15,6 @@ opencode.json | |
| docs/.omc/ | ||
| docs/.vitepress/cache/ | ||
| local-plan/ | ||
| ai-libs/ | ||
| # tool | ||
| .venv/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.