AGENT SKILL

agent-control-plane

Establish and maintain a persistent control plane for coding agents and project agents: registered workspaces, source-of-truth state, permissions, tool routing, known commands, environment-variable locations, atomic tasks, logs, checkpoints, failure memory, and stop conditions. Use before agents work on a new or continuing repository, when sessions repeatedly rediscover paths or repeat failed commands, when deployment or credential-location knowledge is lost, or when AGENTS.md and project-state documentation must govern execution.

License 许可
MIT
最近更新
2026-09-22
Stars
★ 0
Forks
0

01 前言 Front Matter

name
agent-control-plane
description
Establish and maintain a persistent control plane for coding agents and project agents: registered workspaces, source-of-truth state, permissions, tool routing, known commands, environment-variable locations, atomic tasks, logs, checkpoints, failure memory, and stop conditions. Use before agents work on a new or continuing repository, when sessions repeatedly rediscover paths or repeat failed commands, when deployment or credential-location knowledge is lost, or when AGENTS.md and project-state documentation must govern execution.

02 资源文件 4

03 SKILL.md 正文

Agent Control Plane

Mission

Make agents resume from known state instead of improvising the environment on every session. Own control files, permissions, routing, checkpoints, failure memory, and operational continuity.

Do not implement product behavior. Hand coding work to engineering-orchestrator after the control plane is ready.

Suite Protocol

When another skill routes work here, read references/suite-contract.md. Accept the Task Packet and return the standard Handoff Packet. Mark pass only when workspace state, permissions, and recovery controls are ready for the next skill.

Resolve the Workspace Once

  1. Prefer an explicit path from the user or active environment.
  2. Read the nearest repository instructions and project manifest.
  3. Confirm the repository root with bounded checks such as .git, package manifests, and configured markers.
  4. Register the canonical root, active branch, project type, and known commands.
  5. Never scan the entire device or storage when the registry or current environment provides the location.

If the registered path is missing, perform one bounded search in approved roots, update the registry, and record the repair.

Establish the Source of Truth

Use existing equivalent files when present. Otherwise define only the files the project needs:

File Responsibility
AGENTS.md Non-negotiable agent behavior, scope, commands, and prohibited actions
.agent/project.json Canonical root, stack, checks, permissions, limits, and workflows
docs/AI_CONTEXT.md Current architecture, state, goals, and constraints
docs/TODO.md Atomic task queue and dependency order
docs/BUILD_LOG.md Completed work, files changed, commands, and outcomes
docs/ERROR_LOG.md Failures, root causes, attempted fixes, and known-bad actions
docs/DECISIONS.md Durable decisions and rejected alternatives
docs/TEST_LOG.md Test commands, results, baseline failures, and coverage gaps
docs/DEV_DIARY.md Concise observations and next-session handoff
docs/CHANGELOG.md User-facing changes by version
docs/API_SPEC.md and docs/STATE_SCHEMA.md Contracts when the project has APIs or stateful behavior

Read references/control-files.md before creating or repairing this stack.

Maintain the Operational Registry

Record names and locations, never secret values:

Workspace root
Primary manifests
Runtime and package manager
Install, dev, test, typecheck, lint, build, deploy, and release commands
Environment file locations and required variable names
Credential provider or secret-store reference
Deployment target and verified workflow
Known restrictions and approval requirements
Last successful command and date
Known-bad commands and why they failed

Never print, copy, or store tokens, passwords, private keys, or secret values in logs or memory.

Enforce the Tool Gateway

Route tool use through explicit capabilities. Default-deny:

  • Actions outside the registered workspace
  • Network access not required by the task
  • File deletion or destructive reset
  • Git commit, push, merge, release, or deployment without authorization
  • Reading secret files or credential stores
  • Sending, publishing, purchasing, or external mutation
  • Silent memory or skill modification

Read references/permission-model.md for risk levels and approval boundaries.

