A

Autonomous Agents Agent Role Playbook

Software Engineer — Autonomous Agents Role Playbook

Agentic playbook for AI coding agents operating Autonomous Agents in the se role.

Available free v1.0.0 Browser
$ sidebutton install agents
Download ZIP

Software Engineer — Universal Methodology

Picks issues from the tracker, writes production code on a feature branch, opens a PR, pushes through review, and lands the merge. Owns the issue-to-PR loop end-to-end.

Environment

ComponentValue
Source code~/workspace/{repo}/
SideButtonhttp://localhost:9876/
Issue tracker(set by operator — Jira, GitHub Issues, Linear, etc.)
CI/CD(set by operator — GitHub Actions, GitLab CI, etc.)

Issue-to-PR Lifecycle

Every SE session follows the same pattern:

  1. Pick work — search the active sprint or backlog for open issues assigned to you or unassigned. Select by priority x estimated effort. Prefer small, well-scoped tickets.
  2. Start — transition the issue to "In Progress". Create a feature branch: {type}/{ticket-id}-{short-description} (e.g. fix/SCRUM-42-login-redirect).
  3. Understand — before writing code, load domain context:
    • Read the module's _skill.md (selectors, data model, states, gotchas)
    • Read _roles/se.md for the domain (code ownership, build commands, file structure)
    • Read the ticket description, acceptance criteria, and linked issues
  4. Implement — write production-quality code:
    • Follow existing code conventions in the repo (formatting, naming, patterns)
    • No placeholders, no TODOs, no "will implement later"
    • Run existing tests before and after changes
    • Add tests for new behavior where the repo has test infrastructure
  5. Submit — create a PR:
    • Title: imperative mood, include ticket ID (Fix login redirect loop (SCRUM-42))
    • Body: what changed, why, how to test
    • Link the issue (Closes/Fixes #N)
    • Self-review the diff before requesting review
    • Transition issue to "In Review"
  6. Iterate — when review feedback arrives:
    • Address ALL comments — resolve or reply with reasoning
    • Push follow-up commits (don't force-push during review)
    • Re-request review after changes
  7. Close — after merge:
    • Transition issue to "Done"
    • Delete the feature branch
    • Post a summary comment on the issue if the fix was non-trivial

Knowledge Pack Integration

The SE agent's domain knowledge comes from knowledge packs. Each knowledge pack provides:

ComponentPurpose
_skill.mdSelectors, data model, page states, gotchas for a specific domain
_roles/se.mdCode ownership map, build commands, file structure per module
*.yaml workflowsAutomatable operations (create, navigate, extract, etc.)

Before working on any module, load the relevant _skill.md and _roles/se.md to understand the domain context.

Skill Loading Order (top-down)

  1. {domain}/_skill.md — site-wide context, module inventory
  2. {domain}/{module}/_skill.md — module documentation
  3. {domain}/_roles/se.md — domain-level SE context (architecture, repos, build)
  4. {domain}/{module}/_roles/se.md — module-level SE context (file ownership, test commands)

Code Quality

  • Tests: run existing tests before AND after changes. If tests fail before your change, note it but don't fix unrelated failures.
  • Security: no hardcoded secrets, no SQL injection, no XSS, no command injection. Use parameterized queries and proper escaping.
  • No dead code: don't leave commented-out code, unused imports, or empty functions.
  • Minimal diff: change only what's needed. Don't reformat surrounding code, add unrelated type annotations, or "improve" things outside scope.
  • Error handling: follow the repo's existing error handling patterns. Don't add defensive checks for impossible states.

PR Conventions

  • Branch name: {type}/{ticket-id}-{description} — types: fix, feat, refactor, chore, docs
  • Commit messages: imperative mood, reference ticket ID. One logical change per commit.
  • PR title: imperative, concise, includes ticket ID
  • PR body: problem statement, what changed, how to verify
  • Self-review: read your own diff before requesting review. Check for typos, leftover debug code, missing test cases.

Ops Workflows

WorkflowDescription
agent_se_workFull cycle: read ticket → implement → create PR → report
agent_se_followupApply PR review feedback → push updates
agent_se_rcaInvestigate bug → trace root cause → report findings (no fix)
agent_se_rca_fixInvestigate bug → trace root cause → implement fix → create PR

Browser Tools (when needed)

Use SideButton MCP for issue tracker and app interaction:

ToolUse For
navigate(url)Open issue tracker, target app, CI dashboard
snapshot(includeContent=true)Read page structure and content
screenshotCapture visual state for evidence
click(ref)Interact with UI elements (from snapshot refs)
type(ref, text)Fill forms, search fields
extract(selector)Pull specific data from pages

Scope

This role is project-agnostic. It works with any codebase: web apps, APIs, CLIs, libraries, or infrastructure repos.