-
Notifications
You must be signed in to change notification settings - Fork 2
Move plan-manager as a script #48
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
Open
isolomatov-gd
wants to merge
5
commits into
main
Choose a base branch
from
feature/plan-manager-script
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ | |
| - research | ||
| - context-engineering | ||
| - planning | ||
| - plan-manager | ||
| - reasoning | ||
| - questioning | ||
| - tech-specs | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| --- | ||
| name: plan-manager | ||
| description: "Rosetta skill for plan creation, tracking, and execution coordination via local JSON files." | ||
| dependencies: node.js | ||
| disable-model-invocation: false | ||
| user-invocable: true | ||
| argument-hint: feature-name plan-name | ||
| allowed-tools: Bash(node:*) | ||
| model: claude-sonnet-4-6, gpt-5.4-medium, gemini-3.1-pro-preview | ||
| tags: | ||
| - plan-manager | ||
| - plan-manager-create | ||
| - plan-manager-use | ||
| baseSchema: docs/schemas/skill.md | ||
| --- | ||
|
|
||
| <plan-manager> | ||
|
|
||
| <role> | ||
|
|
||
| Senior execution planner and tracker for plan-driven workflows. | ||
|
|
||
| </role> | ||
|
|
||
| <when_to_use_skill> | ||
|
|
||
| Primary plan manager for orchestrators and subagents. Creates, tracks, and executes plans as local JSON files. | ||
|
|
||
| </when_to_use_skill> | ||
|
|
||
| <core_concepts> | ||
|
|
||
| - Rosetta prep steps completed | ||
| - Plan file lives in FEATURE PLAN folder: `<feature_plan_folder_full_path>/plan.json` | ||
| - Helper CLI: `node <plan_manager_full_path>/plan_manager.js <cmd> <feature_plan_folder_full_path>/plan.json [args...]` — no npm install needed | ||
| - Always use full absolute paths for both `plan_manager.js` and the plan file | ||
| - Seven commands: `help`, `create`, `next`, `update_status`, `show_status`, `query`, `upsert` | ||
| - Resume behavior: `next` returns `in_progress` steps first with `resume: true`, then `open` steps with `resume: false` | ||
| - Status propagation: bottom-up (steps → phases → plan); plan root is always derived | ||
| - ACQUIRE `plan-manager/assets/pm-schema.md` FROM KB for data structure reference | ||
|
|
||
| </core_concepts> | ||
|
|
||
| <process> | ||
|
|
||
| **Setup (every session):** | ||
|
|
||
| - If context already contains `RUNNING AS A PLUGIN`: `plan_manager.js` is already available at `<skill_base_dir>/assets/plan_manager.js` — execute directly, no copy needed | ||
| - Otherwise: ACQUIRE `plan-manager/assets/plan_manager.js` FROM KB → write to AGENTS TEMP folder | ||
|
|
||
| **Orchestrator flow:** | ||
|
|
||
| 1. Create plan: `node <plan_manager_full_path>/plan_manager.js create <feature_plan_folder_full_path>/plan.json <json>` — see pm-schema.md for JSON structure | ||
| 2. Upsert phases and steps: `node <plan_manager_full_path>/plan_manager.js upsert <feature_plan_folder_full_path>/plan.json entire_plan <json>` | ||
| 3. Delegate steps to subagents — pass plan file path and step IDs | ||
| 4. Loop: call `next` until `plan_status: complete` and `count: 0` | ||
|
|
||
| **Subagent flow:** | ||
|
|
||
| 1. Get next steps: `node <plan_manager_full_path>/plan_manager.js next <feature_plan_folder_full_path>/plan.json [limit]` | ||
| 2. Check `resume` flag — if `true`, continue interrupted work; if `false`, start fresh | ||
| 3. Execute step | ||
| 4. Update: `node <plan_manager_full_path>/plan_manager.js update_status <feature_plan_folder_full_path>/plan.json <step-id> complete` | ||
| 5. Repeat from step 1 | ||
|
|
||
| </process> | ||
|
|
||
| <validation_checklist> | ||
|
|
||
| - `node <plan_manager_full_path>/plan_manager.js help` exits without error | ||
| - `show_status` output: plan root status is derived (never manually set) | ||
| - `next` output: `in_progress` steps appear before `open` steps when both exist | ||
| - `show_status` phase status matches aggregate of its steps after `update_status` | ||
|
|
||
| </validation_checklist> | ||
|
|
||
| <pitfalls> | ||
|
|
||
| - Not checking `resume` flag on `next` results — causes duplicate work on resumed sessions | ||
| - Forgetting `update_status` after step completion — plan remains stale | ||
| - Plan root status cannot be set directly — it is always derived from phases | ||
|
|
||
| </pitfalls> | ||
|
|
||
| <resources> | ||
|
|
||
| - Asset: ACQUIRE `plan-manager/assets/pm-schema.md` FROM KB — plan JSON structure | ||
| - Flow: USE FLOW `adhoc-flow-with-plan-manager` | ||
|
|
||
| </resources> | ||
|
|
||
| </plan-manager> | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with a comment from Rosetta Triage Reviewer. The file with workflow flow adhoc-flow-with-plan-manager was deleted