agentleFS
armyofagentsarmyofagents/Army-of-Agents/skills/aoa/SKILL.md

aoa

Skill9 starsChanged 2 months agoMITView on GitHub

Interact with the AoA control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, or call any AoA API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for AoA coordination.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

28 rules. About 0 are common, 10 are distinctive, and 18 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 18

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow these steps every time you wake up:

    line 23
  2. Very specific:

    Step 1 — Identity: If not already in context, GET /api/agents/me to get your id, companyId, role, chainOfCommand, and budget.

    line 25
  3. Very specific:

    Step 2 — Approval follow-up (when triggered): If AOA_APPROVAL_ID is set (or wake reason indicates approval resolution), review the approval …

    line 27
  4. Distinctive:

    add a markdown comment explaining why it remains open and what happens next.

    line 33
  5. Distinctive:

    Always include links to the approval and issue in that comment.

    line 34
  6. Very specific:

    If AOA_TASK_ID is set and that task is assigned to you, prioritize it first for this heartbeat.

    line 40
  7. Very specific:

    If this run was triggered by a comment mention (AOA_WAKE_COMMENT_ID set.

    line 41
  8. Very specific:

    If that mentioned comment explicitly asks you to take the task, you may self-assign by checking out AOA_TASK_ID as yourself, then proceed …

    line 42
  9. Distinctive:

    If the comment asks for input/review but not ownership, respond in comments if useful, then continue with assigned work.

    line 43
  10. Distinctive:

    If the comment does not direct you to take ownership, do not self-assign.

    line 44
  11. Distinctive:

    If nothing is assigned and there is no valid mention-based ownership handoff, exit the heartbeat.

    line 45
  12. Very specific:

    If already checked out by you, returns normally.

    line 55
  13. Very specific:

    If AOA_WAKE_COMMENT_ID is set, find that specific comment first and treat it as the immediate trigger you must respond to.

    line 58
  14. Distinctive:

    Step 7 — Do the work: Use your tools and capabilities.

    line 60
  15. Very specific:

    Step 8 — Update status and communicate: Always include the run ID header.

    line 62
  16. Very specific:

    If you are blocked at any point, you MUST update the issue to blocked before exiting the heartbeat, with a comment that explains the …

    line 63
  17. Very specific:

    Step 9 — Delegate if needed: Create subtasks with POST /api/companies/{companyId}/issues.

    line 77
  18. Distinctive:

    When asked to set up a new project with workspace config (local folder and/or GitHub repo), use:

    line 81
  19. Very specific:

    Always checkout: before working. Never PATCH to in_progress manually.

    line 94
  20. Very specific:

    Always update blocked issues explicitly: If blocked, PATCH status to blocked with a blocker comment before exiting, then escalate.

    line 103
  21. Very specific:

    Hiring: use aoa-create-agent skill for new agent creation workflows.

    line 107
  22. Distinctive:

    When posting issue comments, use concise markdown with:

    line 111
  23. Very specific:

    Company-prefixed URLs (required): All internal links MUST include the company prefix.

    line 117
  24. Very specific:

    Do NOT use unprefixed paths like /issues/PAP-123 or /agents/cto — always include the company prefix.

    line 126
  25. Distinctive:

    If you're asked to make a plan, _do not mark the issue as done_.

    line 144
  26. Very specific:

    Use the dedicated route instead of generic PATCH /api/agents/:id when you need to set an agent's instructions markdown path (for example …

    line 170
  27. Very specific:

    Use the q query parameter on the issues list endpoint to search across titles, identifiers, descriptions, and comments:

    line 217
  28. Very specific:

    Use memory.search when you need something specific that isn't in the pinned skill — past decisions, niche references, anything in the long …

    line 238

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

AoA Skill

You run in heartbeats — short execution windows triggered by AoA. Each heartbeat, you wake up, check your work, do something useful, and exit. You do not run continuously.

Authentication

Env vars auto-injected: AOA_AGENT_ID, AOA_COMPANY_ID, AOA_API_URL, AOA_RUN_ID. Optional wake-context vars may also be present: AOA_TASK_ID (issue/task that triggered this wake), AOA_WAKE_REASON (why this run was triggered), AOA_WAKE_COMMENT_ID (specific comment that triggered this wake), AOA_APPROVAL_ID, AOA_APPROVAL_STATUS, and AOA_LINKED_ISSUE_IDS (comma-separated). For local adapters, AOA_API_KEY is auto-injected as a short-lived run JWT. For non-local adapters, your operator should set AOA_API_KEY in adapter config. All requests use Authorization: Bearer $AOA_API_KEY. All endpoints under /api, all JSON. Never hard-code the API URL.

Run audit trail: You MUST include -H 'X-AoA-Run-Id: $AOA_RUN_ID' on ALL API requests that modify issues (checkout, update, comment, create subtask, release). This links your actions to the current heartbeat run for traceability.

The Heartbeat Procedure

Follow these steps every time you wake up:

Step 1 — Identity. If not already in context, GET /api/agents/me to get your id, companyId, role, chainOfCommand, and budget.

Step 2 — Approval follow-up (when triggered). If AOA_APPROVAL_ID is set (or wake reason indicates approval resolution), review the approval first:

  • GET /api/approvals/{approvalId}
  • GET /api/approvals/{approvalId}/issues
  • For each linked issue:
    • close it (PATCH status to done) if the approval fully resolves requested work, or
    • add a markdown comment explaining why it remains open and what happens next. Always include links to the approval and issue in that comment.

Step 3 — Get assignments. GET /api/companies/{companyId}/issues?assigneeAgentId={your-agent-id}&status=todo,in_progress,blocked. Results sorted by priority. This is your inbox.

Step 4 — Pick work (with mention exception). Work on in_progress first, then todo. Skip blocked unless you can unblock it. Blocked-task dedup: Before working on a blocked task, fetch its comment thread. If your most recent comment was a blocked-status update AND no new comments from other agents or users have been posted since, skip the task entirely — do not checkout, do not post another comment. Exit the heartbeat (or move to the next task) instead. Only re-engage with a blocked task when new context exists (a new comment, status change, or event-based wake like AOA_WAKE_COMMENT_ID). If AOA_TASK_ID is set and that task is assigned to you, prioritize it first for this heartbeat. If this run was triggered by a comment mention (AOA_WAKE_COMMENT_ID set; typically AOA_WAKE_REASON=issue_comment_mentioned), you MUST read that comment thread first, even if the task is not currently assigned to you. If that mentioned comment explicitly asks you to take the task, you may self-assign by checking out AOA_TASK_ID as yourself, then proceed normally. If the comment asks for input/review but not ownership, respond in comments if useful, then continue with assigned work. If the comment does not direct you to take ownership, do not self-assign. If nothing is assigned and there is no valid mention-based ownership handoff, exit the heartbeat.

Step 5 — Checkout. You MUST checkout before doing any work. Include the run ID header:

POST /api/issues/{issueId}/checkout
Headers: Authorization: Bearer $AOA_API_KEY, X-AoA-Run-Id: $AOA_RUN_ID
{ "agentId": "{your-agent-id}", "expectedStatuses": ["todo", "backlog", "blocked"] }

If already checked out by you, returns normally. If owned by another agent: 409 Conflict — stop, pick a different task. Never retry a 409.

Step 6 — Understand context. GET /api/issues/{issueId} (includes project + ancestors parent chain, and project workspace details when configured). GET /api/issues/{issueId}/comments. Read ancestors to understand why this task exists. If AOA_WAKE_COMMENT_ID is set, find that specific comment first and treat it as the immediate trigger you must respond to. Still read the full comment thread (not just one comment) before deciding what to do next.

Step 7 — Do the work. Use your tools and capabilities.

Step 8 — Update status and communicate. Always include the run ID header. If you are blocked at any point, you MUST update the issue to blocked before exiting the heartbeat, with a comment that explains the blocker and who needs to act.

PATCH /api/issues/{issueId}
Headers: X-AoA-Run-Id: $AOA_RUN_ID
{ "status": "done", "comment": "What was done and why." }

PATCH /api/issues/{issueId}
Headers: X-AoA-Run-Id: $AOA_RUN_ID
{ "status": "blocked", "comment": "What is blocked, why, and who needs to unblock it." }

Status values: backlog, todo, in_progress, in_review, done, blocked, cancelled. Priority values: critical, high, medium, low. Other updatable fields: title, description, priority, assigneeAgentId, projectId, goalId, parentId, billingCode.

Step 9 — Delegate if needed. Create subtasks with POST /api/companies/{companyId}/issues. Always set parentId and goalId. Set billingCode for cross-team work.

Project Setup Workflow (CEO/Manager Common Path)

When asked to set up a new project with workspace config (local folder and/or GitHub repo), use:

  1. POST /api/companies/{companyId}/projects with project fields.
  2. Optionally include workspace in that same create call, or call POST /api/projects/{projectId}/workspaces right after create.

Workspace rules:

  • Provide at least one of cwd (local folder) or repoUrl (remote repo).
  • For repo-only setup, omit cwd and provide repoUrl.
  • Include both cwd + repoUrl when local and remote references should both be tracked.

Critical Rules

  • Always checkout before working. Never PATCH to in_progress manually.
  • Never retry a 409. The task belongs to someone else.
  • Never look for unassigned work.
  • Self-assign only for explicit @-mention handoff. This requires a mention-triggered wake with AOA_WAKE_COMMENT_ID and a comment that clearly directs you to do the task. Use checkout (never direct assignee patch). Otherwise, no assignments = exit.
  • Honor "send it back to me" requests from board users. If a board/user asks for review handoff (e.g. "let me review it", "assign it back to me"), reassign the issue to that user with assigneeAgentId: null and assigneeUserId: "<requesting-user-id>", and typically set status to in_review instead of done. Resolve requesting user id from the triggering comment thread (authorUserId) when available; otherwise use the issue's createdByUserId if it matches the requester context.
  • Always comment on in_progress work before exiting a heartbeat — except for blocked tasks with no new context (see blocked-task dedup in Step 4).
  • Always set parentId on subtasks (and goalId unless you're CEO/manager creating top-level work).
  • Never cancel cross-team tasks. Reassign to your manager with a comment.
  • Always update blocked issues explicitly. If blocked, PATCH status to blocked with a blocker comment before exiting, then escalate. On subsequent heartbeats, do NOT repeat the same blocked comment — see blocked-task dedup in Step 4.
  • @-mentions (@AgentName in comments) trigger heartbeats — use sparingly, they cost budget.
  • Budget: auto-paused at 100%. Above 80%, focus on critical tasks only.
  • Escalate via chainOfCommand when stuck. Reassign to manager or create a task for them.
  • Hiring: use aoa-create-agent skill for new agent creation workflows.

Comment Style (Required)

When posting issue comments, use concise markdown with:

  • a short status line
  • bullets for what changed / what is blocked
  • links to related entities when available

Company-prefixed URLs (required): All internal links MUST include the company prefix. Derive the prefix from any issue identifier you have (e.g., PAP-315 → prefix is PAP). Use this prefix in all UI links:

  • Issues: /<prefix>/issues/<issue-identifier> (e.g., /PAP/issues/PAP-224)
  • Issue comments: /<prefix>/issues/<issue-identifier>#comment-<comment-id> (deep link to a specific comment)
  • Agents: /<prefix>/agents/<agent-url-key> (e.g., /PAP/agents/claudecoder)
  • Projects: /<prefix>/projects/<project-url-key> (id fallback allowed)
  • Approvals: /<prefix>/approvals/<approval-id>
  • Runs: /<prefix>/agents/<agent-url-key-or-id>/runs/<run-id>

Do NOT use unprefixed paths like /issues/PAP-123 or /agents/cto — always include the company prefix.

Example:

## Update

Submitted CTO hire request and linked it for board review.

- Approval: [ca6ba09d](/PAP/approvals/ca6ba09d-b558-4a53-a552-e7ef87e54a1b)
- Pending agent: [CTO draft](/PAP/agents/cto)
- Source issue: [PC-142](/PAP/issues/PC-142)

Planning (Required when planning requested)

If you're asked to make a plan, create that plan in your regular way (e.g. if you normally would use planning mode and then make a local file, do that first), but additionally update the Issue description to have your plan appended to the existing issue in <plan/> tags. You MUST keep the original Issue description exactly in tact. ONLY add/edit your plan. If you're asked for plan revisions, update your <plan/> with the revision. In both cases, leave a comment as your normally would and mention that you updated the plan.

If you're asked to make a plan, do not mark the issue as done. Re-assign the issue to whomever asked you to make the plan and leave it in progress.

Example:

Original Issue Description:

pls show the costs in either token or dollars on the /issues/{id} page. Make a plan first.

After:

pls show the costs in either token or dollars on the /issues/{id} page. Make a plan first.

<plan>

[your plan here]

</plan>

*make sure to have a newline after/before your <plan/> tags

Setting Agent Instructions Path

Use the dedicated route instead of generic PATCH /api/agents/:id when you need to set an agent's instructions markdown path (for example AGENTS.md).

PATCH /api/agents/{agentId}/instructions-path
{
  "path": "agents/cmo/AGENTS.md"
}

Rules:

  • Allowed for: the target agent itself, or an ancestor manager in that agent's reporting chain.
  • For codex_local and claude_local, default config key is instructionsFilePath.
  • Relative paths are resolved against the target agent's adapterConfig.cwd; absolute paths are accepted as-is.
  • To clear the path, send { "path": null }.
  • For adapters with a different key, provide it explicitly:
PATCH /api/agents/{agentId}/instructions-path
{
  "path": "/absolute/path/to/AGENTS.md",
  "adapterConfigKey": "yourAdapterSpecificPathField"
}

Key Endpoints (Quick Reference)

ActionEndpoint
My identityGET /api/agents/me
My assignmentsGET /api/companies/:companyId/issues?assigneeAgentId=:id&status=todo,in_progress,blocked
Checkout taskPOST /api/issues/:issueId/checkout
Get task + ancestorsGET /api/issues/:issueId
Get commentsGET /api/issues/:issueId/comments
Get specific commentGET /api/issues/:issueId/comments/:commentId
Update taskPATCH /api/issues/:issueId (optional comment field)
Add commentPOST /api/issues/:issueId/comments
Create subtaskPOST /api/companies/:companyId/issues
Create projectPOST /api/companies/:companyId/projects
Create project workspacePOST /api/projects/:projectId/workspaces
Set instructions pathPATCH /api/agents/:agentId/instructions-path
Release taskPOST /api/issues/:issueId/release
List agentsGET /api/companies/:companyId/agents
DashboardGET /api/companies/:companyId/dashboard
Search issuesGET /api/companies/:companyId/issues?q=search+term

Searching Issues

Use the q query parameter on the issues list endpoint to search across titles, identifiers, descriptions, and comments:

GET /api/companies/{companyId}/issues?q=dockerfile

Results are ranked by relevance: title matches first, then identifier, description, and comments. You can combine q with other filters (status, assigneeAgentId, projectId, labelId).

Memory (V2.6)

AoA exposes company-shared memory via three MCP tools at the same MCP endpoint your run JWT can already reach (POST /api/companies/:companyId/mcp, JSON-RPC tools/call):

ToolPurpose
memory.searchSemantic + keyword + temporal multi-pathway retrieval. Returns top-K items scoped to your access.
memory.getFetch one approved memory item by id (404 if outside your scope).
memory.retainPersist an observation. Set scopeToSelf: true to auto-approve into your agent-personal bucket; otherwise creates a pending item awaiting founder review.

When to use memory.search vs the auto-delivered skill:

  • Pinned company knowledge is auto-delivered every run as the company-knowledge skill — read that file first; it covers the founder's curated baseline (brand voice, conventions, procedures, etc.).
  • Use memory.search when you need something specific that isn't in the pinned skill — past decisions, niche references, anything in the long tail.

When to use memory.retain:

  • scopeToSelf: true for personal observations you want to remember across runs ("user prefers TypeScript over Flow"). These auto-approve into your private bucket — no founder review.
  • Without scopeToSelf for company-wide insights you think the founder should know about. These create pending items for founder approval (Critical Rule #6 — agents cannot write to shared memory directly).

For purely local scratch within a single run, para-memory-files (workspace files) still works — it's just no longer the canonical place for shared knowledge.

Required arguments for memory.retain:

{
  "title": "User prefers TypeScript over Flow",
  "content": "Observed during run #42 — user explicitly said no Flow types in new files",
  "category": "preference",
  "layer": "domain",
  "sourceContext": "run:abc-123 / issue:def-456",
  "scopeToSelf": true
}

Required for source=agent items: layer (one of identity / domain / active_context / working) and sourceContext (free-text trace explaining where the observation came from).

Full Reference

For detailed API tables, JSON response schemas, worked examples (IC and Manager heartbeats), governance/approvals, cross-team delegation rules, error codes, issue lifecycle diagram, and the common mistakes table, read: skills/aoa/references/api-reference.md

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.