agentleFS
bookchaowalitbookchaowalit/platform-agent-skills/ai-agents/SKILL.md

ai-agents

Skill0 starsChanged 8 days agoApache-2.0View on GitHub

Operate Solo Empire tools safely from an AI agent, including MCP servers, CLI automation, Task commands, structured tool results, AI logs, and infrastructure-layer integrations. Use when wiring or running an agent against existing Solo Empire tools or infra. Not for designing or evaluating agent loops, RAG, or memory — use ai-agent-workflows.

  • Reads credentials

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 5 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill to design and operate AI agents that follow a reliable tool-use loop.

    line 10
  2. Distinctive:

    Use Thai for all human-facing agent responses by default.

    line 17
  3. Very specific:

    Read architecture guidance from architecture-docs/docs/ (via SOLO_ARCHITECTURE_ROOT or ../architecture-docs) and operational command …

    line 26
  4. Very specific:

    Read the relevant operations/ or integrations/ document when the task concerns a documented platform or external integration.

    line 31
  5. Very specific:

    Follow the tool-selection and context-efficiency policy in skills/ai-agent-workflows/SKILL.md.

    line 56
  6. Very specific:

    Keep implementation in its owning repository.

    line 63
  7. Very specific:

    Use apply_patch for source and documentation edits.

    line 64
  8. Distinctive:

    Follow the owning service repository's documented backup/restore procedure before schema or data migrations.

    line 65
  9. Very specific:

    Keep credentials in the documented environment or secret store.

    line 68
  10. Very specific:

    Treat data/, generated reports, backups, and nested repositories as separate boundaries.

    line 71
  11. Distinctive:

    Run the narrowest relevant checks, then the repository checks required for the change:

    line 78
  12. Distinctive:

    If a check cannot run because an external service, credential, or local daemon is unavailable, record the exact limitation and do not hide …

    line 90

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

AI Agents — Solo Empire

Overview

Use this skill to design and operate AI agents that follow a reliable tool-use loop. Treat skills/ as the agent instruction layer and infra/ as the implementation and tool layer: invoke existing CLI commands, scripts, MCP tools, and tests before adding new mechanisms.

Response language

Use Thai for all human-facing agent responses by default. Keep code, commands, paths, identifiers, logs, protocol fields, and quoted source text exact. Follow another language only when the user explicitly requests it for the response or artifact.

Workflow

1. Establish context

  • Read architecture guidance from architecture-docs/docs/ (via SOLO_ARCHITECTURE_ROOT or ../architecture-docs) and operational command ownership from platform-ops-cli/README.md (via SOLO_OPS_ROOT or legacy sibling ../platform-ops-cli). Neither checkout depends on the hub. Use focused rg/sed ranges rather than loading long documents.
  • Read the relevant operations/ or integrations/ document when the task concerns a documented platform or external integration.
  • Inspect git status --short and preserve unrelated user changes. Do not use destructive Git commands.

For an agent feature, identify the complete loop before editing:

request → agent instructions → tool selection → infra operation → structured result → next decision

2. Route to the existing capability

RequestPrimary boundary
TasksTasks API in empire-platform (SOLO_PLATFORM_ROOT or sibling ../platform-empire); use its supported MCP/API interface or the platform-ops-cli task client
Health, skills, goals, projects, operational CLIplatform-ops-cli/infra/cli.ts and its owning services
Database schema or migrationthe owning service/cell repository identified by architecture guidance; local SQLite task storage was retired
AI-facing tool or MCP behaviormcp-aggregator (SOLO_MCP_ROOT or sibling ../platform-mcp-aggregator)
REST endpoint or clientthe owning cell repository identified by architecture guidance; infra/api/ was retired 2026-10-11
Scheduled workflow or system automationthe platform-ops-cli checkout or the owning service repository
Kubernetes, GitOps, IaC, policies, onboardingbookchaowalit/platform-infra-kit (ops-owned registries are in platform-ops-cli/infra/platform/)
Local services and homelabbookchaowalit/platform-homelab-infra
System-wide verificationthe checks documented by each owning repository

Follow the tool-selection and context-efficiency policy in skills/ai-agent-workflows/SKILL.md. Keep inputs explicit and bounded, and use structured results rather than scraping human-formatted output when a structured interface exists.

3. Make the change safely

  • Keep implementation in its owning repository; do not put runtime code in this skill. Portable skills live in agent-skills.
  • Use apply_patch for source and documentation edits.
  • Follow the owning service repository's documented backup/restore procedure before schema or data migrations; the retired local SQLite backup command is unavailable.
  • Keep credentials in the documented environment or secret store. Never print, copy, or commit values from the owning repository's .env, tokens, cookies, or private data.
  • Treat data/, generated reports, backups, and nested repositories as separate boundaries.
  • For external services, verify that the required credential is available and report it as unavailable instead of asking the user to paste a secret.

4. Verify proportionally

Run the narrowest relevant checks, then the repository checks required for the change:

  • General ops-toolkit changes: task test, task typecheck, and task docs:check from platform-ops-cli.
  • Database changes: relevant checks from the owning service repository.
  • Platform changes: task test:platform and the relevant validation scripts in bookchaowalit/platform-infra-kit.
  • MCP changes: run the checks documented by mcp-aggregator.
  • Python automation changes in ops-toolkit: task test:python and the focused test task listed in its Taskfile.

If a check cannot run because an external service, credential, or local daemon is unavailable, record the exact limitation and do not hide the failure.

Decision rules

  • Need a new AI-facing capability → implement or extend an MCP tool in mcp-aggregator, then document its selection and safety rules here if it is reusable.
  • Need a repeatable deterministic operation → implement or reuse a helper in the owning repository; do not embed it in SKILL.md.
  • Need agent judgment, routing, or safety procedure → update this skill.
  • Need durable operational policy or a runbook → update the relevant architecture-docs/operations/ boundary, not this skill alone.
  • Need a blank reusable document or artifact → copy from architecture-docs/templates/ into its owning workspace and leave the source template unchanged.
  • Need to update learning progress → use the existing skills CLI or MCP tool; do not confuse database-tracked learning skills with this AI skill package.

Handoff

Report the files changed, commands and tests run, important outputs or failures, commit/push/deploy evidence, credential/service limitations, and any follow-up task. Follow the repository's automatic release closeout preference for scoped Git and documented non-production deployment actions; retain approval gates for production, destructive, paid, credential, and external-message actions.

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.