agentleFS
MicrosoftKnown publishermicrosoft/frontier-ai-governance-rvas/.agents/skills/ai-governance-session-builder/SKILL.md

ai-governance-session-builder

Skill0 starsChanged 2 months agoMITView on GitHub

Create, update, and audit guided AI governance co-implementation session kits in this repository. Use for a session, implementation module, implementation runbook, delivery-lead content, or Marp briefing. It keeps schema-version 2 manifests, implementation artifacts, safety checks, sources, and decks aligned.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read PRODUCT.md for the program model and constraints.

    line 19
  2. Very specific:

    Read the target and adjacent session.yaml files for sequence, scope, dependencies, customer work, cautions, and dated sources.

    line 20
  3. Very specific:

    Read references/brand-system.md before changing a deck.

    line 24
  4. Distinctive:

    Audit: Run the validator, inspect sourcing and implementation safety, repair requested problems, and rerun validation.

    line 31
  5. Distinctive:

    Do not renumber sessions. Keep the existing ID, slug, title, duration, and control scope unless the request explicitly changes one of them.

    line 34
  6. Very specific:

    Every session declares one mode in session.yaml:

    line 42
  7. Very specific:

    Extended: Use only when the session records a specific reason.

    line 46
  8. Very specific:

    Use schema_version: 2. Define identity and scope, the implementation mode, 3-5 plain-language outcomes, deliverables, and authoritative …

    line 78
  9. Distinctive:

    Write control objectives and outcomes to match what the implementation does: deploy, configure, or validate.

    line 83
  10. Distinctive:

    Use the contract's participant-instruction clarity rules.

    line 98
  11. Very specific:

    Use the one to three official sources required under Architecture guidance.

    line 102
  12. Distinctive:

    Keep source-check and access dates in manifest metadata.

    line 107
  13. Distinctive:

    Use the shared level-two headings in the contract without adding or renaming any.

    line 115
  14. Very specific:

    Use implementation/artifacts/ for production-shaped implementation definitions.

    line 143
  15. Distinctive:

    Keep an artifact only when it does at least one real job: supplies automation or policy, checks live state, supports an operational action, …

    line 149
  16. Distinctive:

    Use transparent Bicep, PowerShell, JSON/YAML, policy, or KQL.

    line 154
  17. Distinctive:

    Keep both preflight scripts focused on prerequisites, unresolved decisions, the exact approved implementation scope, and deployment preview …

    line 159
  18. Distinctive:

    Every implementation document states what remains in operation and how to restore or remove the implemented scope through the approved …

    line 162
  19. Very specific:

    Use deck.md, the bundled theme, RVAP logos, and unmodified Microsoft icons.

    line 171
  20. Distinctive:

    Check identity, mode, outcomes, implementation-file consumers, artifact value, authoritative state, scope, safety gates, restore guidance, …

    line 181
  21. Distinctive:

    Do not keep generated HTML or PDF.

    line 195

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

AI Governance Session Builder

Build one coherent implementation kit. session.yaml is the source of truth for numbered sessions; module.yaml is the source of truth for optional modules. The implementation document, implementation artifacts, scripts, and deck must agree with the applicable manifest.

Read first

  1. Read PRODUCT.md for the program model and constraints.
  2. Read the target and adjacent session.yaml files for sequence, scope, dependencies, customer work, cautions, and dated sources.
  3. Read references/session-contract.md. For an optional module, also read references/module-contract.md.
  4. Read references/brand-system.md before changing a deck.
  5. Inspect adjacent sessions for useful patterns, then verify time-sensitive product facts.

Operating modes

  • Create: Scaffold a complete kit and replace every scaffold placeholder.
  • Update: Change the manifest first, then reconcile every surface.
  • Audit: Run the validator, inspect sourcing and implementation safety, repair requested problems, and rerun validation. Do not edit when the request is review-only.

Do not renumber sessions. Keep the existing ID, slug, title, duration, and control scope unless the request explicitly changes one of them.

Optional modules live under modules/, have no numeric ID or program phase, and never alter the 14-session count. Follow references/module-contract.md and validate them with the same validator.

Implementation modes

Every session declares one mode in session.yaml:

  • Standard: The default. Implement the control and run one concise, observable check. Keep only the decision points and stop conditions that protect the implementation.
  • Extended: Use only when the session records a specific reason. Confirm the intended path and the blocked or failure path, then pause for a delivery-owner checkpoint. verify.ps1 is optional when automation helps.

Neither mode creates an evidence package or temporary resources solely to prove a result. Do not add test fixtures or fixture-cleanup scripts.

Scaffold

