# One definition, 15 agent tools

*Define the capability once, adapt its packaging, and check the result where it will actually be used.*

Different teams choose different AI coding tools. That should not require a security workflow to acquire a different meaning in every environment. The instructions, capabilities, and installation details need to fit each platform, while the underlying work remains recognizably the same.

I built ASH's agent-integration transpiler around a single validated definition. It generates the platform-specific packages rather than asking maintainers to keep fifteen separate copies aligned by hand. The interesting design question is what belongs in the shared definition, and what must remain a platform-specific decision.

## Start with the meaning, not the file format.

A common template is not automatically a common contract. One platform may want a rules file, another a plugin manifest, and another a skill directory. If the shared layer is just a large string with substitutions, platform constraints tend to leak into the content and become harder to review.

The transpiler uses a structured model for the shared content and metadata, then separates the output formats from the agent backends. That gives a maintainer two useful places to look: the definition that explains what the integration does, and the adapter that explains how a particular tool receives it.

**Two decisions, kept separate.**

1. What the capability means
2. How this platform receives it
3. Whether the generated package is valid

Content, packaging, and validation are related, but each has its own contract.

## Generation needs a check on the other side.

Generating a file proves that the generator ran. It does not prove that the target tool will accept the file. I gave the backends smoke-test coverage and connected validation to the platforms' own command-line tools and schemas, with versions pinned where the checks depend on them.

That makes the maintenance loop more concrete. A shared change can be checked across the output families, while a platform-specific change stays in its adapter. The intent is not to erase differences between tools. It is to make those differences explicit and testable.

## Portability is a maintenance property.

For the person installing an integration, portability means being able to use the workflow in the environment they already have. For the person maintaining it, portability means knowing where a change belongs and how to check every affected output. Both sides matter.

I prefer this pattern when the capability is shared but the surrounding ecosystems are moving independently. Keep the common meaning small and deliberate. Let the adapters own the differences. Make a generated package something that can be reviewed and validated, rather than an opaque byproduct of a build.

## What I take from it

Keep the shared definition in one place, then validate each generated integration against the tool that will use it.

## Code and further reading

- [ASH: the fifteen-platform integration transpiler](https://github.com/awslabs/automated-security-helper/pull/331)
- [ASH: agent integration source and installation guide](https://github.com/awslabs/automated-security-helper/tree/main/ash-agent-plugins)

[Read the illustrated essay on mh0pe.github.io](https://mh0pe.github.io/blog/one-definition-many-agent-tools/)
