agentleFS
Bhanuj-AIBhanuj-AI/ai-governance-oss/skills/model-runtime-capability-profile/SKILL.md

model-runtime-capability-profile

Skill2 starsChanged 4 months agoApache-2.0View on GitHub

Add or update a governed model-runtime capability adapter for an AI provider, model family, or API revision in AI Governance Control Plane OSS. Use when introducing support for a vendor/model's runtime parameters, endpoint contract, default values, bounds, profile version, Studio controls, or execution-parameter translation.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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
  1. Distinctive:

    Add a deterministic, provider-neutral contract that lets Studio render only valid model controls and lets candidate execution invoke the …

    line 8
  2. Distinctive:

    Read root AGENTS.md, then inspect the provider adapter and existing tests.

    line 14
  3. Distinctive:

    Read contract reference before changing a profile.

    line 15
  4. Very specific:

    Add the narrowest model-family match in src/ai_governance/services/models/runtime_capability_service.py.

    line 19
  5. Very specific:

    Update the matching ModelRuntimeAdapter request translation.

    line 26
  6. Distinctive:

    Keep the profile immutable once a model version is registered.

    line 29
  7. Distinctive:

    Add focused resolver, registry, execution-adapter, and REST tests.

    line 32
  8. Very specific:

    Treat DECLARED as curated, adapter-owned knowledge.

    line 37
  9. Very specific:

    Use UNVERIFIED for providers or model families without a reliable contract.

    line 39
  10. Distinctive:

    Do not expose speculative fields in Studio.

    line 40
  11. Distinctive:

    Never fetch provider schemas during candidate execution.

    line 43

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

Model Runtime Capability Profile

Add a deterministic, provider-neutral contract that lets Studio render only valid model controls and lets candidate execution invoke the matching provider API without relying on user guesses.

Workflow

  1. Read root AGENTS.md, then inspect the provider adapter and existing tests. Read contract reference before changing a profile.
  2. Establish the vendor-supported contract from official provider documentation or a reproducible integration response. Never infer support from a model family name alone when a version-specific rule is available.
  3. Add the narrowest model-family match in src/ai_governance/services/models/runtime_capability_service.py. Give it a stable profile_id and increment profile_version whenever the contract changes.
  4. Describe each portable user control with its canonical name, support flag, numeric type, bounds, and provider default when known. Do not include API keys, URLs, credentials, raw provider schemas, or undocumented controls.
  5. Update the matching ModelRuntimeAdapter request translation. It must send only parameters present in persisted candidate evidence and translate canonical names to endpoint-specific names in one place.
  6. Keep the profile immutable once a model version is registered. New evidence or an API change requires a new model version/profile version; never rewrite stored snapshots.
  7. Add focused resolver, registry, execution-adapter, and REST tests. Run the focused checks listed in the reference.

Rules

  • Treat DECLARED as curated, adapter-owned knowledge. Use VERIFIED only after an explicit, authenticated verification flow records its outcome.
  • Use UNVERIFIED for providers or model families without a reliable contract. Do not expose speculative fields in Studio.
  • Preserve custom/provider-specific configuration as an explicit future schema extension, not a silent free-form invocation payload.
  • Never fetch provider schemas during candidate execution. Optional discovery or verification happens only during registration/reverification and must not persist credentials.
  • Preserve tenant context through registration, execution, evidence, and provider calls. Do not log prompt content, tokens, credentials, or raw error bodies.

Done when

  • Studio renders editable fields only for supported parameters and leaves blank values to provider defaults.
  • A managed model version stores its selected profile snapshot.
  • Candidate execution sends only explicit candidate overrides plus the managed model defaults, using the adapter's endpoint translation.
  • Unsupported or incorrectly cased portable controls return a clear 400 before any provider invocation.

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.