agentleFS
peter-gypeter-gy/agent-plugins/skills/package-agent-plugin/SKILL.md

package-agent-plugin

Skill2 starsChanged 2 months agoApache-2.0View on GitHub

Package version-matched agent briefings with a Python project. Use when authoring core skills and references, exposing guidance through Python module help, configuring a build adapter, attaching a plugin to a wheel, or verifying installed handoffs. For consuming an installed package's instructions, use agent-plugins.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start from a fresh agent's task: what the package enables, which host or extras it requires, the first complete action, how to verify …

    line 14
  2. Distinctive:

    Keep package concepts, workflow choices, essential invariants, and verification in the core skill.

    line 18
  3. Distinctive:

    Read briefing design when authoring the skill or adding a Python help entrypoint.

    line 24
  4. Very specific:

    Create skills/my-package/SKILL.md with name and a discriminating description in YAML frontmatter, followed by the package's shortest …

    line 57
  5. Very specific:

    Read the wheel in an isolated environment, using the Python distribution name from [project].name:

    line 85
  6. Very specific:

    Keep agent-plugins in [build-system].requires for packaging.

    line 102
  7. Very specific:

    Use ap.read() in the package's agent module to deliver its core skill through standard Python help:

    line 108
  8. Very specific:

    Keep ordinary package imports independent of this optional help module.

    line 123
  9. Distinctive:

    Keep detailed signatures on the corresponding API objects.

    line 126
  10. Distinctive:

    Verify both the CLI and Python briefing from the installed wheel.

    line 130
  11. Very specific:

    Use the agent-plugins skill when the repository work is complete and the task becomes consuming an installed package's instructions or …

    line 146
  12. Distinctive:

    Use the documentation index for additional packaging and integration guidance.

    line 149

≈ “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

Package an Agent Plugin

Package instructions beside the Python code they describe so the library and its Agent Plugin share one release. Author one compact core skill that works from a CLI briefing, Python module help, or a directly loaded skill file.

Design the briefing

Start from a fresh agent's task: what the package enables, which host or extras it requires, the first complete action, how to verify success, and where to read more. Include every import and binding needed by the first example.

Keep package concepts, workflow choices, essential invariants, and verification in the core skill. Put substantial setup variants and specialized workflows in linked references, with a condition explaining when each is needed. Let the generated briefing supply installation identity and resource-access guidance. Rereading the current skill should not be a prerequisite for following it.

Read briefing design when authoring the skill or adding a Python help entrypoint. It covers ownership, a reusable skill shape, documentation links, and fresh-agent acceptance scenarios.

Build the smallest complete integration

For a single-package project, keep the plugin at the project root:

my-package/
|-- plugin.json
|-- pyproject.toml
|-- skills/
|   `-- my-package/
|       `-- SKILL.md
`-- src/
    `-- my_package/

Create plugin.json:

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "my-package",
  "description": "Use My Package from Python."
}

Name the core skill my-package to match [project].name. This lets ap.read("my-package") select it by default. A task-specific skill can use another name and be selected explicitly.

Create skills/my-package/SKILL.md with name and a discriminating description in YAML frontmatter, followed by the package's shortest complete workflow. Use real public APIs and expected results from the project.

Configure an existing uv_build project in pyproject.toml:

[build-system]
requires = ["agent-plugins", "uv_build"]
build-backend = "agent_plugins.build.uv_build"

[tool.agent-plugins]
root = "."

Preview the exact selection, then build:

uv run --with agent-plugins agent-plugins plan .
uv build

The plan must contain plugin.json, every intended file under skills/, and mcp.json when configured. Add root-relative client extension files or other plugin resources through [tool.agent-plugins].include.

Verify the installed handoff

Read the wheel in an isolated environment, using the Python distribution name from [project].name:

uvx --with dist/my_package-0.1.0-py3-none-any.whl \
  agent-plugins read my-package

Confirm the reported distribution version, plugin metadata, bounded inventory, and skill instructions. Use artifact verification for exhaustive inventory comparison. Put the public bootstrap in the package README:

uvx --with my-package agent-plugins read my-package

Keep agent-plugins in [build-system].requires for packaging. Add it to [project].dependencies when installed Python code calls agent_plugins directly at runtime, with a lower bound that includes the APIs used.

Expose the same briefing in Python

Use ap.read() in the package's agent module to deliver its core skill through standard Python help:

# src/my_package/agent.py
import agent_plugins as _ap

__doc__ = _ap.read("my-package")

The caller runs import my_package.agent followed by help(my_package.agent). help() prints the briefing and returns None. Use print(ap.read(...)) when the host needs explicit text output. Pass skill="task-name" for a differently named core skill. Host capability registration remains the host's contract.

Keep ordinary package imports independent of this optional help module. Give the agent module a small introspection surface and inspect its actual help() output, since exported classes can add extensive API documentation. Keep detailed signatures on the corresponding API objects. See briefing design for runtime access and documentation ownership.

Verify both the CLI and Python briefing from the installed wheel. A successful read establishes access to instructions. Exercise the first workflow in its required host to establish runtime readiness and a verified result.

Choose a different build path

  • For Hatchling, monorepo roots, include patterns, custom backends, or an externally built wheel, read build variants.
  • For wheel, source distribution, editable, document, and Agent Skills checks, read artifact verification.
  • For mcp.json, read the MCP integration guide.
  • For reverse-domain client directories, read the client extension guide.

Use the agent-plugins skill when the repository work is complete and the task becomes consuming an installed package's instructions or resources.

Use the documentation index for additional packaging and integration guidance.

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.