python .agents\skills\ai-governance-session-builder\scripts\scaffold_session.py `
  --repo-root . `
  --id 01 `
  --slug platform-baseline `
  --title "Microsoft Foundry platform baseline and inventory" `
  --duration-minutes 180

The command refuses to overwrite an existing session.

Build sequence

1. Verify current facts

Recheck product names, availability, licensing, stable role IDs, resource types, API versions, commands, policy aliases, quota, and networking requirements against authoritative Microsoft sources. Record the URL, access date, and supported claim in session.yaml. Turn uncertainty into an actionable preflight decision rather than guessing. This is author quality control, not participant work.

2. Complete session.yaml

Use schema_version: 2. Define identity and scope, the implementation mode, 3-5 plain-language outcomes, deliverables, and authoritative sources. An extended session must state why the extra checks are needed. Do not add outcome IDs, acceptance criteria, evidence references, fixture paths, or a structured disposition block.

Write control objectives and outcomes to match what the implementation does: deploy, configure, or validate. Say that the platform enforces a control only when the platform blocks every in-scope change path. If an operator can make an out-of-path change, describe the configuration, check, or remediation instead.

For every deliverables.leave_behind path, add a matching retained_files entry with the file's consumer and operational purpose. A repository location or a description such as “operational control” is not an operational purpose.

3. Write the implementation document

implementation/README.md is the one participant-facing implementation document. Explain the control, required decisions, stop conditions, implementation path, expected result, and what happens after implementation. Keep stable principles separate from time-sensitive details.

Use the contract's participant-instruction clarity rules. Name the resource, identity, environment, scope, role, and observable state that each instruction refers to. Define substitute controls through inspectable state rather than calling them “equivalent.”

Use the one to three official sources required under Architecture guidance. Add another participant-facing link only when it is needed for current product behavior or a supported task path. Use sources already recorded in the manifest. Do not reproduce the full source list or link every product mention.

Keep source-check and access dates in manifest metadata. Do not repeat those dates in the implementation guide, deck, presenter notes, or generated participant pages.

Describe the current design and operating boundary directly. Do not explain discarded artifacts, absent starter or solution trees, evidence packages, or repository simplification history in participant content. Keep negative wording only when it prevents an unsafe action, narrows a real scope claim, or distinguishes configuration from enforcement.

Use the shared level-two headings in the contract without adding or renaming any. The site generator groups them into six chapter pages: scope and outcomes, architecture, before you start, decisions and boundaries, implementation, and validation and operations. Under the scope heading, write What we will do, Why it matters, and Boundaries as ordered level-three subsections. The first subsection starts with one short objective, then states the in-session change and observable result. The second states the concrete problem first and the solution second. The third keeps only the changed scope, authoritative state, main exclusion, and next handoff; detailed failure conditions belong later. Then write Architecture at a glance, Design choices and tradeoffs, and Architecture guidance under the Architecture heading. Explain the main flow before product detail. Include a useful decision table and one to three official Microsoft links already recorded in the manifest. Diagrams are optional. A referenced diagram needs editable .excalidraw source, rendered .svg, and meaningful alt text; keep official Microsoft icons unchanged. The generated Who should join and What you need blocks follow the complete scope content. Detailed preparation stays on the Before you start page. A substantial field reference may appear directly after Decisions and stop conditions; it remains part of that chapter.

Standard sessions contain one short Confirm the result step. Extended sessions add an intended path check, a blocked or failure path check, and a delivery-owner checkpoint. Do not ask participants to collect screenshots, export logs, assemble proof, or save a separate validation record.

The implementation-file table classifies each artifact as Deployment, Runtime, or Record and names its consumer. Operational purpose remains in manifest retained_files metadata. Keep live Microsoft service state authoritative unless the repository intentionally owns desired state. In that case, state which deployment or reconciliation process consumes the repository definition.

4. Build one implementation tree

Use implementation/artifacts/ for production-shaped implementation definitions. Do not create parallel incomplete and completed trees. Artifacts must parse or compile while unresolved customer decisions use explicit __REQUIRED_NAME__ values. preflight.ps1 and preflight.sh must name and reject each one before a state change. Every shipped PowerShell script must have a Bash counterpart with the same behavior and safety checks.

Keep an artifact only when it does at least one real job: supplies automation or policy, checks live state, supports an operational action, acts as a downstream machine contract, or records a customer decision the platform cannot reconstruct. Merge, remove, or explicitly justify files that only mirror live service state, restate another file, or prove that repository files agree.

Use transparent Bicep, PowerShell, JSON/YAML, policy, or KQL. Scripts stop on error and never accept secrets as command arguments. Do not create disposable resources for a lab check.

5. Plan safe operation and restore

Keep both preflight scripts focused on prerequisites, unresolved decisions, the exact approved implementation scope, and deployment preview where the platform supports one.

Every implementation document states what remains in operation and how to restore or remove the implemented scope through the approved change path. Pair each PowerShell command block with its Bash form immediately afterward so the generated site can present shell tabs. Add removal automation only when it is safe and useful. The PowerShell version uses SupportsShouldProcess and ConfirmImpact = "High"; both versions check an implementationSession marker and remove only the documented implementation scope.

6. Author the briefing deck

Use deck.md, the bundled theme, RVAP logos, and unmodified Microsoft icons. Cover the control, outcomes, a concise architecture overview, implementation tradeoffs, the implementation path, safety gates, expected result, and operating state. Keep the established briefing depth. Merge slides that would repeat the same point, and do not add proof, evidence, formal acceptance, or routine review sections. Use the implementation slide class. End with a closing slide whose only visible content is Thank you!; the theme supplies the white text and navy-to-blue gradient. Presenter notes contain short delivery cues.

Reconcile and validate

Check identity, mode, outcomes, implementation-file consumers, artifact value, authoritative state, scope, safety gates, restore guidance, and source dates across the kit. Then run:

python .agents\skills\ai-governance-session-builder\scripts\validate_session.py `
  sessions\01-platform-baseline

python .agents\skills\ai-governance-session-builder\scripts\validate_session.py `
  sessions\01-platform-baseline --render

python .agents\skills\ai-governance-session-builder\scripts\validate_session.py `
  modules\delegated-api-access --render

Do not keep generated HTML or PDF. A kit is complete when preflight gates unresolved decisions, the implementation check is clear, links resolve, validation passes, and the deck renders when the renderer is available.

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.