compliance-trestle-skills
AGENTS.md16 starsChanged 4 months agoApache-2.0View on GitHub
This repository is an agent-portable Compliance Trestle and OSCAL engineering toolkit. Claude Code plugins are one distribution format. The primary functions are in these directories: Coding agents can use these directories directly. Write project documentation in ASD-STE100 Simplified Technical English. Use short sentences. Use the same word for the same meaning. Keep technical names such as OSCAL, Compliance Trestle, SSP, and FedRAMP. Use this repository to help teams do these tasks: When a user asks you to convert an old…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository18 other files it gives its agents.
- .cursor/rules/compliance-trestle.mdcCursor rule
- .cursor/rules/oscal-json-edit.mdcCursor rule
- .cursor/rules/oscal-workspace-guardrails.mdcCursor rule
- import-legacy-sspSkill
- review-oscal-mappingsSkill
- validate-oscal-packageSkill
- workspace-validateSkill
- trestle-assessmentSkill
- trestle-authoring-workflowSkill
- trestle-compliance-pipelineSkill
- trestle-control-implementationSkill
- trestle-governanceSkill
- trestle-jinja-templatingSkill
- trestle-oscal-modelsSkill
- trestle-poamSkill
- trestle-task-systemSkill
- trestle-validationSkill
- trestle-workspaceSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
26 rules. About 1 is common, 21 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
4
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
- Distinctive: line 18
Write project documentation in ASD-STE100 Simplified Technical English.
- Distinctive: line 20
Use the same word for the same meaning.
- Distinctive: line 21
Keep technical names such as OSCAL, Compliance Trestle, SSP, and FedRAMP.
- Distinctive: line 25
Use this repository to help teams do these tasks:
- Distinctive: line 31
Do not copy licensed standard text.
- Distinctive: line 45
Do not invent compliance facts, control implementation details, system boundaries, or authorization conclusions.
- Distinctive: line 49
Do not paste licensed framework text into repository files.
- Distinctive: line 50
Use control IDs and original guidance only.
- Distinctive: line 51
Treat OSCAL validation as structural validation.
- Distinctive: line 52
Do not treat OSCAL validation as an audit opinion.
- Common: line 53
Do not commit real customer SSPs, diagrams, credentials, or sensitive evidence.
- Distinctive: line 57
When a user asks you to convert an old document into OSCAL, do these steps:
- Distinctive: line 61
Do not change the original files.
- Distinctive: line 64
Start or reuse a Compliance Trestle workspace.
- Distinctive: line 66
Keep each mapped OSCAL field tied to a source reference or a user-supplied assertion.
- Distinctive: line 74
Run these commands from the repository root:
- Very specific: line 87
Use native project skills in .cursor/skills/.
- Distinctive: line 89
Use Python 3.10-3.12 with Compliance Trestle.
- Distinctive: line 99
Check shell scripts with these commands:
- Very specific: line 108
If your agent supports local skills, copy or point it at subdirectories in agent-skills/.
- Very specific: line 109
If your agent does not support local skills, read the applicable SKILL.md file and the linked references/ files before you act.
- Distinctive: line 120
Keep changes small and testable.
- Distinctive: line 121
Add validation scripts when you add new package formats or manifests.
- Very specific: line 122
Update docs/AGENT-COMPATIBILITY.md when you add or change an agent harness.
- Distinctive: line 123
Add compatibility. Do not break existing Claude Code installs.
- Distinctive: line 124
Write new and changed documentation in ASD-STE100 Simplified Technical English.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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.
Files
Agent Instructions for Compliance Trestle
This repository is an agent-portable Compliance Trestle and OSCAL engineering toolkit. Claude Code plugins are one distribution format. The primary functions are in these directories:
commands/skills/agents/hooks/plugins/document-transform/agent-skills/docs/tests/
Coding agents can use these directories directly.
Write project documentation in ASD-STE100 Simplified Technical English. Use short sentences. Use the same word for the same meaning. Keep technical names such as OSCAL, Compliance Trestle, SSP, and FedRAMP.
Purpose of this repository
Use this repository to help teams do these tasks:
- Convert legacy SSP, PDF, DOCX, Markdown, and evidence material into OSCAL workflows.
- Manage OSCAL with Compliance Trestle.
- Validate output with OSCAL tools.
- Make SSP, assessment, POA&M, validation, governance, and review artifacts.
- Do not copy licensed standard text.
Primary directory layout
commands/: primary Compliance Trestle Claude command runbooks.skills/: primary Compliance Trestle skill instructions for this plugin.agents/: role agents for Trestle authoring, validation, review, and governance.plugins/document-transform/: OSCAL document workbench commands, scripts, templates, and skill.agent-skills/: portable skill packs for non-Claude agent harnesses.docs/: architecture, compatibility, quick starts, and implementation plans.tests/: shell validation checks for portable skills, adapters, and workbench scripts.
Agent safety rules
- Do not invent compliance facts, control implementation details, system boundaries, or authorization conclusions.
- Preserve source traceability when you convert legacy documents into OSCAL.
- Mark uncertain mappings as
needs_review. - List the missing evidence.
- Do not paste licensed framework text into repository files.
- Use control IDs and original guidance only.
- Treat OSCAL validation as structural validation.
- Do not treat OSCAL validation as an audit opinion.
- Do not commit real customer SSPs, diagrams, credentials, or sensitive evidence.
Legacy SSP, PDF, and DOCX to OSCAL workflow
When a user asks you to convert an old document into OSCAL, do these steps:
- Make a workspace in
workspaces/<system>-ssp-import/or in another path that the user approves. - Copy source documents into
input/. - Do not change the original files.
- Extract source text to Markdown.
- Make a source traceability map.
- Start or reuse a Compliance Trestle workspace.
- Map extracted content to OSCAL SSP metadata, system characteristics, control implementations, roles, parties, inventory, diagrams, and back matter.
- Keep each mapped OSCAL field tied to a source reference or a user-supplied assertion.
- Validate with Compliance Trestle and OSCAL CLI when those tools are available.
- Make an import summary, a validation report, and an unmapped or
needs_reviewreport.
The portable skill agent-skills/oscal-document-engineering/SKILL.md contains the detailed procedure.
Useful commands
Run these commands from the repository root:
npm run test:agent-skills
npm run test:agent-adapters
npm run test:cursor-support
npm run test:oscal-document-workbench
npm run test:draft-ssp
npm run test:trestle-integration
npm run test:oscal-review-workflowCursor users must also read CURSOR.md.
Use native project skills in .cursor/skills/.
Use Python 3.10-3.12 with Compliance Trestle. Python 3.14+ prints an expected Pydantic V1 warning on every trestle command.
Validate JSON with these commands:
node -e "JSON.parse(require('fs').readFileSync('agent-skills/manifest.json','utf8')); console.log('agent skills manifest ok')"
node -e "JSON.parse(require('fs').readFileSync('.claude-plugin/marketplace.json','utf8')); console.log('marketplace ok')"Check shell scripts with these commands:
bash -n tests/validate-agent-skills.sh
bash -n tests/validate-agent-adapters.shHow to use portable skills
If your agent supports local skills, copy or point it at subdirectories in agent-skills/.
If your agent does not support local skills, read the applicable SKILL.md file and the linked references/ files before you act.
Each portable skill can operate without Claude slash commands.
Claude plugin commands and direct scripts
Claude Code users can run slash commands from the root plugin command set.
Other agents must read command markdown in commands/ and plugins/**/commands/.
Then run the related script or the equivalent Trestle command when a script exists.
Development rules
- Keep changes small and testable.
- Add validation scripts when you add new package formats or manifests.
- Update
docs/AGENT-COMPATIBILITY.mdwhen you add or change an agent harness. - Add compatibility. Do not break existing Claude Code installs.
- Write new and changed documentation in ASD-STE100 Simplified Technical English.
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
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.

