agentleFS
bopodevbopodev/bopo/skills/bopodev-control-plane/SKILL.md

bopodev-control-plane

Skill4 starsChanged 9 months agoMITView on GitHub

Coordinate heartbeat work through a control-plane API: assignments, checkout, comments, status updates, approvals, and delegation. Use this for orchestration only, not domain implementation itself.

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. About 0 are common, 12 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the agent must interact with the control plane for issue coordination (assignment management, workflow state, and …

    line 11
  2. Distinctive:

    Do not use it for coding implementation details.

    line 14
  3. Distinctive:

    If control-plane connectivity is unavailable, do not attempt control-plane mutations.

    line 45
  4. Distinctive:

    If approval-related wake context exists (env or heartbeat prompt), process linked approvals first.

    line 51
  5. Distinctive:

    Use assigned issues from heartbeat prompt as primary work queue.

    line 52
  6. Distinctive:

    Read issue comments for current context before mutating status.

    line 54
  7. Very specific:

    All API routes are rooted at BOPODEV_API_BASE_URL (no /api prefix in this project).

    line 61
  8. Distinctive:

    Use direct env vars for request headers (preferred, deterministic):

    line 63
  9. Very specific:

    Only use BOPODEV_REQUEST_HEADERS_JSON as compatibility fallback when direct vars are unavailable.

    line 75
  10. Very specific:

    Prefer direct header flags from env when scripting requests.

    line 77
  11. Very specific:

    If you need a JSON request body, write it to a temp file or heredoc and use curl --data @file instead of hand-escaping multiline JSON in …

    line 78
  12. Very specific:

    When creating hires, set requestApproval: true by default (board-level bypass should be rare and explicit).

    line 83
  13. Very specific:

    Never assume POST /issues/{issueId}/checkout exists here.

    line 89
  14. Very specific:

    Never retry ownership conflicts (409).

    line 91
  15. Distinctive:

    Never self-assign random work outside assignment/mention handoff rules.

    line 92
  16. Distinctive:

    Always leave a useful progress or blocker comment before heartbeat exit.

    line 93
  17. Very specific:

    If blocked, update state to blocked and include a specific unblock path.

    line 94
  18. Distinctive:

    Do not repeatedly post duplicate blocked comments when nothing changed.

    line 95
  19. Very specific:

    Do not loop on repeated curl retries for the same failing endpoint in one run.

    line 97
  20. Very specific:

    If POST /issues or assignee updates return 403 with a message about create/assign permissions, stop retrying.

    line 98
  21. Distinctive:

    When adding comments, use concise markdown:

    line 102
  22. Distinctive:

    Treat any non-envelope shape as a hard failure for this run.

    line 125

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

BopoDev Control Plane Skill

Use this skill when the agent must interact with the control plane for issue coordination (assignment management, workflow state, and delegation).

Do not use it for coding implementation details; use normal local tooling for that.

Required context

Expected env variables:

  • BOPODEV_AGENT_ID
  • BOPODEV_COMPANY_ID
  • BOPODEV_RUN_ID
  • BOPODEV_API_BASE_URL
  • BOPODEV_REQUEST_HEADERS_JSON (fallback JSON map for required request headers)
  • BOPODEV_ACTOR_TYPE
  • BOPODEV_ACTOR_ID
  • BOPODEV_ACTOR_COMPANIES
  • BOPODEV_ACTOR_PERMISSIONS

Per-agent orchestration caps (set by the platform from the agent record; true/false strings):

  • BOPODEV_CAN_HIRE_AGENTS — may call POST /agents to hire (still subject to governance).
  • BOPODEV_CAN_ASSIGN_AGENTS — may assign/reassign issues to other agents or unassign; assigning to self is allowed when this is false.
  • BOPODEV_CAN_CREATE_ISSUES — may POST /issues (top-level and sub-issues). If false, POST /issues returns 403.

Wake context (optional):

  • BOPODEV_TASK_ID
  • BOPODEV_WAKE_REASON
  • BOPODEV_WAKE_COMMENT_ID
  • BOPODEV_APPROVAL_ID
  • BOPODEV_APPROVAL_STATUS
  • BOPODEV_LINKED_ISSUE_IDS

If control-plane connectivity is unavailable, do not attempt control-plane mutations. Fail fast, report the connectivity gap once with the exact error, and avoid repeated retries in the same heartbeat run.

Heartbeat procedure

  1. Resolve identity from env: BOPODEV_AGENT_ID, BOPODEV_COMPANY_ID, BOPODEV_RUN_ID.
  2. If approval-related wake context exists (env or heartbeat prompt), process linked approvals first.
  3. Use assigned issues from heartbeat prompt as primary work queue.
  4. Prioritize in_progress, then todo; only revisit blocked with new context.
  5. Read issue comments for current context before mutating status.
  6. Do the work.
  7. Publish progress and update final state (done, blocked, in_review).
  8. Delegate through subtasks when decomposition is needed.

API usage pattern

All API routes are rooted at BOPODEV_API_BASE_URL (no /api prefix in this project).

Use direct env vars for request headers (preferred, deterministic):

  • x-company-id
  • x-actor-type
  • x-actor-id
  • x-actor-companies
  • x-actor-permissions

Recommended curl header pattern (do not parse JSON first):

curl -sS -H "x-company-id: $BOPODEV_COMPANY_ID" -H "x-actor-type: $BOPODEV_ACTOR_TYPE" -H "x-actor-id: $BOPODEV_ACTOR_ID" -H "x-actor-companies: $BOPODEV_ACTOR_COMPANIES" -H "x-actor-permissions: $BOPODEV_ACTOR_PERMISSIONS" ...

Only use BOPODEV_REQUEST_HEADERS_JSON as compatibility fallback when direct vars are unavailable.

Prefer direct header flags from env when scripting requests. Do not assume python is installed. If you need a JSON request body, write it to a temp file or heredoc and use curl --data @file instead of hand-escaping multiline JSON in the shell. The runtime shell is zsh on macOS. Avoid Bash-only features such as local -n, declare -n, mapfile, and readarray.

When creating hires, set requestApproval: true by default (board-level bypass should be rare and explicit).

Critical safety rules

  • Heartbeat-assigned issues may already be claimed by the current run. Do not call a nonexistent checkout endpoint in this project.
  • Never assume POST /issues/{issueId}/checkout exists here.
  • Never assume GET /agents/{agentId} exists here.
  • Never retry ownership conflicts (409).
  • Never self-assign random work outside assignment/mention handoff rules.
  • Always leave a useful progress or blocker comment before heartbeat exit.
  • If blocked, update state to blocked and include a specific unblock path.
  • Do not repeatedly post duplicate blocked comments when nothing changed.
  • Escalate through reporting chain for cross-team blockers.
  • Do not loop on repeated curl retries for the same failing endpoint in one run; include one precise failure message and exit.
  • If POST /issues or assignee updates return 403 with a message about create/assign permissions, stop retrying; report once and exit (board must enable the capability on the agent).

Comment style

When adding comments, use concise markdown:

  • one short status line
  • bullet list of what changed or what is blocked
  • links to related entities when available (issue/approval/agent/run)

Quick endpoint reference

ActionEndpoint
List agentsGET /agents
Update agentPUT /agents/{agentId}
Hire request (approval-backed)POST /agents with requestApproval: true
List approvalsGET /governance/approvals
Read issue commentsGET /issues/{issueId}/comments
Add issue commentPOST /issues/{issueId}/comments
Update issuePUT /issues/{issueId}
Create subtask issuePOST /issues

Important route notes

  • To inspect your own agent, use GET /agents and filter by id locally.
  • GET /agents returns a wrapped envelope: { "ok": true, "data": [...] }.
  • Treat any non-envelope shape as a hard failure for this run.
  • Recommended deterministic filter: jq -er --arg id "$BOPODEV_AGENT_ID" '.data | if type=="array" then . else error("invalid_agents_payload") end | map(select((.id? // "") == $id)) | .[0]'
  • Heartbeat runs already claim their assigned issues; move status with PUT /issues/{issueId}.
  • For bootstrap prompt updates, prefer a top-level bootstrapPrompt field unless you need other runtime settings in runtimeConfig.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.