Skip to content

AGENTS.md & Skills ​

Two ways to give Peon AI persistent context without repeating yourself every chat.

AGENTS.md — Project-Wide Rules ​

Drop an AGENTS.md file into your Eclipse project root. As soon as you select any file in that project, Peon AI picks it up and injects the content as a standing-order context message — so it stays in effect across the conversation, even after the context is compacted.

Use it for project-specific stuff:

  • What the project is (one line)
  • Key commands — build, test, run
  • Important conventions or constraints
  • Links to relevant specs or docs

AGENTS-<agent>.md — Agent-Specific Rules ​

For rules that apply only to a specific agent, create an AGENTS-&lt;agent&gt;.md file alongside your AGENTS.md. Both files are loaded when that agent is active.

AgentFileExample
DevAGENTS-DEV.mdcoding conventions, test patterns
PlanAGENTS-PLAN.mdBDD format, planning style
Custom agent "Docs-Assistant"AGENTS-Docs-Assistant.mddocumentation style guide

The agent name key is derived from the agent's display name:

  • Built-in agents: a fixed key per agent — Dev → DEV, Plan → PLAN, Jon → PO, Review → REVIEW.
  • Custom agents: the display name as-is.

The file name is case-insensitive with fallbacks: AGENTS-DEV.md is tried first, then AGENTS-dev.md, then title case and hyphenated variants.

Deduplication: if both AGENTS.md and AGENTS-<agent>.md contain the same text, it appears only once in the standing orders.

Agent switching: the right file is loaded automatically when you switch agents — no restart needed.

Recommendations ​

markdown
# my-service

Spring Boot REST API, Java 21.

## Commands
- `mvn clean verify` — build + test
- `mvn spring-boot:run` — run locally

## Conventions
- Constructor injection only, no field injection
- Use the component architecture
   - API classes are all in `src/main/java/com/.../api/model`

## Docs
- API spec: [doc/api.md](doc/api.md)

The first matching file in the project root is used, checked in this order: AGENTS.md, Agents.md, agents.md, RULES.md, rules.md, AGENT.md, CLAUDE.md, claude.md.

Skills ​

Skills are reusable instruction sets shared across all your projects. Put them in ~/.agents/skills — one folder for your whole user account, the same location other agent tools use. Create it and you are done, there is nothing to configure:

~/.agents/skills/
├── eclipse-ifile-paths/
│   └── SKILL.md
├── spring-boot-patterns/
│   └── SKILL.md
└── ...

Skills in the skills subfolder of your config directory (default ~/.peon/skills) are still loaded, but that location is deprecated: existing skills keep working, new ones belong in ~/.agents/skills. Its base directory is Window > Preferences > AI Peon > Peon Configuration → Config directory. A separate Eclipse project works fine — just point the preference at the folder.

At startup, Peon AI reads only the name and description from each skill (~100 tokens per skill). The full content is loaded only when the LLM decides the task matches. Good for knowledge that isn't project-specific: Eclipse API patterns, framework recipes, code-style rules.

Skills follow the agentskills.io spec.

yaml
---
name: spring-boot-patterns
description: Spring Boot patterns for REST APIs, JPA, and testing. Use when
  working on Spring Boot projects or when the user asks about Spring conventions.
---

Project skills ​

Skills can also live in your project — in a .agents/skills folder at the project root (disk path, not the workspace path). Same structure as the config skills folder:

my-project/
├── .agents/
│   └── skills/
│       └── my-project-conventions/
│           └── SKILL.md
└── src/

Good for knowledge that belongs to one project only: its build quirks, its conventions.

Skill names are unique — the closest location wins:

my-project/.agents/skills   ← wins over both user roots
~/.agents/skills
~/.peon/skills              ← deprecated, still read

A project skill with the same name as a user skill overrides the user one — in that project only. Switch to a project without the skill and the user version comes back.

When you ask Peon AI to create a skill, it asks in chat where it should live — your ~/.agents/skills or the open project's .agents/skills — and recommends based on the skill's scope. It offers the deprecated ~/.peon/skills only if you name it.

You can also ask it to migrate a skill out of ~/.peon/skills: it copies it to ~/.agents/skills, leaving the original in place, and picks the new one up right away — so the copy takes precedence while both folders stay readable.

In the UI, project skills are easy to spot: the status line counter reads 5 skills (2 project), the skills menu lists them in their own section under the project name, and the slash autocomplete shows a [project] suffix (the command that gets inserted stays untagged).

Released under the MIT License.