-
Notifications
You must be signed in to change notification settings - Fork 13
[codex] add Coven task manager skill #184
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 all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2e78977
feat(skills): add Coven task manager
BunsDev 2b72012
Potential fix for pull request finding
BunsDev 8a073a8
Potential fix for pull request finding
BunsDev c450924
Potential fix for pull request finding
BunsDev 6a796cb
fix(skills): address task manager review feedback
BunsDev 3962fd0
fix(skills): omit pinned model from task automations
BunsDev 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
Some comments aren't visible on the classic Files Changed page.
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 |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| --- | ||
| name: coven-task-manager | ||
| description: Keep Coven task boards fresh by auditing stale, blocked, active, review, and completed work; use for scheduled task hygiene, task triage, and dynamic task-management runs. | ||
| --- | ||
|
|
||
| # Coven Task Manager | ||
|
|
||
| Use this skill when asked to manage, refresh, audit, triage, or summarize Coven tasks, or when a scheduled automation asks for task-board freshness. | ||
|
|
||
| ## Sources | ||
|
|
||
| Start with the Cave task board from the skill directory: | ||
|
|
||
| ```bash | ||
| node ./task-manager.mjs report | ||
| ``` | ||
|
|
||
| The helper reads `~/.coven/cave-board.json` and writes `~/.coven/task-manager/freshness-report.md` by default. | ||
|
|
||
| If the canonical repo path is different, run the helper from this skill directory: | ||
|
|
||
| ```bash | ||
| node ./task-manager.mjs report --coven-home ~/.coven | ||
| ``` | ||
|
|
||
| ## Workflow | ||
|
|
||
| 1. Load the task board and build a freshness report. | ||
| 2. Inspect the report sections in this order: `Stale Running`, `Needs Human`, `Ready For Review`, then `Next Actions`. | ||
| 3. Read `Thread Coordination` before touching individual cards. Treat it as the concurrency control surface for simultaneous sessions. | ||
| 4. For every active/review/blocked thread, build a small ledger: card id/title, familiar, session id, repo/branch/worktree if known, last evidence checked, current state, and one next action. | ||
| 5. Resolve collisions before dispatching new work: | ||
| - If multiple cards share a session, resume that session once and update all linked cards from the same evidence. | ||
| - If one familiar has multiple active lanes, choose the primary lane and mark the rest as waiting, review, or blocked with a reason. | ||
| - If multiple lanes touch the same repo or branch, verify branch/worktree ownership before allowing parallel writes. | ||
| - Prefer resuming a viable linked session over starting a new thread; start a fresh thread only when no current session can be resumed. | ||
| 6. For each task that needs action, gather concrete evidence before changing state: linked sessions, git branches, PRs, CI, user messages, or task notes. | ||
| 7. Keep task state fresh: | ||
| - Move stale running work only when evidence shows it is blocked, ready for review, done, or abandoned. | ||
| - Keep blocked tasks explicit: include the blocker, owner, and smallest next unblock action. | ||
| - Move review tasks only after the actual review/CI state is checked. | ||
| - Mark work done only when merge, delivery, or acceptance evidence exists. | ||
| 8. Update the freshness report after meaningful changes. | ||
|
|
||
| ## Guardrails | ||
|
|
||
| - Do not delete, archive, or bulk-close tasks unless the user explicitly asks. | ||
| - Do not invent blockers or progress. | ||
| - Do not mark a task done from memory alone; verify current state first. | ||
| - Preserve user-written task notes. Append concise evidence instead of replacing useful context. | ||
| - If evidence is missing, leave the task in place and write the missing check as the next action. | ||
| - Do not spawn parallel work for the same repo/branch/session just because several cards look stale; reconcile the existing thread ledger first. | ||
|
|
||
| ## Default Automations | ||
|
|
||
| Install the default Codex automation set with: | ||
|
|
||
| ```bash | ||
| node ./task-manager.mjs install-default-automations --status PAUSED | ||
| ``` | ||
|
|
||
| The templates are: | ||
|
|
||
| - `coven-task-freshness-daily` — daily sweep of stale, blocked, review, and active work. | ||
| - `coven-task-blocked-escalation` — weekday blocked-task escalation. | ||
| - `coven-task-weekly-cleanup` — weekly summary and cleanup recommendations. | ||
|
|
||
| Use `--status ACTIVE` only when the user wants the automations enabled immediately. | ||
|
|
||
| ## Local Market Install | ||
|
|
||
| To make the skill visible to the local Cave Skills market, symlink it into Coven home: | ||
|
|
||
| ```bash | ||
| node ./task-manager.mjs install-local --status PAUSED | ||
| ``` | ||
|
|
||
| The Cave market reads `~/.coven/skills/*/metadata.json` through the Coven daemon. |
18 changes: 18 additions & 0 deletions
18
skills/coven-task-manager/automation-templates/coven-task-blocked-escalation.toml
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,18 @@ | ||
| version = 1 | ||
| id = "coven-task-blocked-escalation" | ||
| kind = "cron" | ||
| name = "Coven Blocked Task Escalation" | ||
| status = "PAUSED" | ||
| rrule = "RRULE:FREQ=WEEKLY;BYHOUR=10;BYMINUTE=0;BYDAY=MO,TU,WE,TH,FR" | ||
| reasoning_effort = "high" | ||
| execution_environment = "worktree" | ||
| cwds = [] | ||
| tags = ["coven", "tasks", "blocked"] | ||
| prompt = '''Use the `coven-task-manager` skill to review blocked Coven tasks. | ||
|
|
||
| Goals: | ||
| - Find blocked cards, cards marked needsHuman, and stale running cards. | ||
| - Use Thread Coordination to avoid escalating the same live session or repo collision multiple times. | ||
| - Separate real blockers from stale bookkeeping. | ||
| - Prepare a short escalation list with owners, evidence, and the smallest next unblock action. | ||
| - Do not close, delete, or mark tasks done without concrete evidence.''' |
21 changes: 21 additions & 0 deletions
21
skills/coven-task-manager/automation-templates/coven-task-freshness-daily.toml
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,21 @@ | ||
| version = 1 | ||
| id = "coven-task-freshness-daily" | ||
| kind = "cron" | ||
| name = "Coven Task Freshness Daily" | ||
| status = "PAUSED" | ||
| rrule = "RRULE:FREQ=WEEKLY;BYHOUR=8;BYMINUTE=30;BYDAY=SU,MO,TU,WE,TH,FR,SA" | ||
| reasoning_effort = "high" | ||
| execution_environment = "worktree" | ||
| cwds = [] | ||
| tags = ["coven", "tasks", "freshness"] | ||
| prompt = '''Use the `coven-task-manager` skill to run the daily Coven task freshness sweep. | ||
|
|
||
| Goals: | ||
| - Load the current Cave task board from the local Coven home. | ||
| - Identify stale running tasks, blocked tasks that need human attention, review-ready work, and stale backlog/inbox items. | ||
| - Read the Thread Coordination section first and reconcile duplicated sessions, overloaded familiars, and repo/branch collisions before spawning or resuming work. | ||
| - Update the task freshness report. | ||
| - Only edit task state when there is concrete evidence from the board, linked sessions, git, CI, or explicit user instructions. | ||
|
|
||
| Deliverable: | ||
| - A concise task freshness summary with next actions and any task cards that need human attention.''' |
18 changes: 18 additions & 0 deletions
18
skills/coven-task-manager/automation-templates/coven-task-weekly-cleanup.toml
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,18 @@ | ||
| version = 1 | ||
| id = "coven-task-weekly-cleanup" | ||
| kind = "cron" | ||
| name = "Coven Weekly Task Cleanup" | ||
| status = "PAUSED" | ||
| rrule = "RRULE:FREQ=WEEKLY;BYHOUR=17;BYMINUTE=0;BYDAY=FR" | ||
| reasoning_effort = "high" | ||
| execution_environment = "worktree" | ||
| cwds = [] | ||
| tags = ["coven", "tasks", "cleanup"] | ||
| prompt = '''Use the `coven-task-manager` skill for the weekly Coven task-board cleanup. | ||
|
|
||
| Goals: | ||
| - Summarize done, review, blocked, active, inbox, and backlog cards. | ||
| - Summarize simultaneous threads by session, familiar, repo, and branch, then recommend which lanes to resume, park, or merge. | ||
| - Detect duplicate or stale cards. | ||
| - Suggest archive/delete candidates, but do not perform destructive cleanup unless explicitly approved. | ||
| - Update the task freshness report with changes since the last run.''' |
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,13 @@ | ||
| { | ||
| "name": "coven-task-manager", | ||
| "description": "Comprehensive Coven task-board freshness: audits stale running work, blocked tasks, review queues, active work, and completed-task hygiene.", | ||
| "version": "0.1.0", | ||
| "author": "OpenCoven Team", | ||
| "category": "operations", | ||
| "tags": ["tasks", "automation", "freshness", "triage", "cave"], | ||
| "defaultAutomations": [ | ||
| "coven-task-freshness-daily", | ||
| "coven-task-blocked-escalation", | ||
| "coven-task-weekly-cleanup" | ||
| ] | ||
| } |
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.