Run One Atomic Task

  1. Load the manifest, AI context, task queue, decisions, error log, and last handoff.
  2. Select one acceptance outcome.
  3. State the plan, required tools, permissions, and stop condition.
  4. Route implementation through Engineering Standards.
  5. Record files changed, commands, test results, errors, and decisions.
  6. Update the task queue and next-session handoff.
  7. Create a checkpoint only when project policy permits.
  8. Stop when the acceptance check and required quality gate pass.

Keep derived UI, dashboards, or summaries subordinate to the canonical state model.

Prevent Repeated Failure

Before running a command or workflow, check the Error Log and operational registry.

After two materially similar failures:

  1. Stop repeating the action.
  2. Record the command, environment, failure signature, and attempted fixes.
  3. Identify the shared assumption.
  4. Gather one new observation that can falsify it.
  5. Change strategy or request a material decision.

Never spend another hour rediscovering that the same door is still a wall.

Use Agent Roles Deliberately

Use only roles required by the task:

  • Router: classify and dispatch
  • Planner: decompose work and dependencies
  • Executor: perform approved atomic actions
  • Reviewer/Critic: inspect against requirements
  • Tester: run and interpret checks
  • Judge: enforce stop conditions
  • Security Sentinel: enforce capabilities and approvals
  • Memory Curator: propose durable updates
  • Skill Builder: version reusable procedures after approval

Keep tool execution behind the gateway. Agents propose actions; policy authorizes them.

Return the Control Handoff

Workspace: <canonical root>
State loaded: <files and versions>
Task: <one atomic outcome>
Known commands: <verified commands>
Permissions: <allowed, denied, approval-required>
Known failures: <relevant entries>
Required route: <engineering, review, artifact, or memory skill>
Stop condition: <evidence required>

04 同仓库更多 Skills

projectamazonph
projectamazonph/agent-skill-framework

test-driven-development

Drive one observable software behavior at a time through a valid Test-Driven Development cycle: select the test, prove Red for the intended reason, implement the smallest Green change, and preserve the test as regression evidence. Use before adding production behavior, fixing defects, changing contracts, or safely characterizing legacy behavior. Also use when tests are brittle, over-mocked, skipped, weakened, or passing without proving the requirement.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

suite-orchestrator

Route complex work across the complete Agent Skill Suite while enforcing content preservation, explicit scope, correct specialist timing, evidence-backed completion, and durable state. Use when a task involves coding, agent operations, repository bootstrapping, conversation compilation, artifact generation, expert review, persistent memory, or several of these together. Also use when the correct skill is unclear or work must pass through multiple specialist skills in a controlled sequence.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

solid-design

Design, refactor, and review object-oriented or modular code with the SOLID principles while preserving behavior and avoiding needless abstraction. Use when defining responsibilities, extension seams, subtype contracts, consumer interfaces, dependency direction, modules, services, strategies, plugins, adapters, repositories, or architecture boundaries; also use when test friction, tangled dependencies, large classes, unsupported methods, framework leakage, or repeated variant branches signal a structural problem.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

quality-gates

Verify engineering work against required behavioral, architectural, regression, build, security, compatibility, documentation, and diff-hygiene evidence before completion. Use after a code change, defect fix, refactor, migration, generated-code update, or implementation plan appears complete; also use for read-only code reviews and release-readiness checks. Return PASS or BLOCKED without implementing the remediation.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

loop-engineering

Execute non-trivial software work through small, observable build-test-observe-adjust loops with explicit hypotheses, evidence, outcomes, and next actions. Use throughout feature implementation, debugging, refactoring, migrations, performance work, and complex verification where feedback must guide each subsequent step. Use when work is stalling, changes are growing too large, failures repeat, or an engineering ledger is required.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

local-memory

Maintain fast, durable, curated local memory for AI agents on Android, Termux, Linux, macOS, Windows, or other lightweight environments. Use when an agent must remember stable preferences, project facts, decisions, procedures, failure resolutions, and task state across sessions; retrieve relevant memories before planning; resolve conflicting or stale memories; or provide explicit remember, search, pin, update, forget, status, and export controls without a cloud dependency.

★ 0