A portable Agent Skill for building and reviewing production Rust MCP servers with PAIML's pmcp crate and cargo-pmcp tooling.
SKILL.mdis a concise navigation entry point for Codex/OpenCode discovery.references/holds guidance that agents load on demand: PMCP server design, the PMCP 2.6-2.17 and cargo-pmcp 0.15-0.20 version matrix, the cargo-pmcp workflow, testing/security/deployment, and rmcp-to-pmcp migration.templates/snippets/holds small snippets for agents to adapt after they check the repository's locked SDK version.scripts/validate_skill.pyvalidates structure, Unicode metadata, and independent safety caps, using only the standard library.scripts/test_validate_skill.pyhas boundary tests for the validator contract.
Clone the repository so the skill folder stays named rust-pmcp-skill:
git clone https://github.com/sm18lr88/rust-pmcp-skill.gitRepo-scoped:
mkdir -p .agents/skills
cp -R rust-pmcp-skill .agents/skills/rust-pmcp-skillUser-scoped:
mkdir -p ~/.agents/skills
cp -R rust-pmcp-skill ~/.agents/skills/rust-pmcp-skillRepo-scoped:
mkdir -p .opencode/skills
cp -R rust-pmcp-skill .opencode/skills/rust-pmcp-skillUser-scoped:
mkdir -p ~/.config/opencode/skills
cp -R rust-pmcp-skill ~/.config/opencode/skills/rust-pmcp-skillOpenCode also discovers .agents/skills, so in most setups the Codex repo-scoped or user-scoped install path works for both.
python scripts/validate_skill.py .
python -m unittest scripts/test_validate_skill.py -v- Keep
SKILL.mdconcise and navigational. Move detail intoreferences/for progressive disclosure. - The
descriptionis the only compact field: it must contain 1 through 1024 Unicode characters. There is no whole-file 1024-byte cap. - Independent safety caps permit a raw
SKILL.mdup to 256 KiB, frontmatter up to 16 KiB, and a body up to 240 KiB. - Update
references/version-matrix.mdandreferences/sources.mdwhenever PMCP or cargo-pmcp releases a new major or minor version. - This is a skill, not a plugin. It has no install hooks or runtime side effects.