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.
If the task clearly requires the main agent to keep coordinating multiple parallel subagents while maintaining
ai-plan and reviewing each result, switch to gframework-multi-agent-batch after the boot context is established.
Startup Workflow
- Read
AGENTS.mdbefore choosing tools, planning edits, or delegating work. - Read
.ai/environment/tools.ai.yamlto confirm the preferred local toolchain. - Read
ai-plan/public/README.mdbefore asking the user for missing context. - If
ai-plan/public/README.mdmaps the current branch or worktree to active topics, inspect those topics'todos/andtraces/directories in listed priority order. - If no mapping exists, scan
ai-plan/public/<topic>/todos/andai-plan/public/<topic>/traces/across active topics, and ignoreai-plan/public/archive/unless the user explicitly asks for historical context. - Treat
ai-plan/public/<topic>/archive/as secondary context even for active topics; only read it when the active todo/trace files point there or when the user explicitly asks for historical detail. - If
ai-plan/private/<branch-or-worktree>/exists and is relevant, treat it as private recovery context for the current worktree only and do not assume it should be committed. - Classify the task state:
new: no matching recovery document exists, or the user is clearly starting fresh workresume: a matching todo or trace exists and the user is continuing that threadrecovery: prior work looks partial, interrupted, or ambiguous and the next safe recovery point must be reconstructed
- Choose the best matching
ai-planartifacts:- Prefer topics explicitly mapped from
ai-plan/public/README.md - 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
- Prefer topics explicitly mapped from
- Classify the task complexity before deciding on subagents:
simple: one concern, one file or module, no parallel discovery requiredmedium: a small number of modules, some read-only exploration helpful, critical path still easy to keep localcomplex: cross-module design, migration, large refactor, or work likely to exceed one context window
- Estimate the current context-budget posture before substantive execution:
- account for loaded startup artifacts, active
ai-planfiles, visible diffs, open validation output, and likely next-step output volume - if the task already appears near roughly 80% of a safe working-context budget, prefer closing the current batch, refreshing recovery artifacts, and stopping at the next natural semantic boundary instead of starting a fresh broad slice
- Apply the delegation policy from
AGENTS.md:
- Keep the critical path local
- Use
explorerwithgpt-5.1-codex-minifor narrow read-only questions, tracing, inventory, and comparisons - Use
workerwithgpt-5.4only 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
- If the user explicitly wants the main agent to keep orchestrating multiple workers through several review/integration
cycles, prefer
gframework-multi-agent-batchover ad-hoc delegation
- Before editing files, tell the user what you read, how you classified the task, whether subagents will be used, and the first implementation step.
- 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
ai-plan/public/README.mdwhenever the active topic set or worktree mapping changes. - Update the active public document under
ai-plan/public/<topic>/todos/with completed work, validation results, risks, and the next recovery point. - Update the matching public trace under
ai-plan/public/<topic>/traces/with key decisions, delegated scope, and the immediate next step. - Keep the active todo/trace files concise enough for
bootto use as default entrypoints. When completed, validated stages start piling up, move their detailed history intoai-plan/public/<topic>/archive/and leave archive pointers in the active files. - Move stage-complete artifacts into
ai-plan/public/<topic>/archive/, and move completed topics intoai-plan/public/archive/<topic>/sobootdoes not keep reloading stale context. - Keep worktree-private scratch recovery files under
ai-plan/private/and do not treat them as commit targets. - Never write secrets, machine-specific paths, or other sensitive environment details into any
ai-plan/**artifact. - 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, readai-plan/public/README.mdfirst, then search the mapped active topics before scanning the broader public area. - If the current branch and the mapped active topics describe the same feature area, prefer resuming those topics first.
- 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.
- If the current turn already carries heavy recovery context, broad diffs, or long validation output, prefer a recovery-point update and a clean stop over starting another large slice just because the code task itself remains open.
Example Triggers
bootUse $gframework-boot and continue the current taskRead AGENTS and public ai-plan, then start the next step继续当前任务,先看 AGENTS.md 和 public ai-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.
Source: GeWuYou/GFramework — distributed by TomeVault.