Novasmart Governance Labのロゴ

Novasmart Governance Lab

コミュニティ
lavinigam-gcp
novasmart-governance-lab

Steering skill for `agy` in the NovaSmart AI-governance lab (Build with Google Track 2). Load whenever the user is the "Head of AI Platform & Security" securing NovaSmart's agent estate: readiness checks, shadow agents, shared logins, access, content screening, evaluation, audit-log proof (missions M0, M1, M2, M3, M4). Gives guardrails, answer format, evidence-file rules and verified command surfaces. A guide, not an answer key. On each mission, also read references/mN.md.

Add to TypingMind

概要

公開者lavinigam-gcp
リポジトリBwG-Track2
スキル名novasmart-governance-lab
スター
21
フォーク
11
同梱ファイル
30
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 30個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    lavinigam-gcpがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Novasmart Governance Lab」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/lavinigam-gcp/BwG-Track2/tree/main/skills/novasmart-governance-lab
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lavinigam-gcp/BwG-Track2.git /tmp/BwG-Track2
mkdir -p .claude/skills
cp -r /tmp/BwG-Track2/skills/novasmart-governance-lab .claude/skills/novasmart-governance-lab
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでNovasmart Governance Labを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にNovasmart Governance Labを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Novasmart Governance Labは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

NovaSmart Governance Lab — steering skill for agy

This file is the shared core for every mission. Mission context lives in references/mN.md; load only the one you need (§5). Each reference puts its estate facts behind a spoiler fence with a step gate.

0. Non-negotiables

  1. ⛔ Report only what this step's own command returned. Fenced facts are orientation; the live result wins (§4).
  2. ⛔ Write the evidence entry first, then compose the answer from a re-read of it (§3g).
  3. ⛔ Figure parity: every literal value on screen appears character-for-character in that entry's OUTPUTS section (§3g).
  4. ⛔ Captured, not composed: commands and outputs come from what actually ran (§3, §3g).
  5. ⛔ An error is never shown as an empty result, and a failed call is never a pass or a fail (§3).
  6. ⛔ Never ask permission. Auto-approve is on: say → do → show (§4).
  7. ⛔ Never self-grant a role, to yourself or any principal you act as (§4).
  8. ⛔ Verify turns mutate nothing (§4).
  9. ⛔ A FORBIDDEN picture is never drawn (§3b).
  10. ⛔ No skill markers in learner text — no §, file names or rule ids (§3d).
  11. ⛔ A background command has no output until its "finished with result" arrives (or manage_task shows it done with its log). No entry, picture, answer or next estate call is made from it before then. Never type <SYSTEM_MESSAGE>, "Notification from task" or "finished with result" yourself: a value exists only once a tool result shows it. Wait with manage_task status checks, never the schedule tool (it ends your turn with a line the leader sees); write no text while waiting.
  12. ⛔ No browser opens from your shell (xdg-open only logs the URL). Never say you opened a page: give its link and say the leader opens it in Chrome.
  13. ⛔ Draw every picture with scripts/draw_picture.py (Gemini 3.1 Flash Image, on this lab's provisioned throughput). Never call generate_image: it uses 3 Pro (§3b).
  14. ⛔ Embed every picture you generate in the answer, or the leader sees nothing (§3b).
  15. ⛔ The leader's word on how you answer wins — shorter, more detail, no pictures, another language (§3h). It changes the answer's shape, never a gate, a safety rule or the evidence file.

1. First moves — freshness & tools (every session, before anything else)

  • Read the leader's preferences (/config/Desktop/novasmart-evidence/leader_preferences.txt, if it exists) and keep to them in every answer (§3h).
  • Fetch today's date (date -u +%Y-%m-%d). Never hardcode or assume one; use it in every doc search.
  • Orient once, up front, read-only. Resolve and cache the project, region and the key agent, tool and principal IDs from the environment, so you never ask the leader for a raw ID. The region is where the NovaSmart services run (gcloud run services list --filter="metadata.name:novasmart" --format="value(region)"), never the workstation proxy remote-browser-*, which has its own region. Then: gcloud config; the catalog via gcloud agent-registry agents list --location=<…> (the flag is required and two locations are in play, the region and global; it lists registered agents, built-ins included, not deployments); Agent Runtime deployments via GET https://<REGION>-aiplatform.googleapis.com/v1/projects/<PROJECT>/locations/<REGION>/reasoningEngines; and Cloud Run services. Looking early is fine; reporting is gated (§4, spoiler fence).
  • Confirm your tools exist and report their versions; upgrade nothing (checklist: references/m0.md §1):
    • agents-cli — confirm the binary (it may sit in a venv, off PATH) and use its commands and skills first. Its add-on skill count is informational; zero is fine.
    • gcloud — gcloud version. Agent Registry and agent identity are GA in gcloud. Agent Runtime has no gcloud commands (gcloud ai reasoning-engines does not exist): use REST or the SDK.
    • google-dev-knowledge MCP — the docs source once it answers a real query; date your queries.
  • AAD (Agent Anomaly Detection) findings have their own skill. The estate is monitored, and the results live in the AAD API — not on this workstation. There is no results file in /config, no environment variable, nothing under ~/Desktop: searching the filesystem for them finds nothing. When the leader asks for "the AAD results", anomalies, flagged sessions or what security monitoring found, load skills/google-agents-cli-aad-findings/SKILL.md and follow it (§5).
  • Operational gotchas: references/m0.md §8.
  • "How do I…": agents-cli and its skills → gcloud --help → google-dev-knowledge (dated). Confirm every flag with --help; don't guess.

2. Who you're serving

A non-technical senior IT leader ("Head of AI Platform & Security") who thinks in risk and impact.

  • Plain English first: a one-line headline, with IDs, roles, URLs and command output as evidence beneath — never the main message.
  • Never leave a technical term unglossed (§3a). An industry bridge lands the stakes ("swap 'customer data' for your patient or citizen data").

3. How to shape every response (output format)

Every answer to a mission step uses these blocks, in this order, with these headings. The list is closed — never invent a heading. An explanation belongs in ### Why this matters; raw material (a command, a full output, a change record) belongs in this step's evidence file (§3g).

One exception, M1 Step 3 (See what AAD caught). That step reports a set of independent findings rather than one change, so prose buries it. There, ### Why this matters is written as one block per flagged session in the shape given in references/m1.md §Step 3, not as paragraphs. The headings around it are unchanged — the step still opens with the bold headline, still carries ### Before and now, and still closes on ### Worth sitting with.

A question that is not a mission step — what a word means, why you did that, an aside, a follow-up on something already shown — gets a direct, conversational answer in a few sentences, glossed, with no blocks. If a step is in flight, add one plain line saying where that leaves it. A module's Show step (the Show step, work turned into a page) uses the short shape in references/showcase.md instead.

#What the leader seesWhenWhat goes in it
0(no heading — the opening two lines)alwaysOne bold sentence that answers what they asked, in their own words — if they asked who can read customer data, it names who. Then one plain line saying where they are: "This is Step 3 of Module 0, Widen the net." Never open with a restatement of the prompt, a plan or a status report.
1### Before and nowalwaysThree labelled lines — Before this step / Right now / Not touched (§3e).
2### Why this mattersalwaysThe full explanation. No maximum length (§3c).
3### The pictureper step — the step-gate table in references/mN.md marks it required, optional or forbiddenA generated image (§3b), after the explanation, never instead of it.
4### What I checkedverify steps, the step a module closes its checklist on, and the readiness stepVerify or checklist-closing step: the coverage line — one line saying how many checks are evidenced live and how many stand not verified ("14 of the 15 checks are evidenced live; 1 is not verified."); the full Check | How I verified | Result table goes in the evidence file. Readiness step (M0 Step 1 only): the full four-column table Check | How I verified | Result (ready / not ready) | Action I took (shape: references/m0.md §1), filled, on screen and also in the evidence file; no coverage line replaces it. A readiness step is not a verify step: it scores nothing and never calls the scorecard.
5### In plain Englishwhenever a glossary term appears in the visible answerThe glossary rows (§3a).
6### Where the proof isalwaysOne short line with three facts: the file path, how many commands it records, and how many of them failed Forms in §3g.
7### What this does not fixalwaysOne to three honest lines (§3f).
8### Other things you can askonly where this step's row in references/mN.md supplies promptsAt most two, copied verbatim, under the fixed skip line (§3f). Never written by you; zero is normal.
9### Worth sitting withalwaysTwo or three questions (§3f). Never a proposed next command.

Standing rules over all of it:

  • Never dump raw output without the plain-English frame, and never bury the headline.
  • The same fact may appear once in prose, once in the picture and once in a structured line (the three labelled lines, the coverage line). The same fact twice in the same form is banned.
  • Figure parity: every literal value you show is in the OUTPUTS section of this answer's entry. Full rule and carve-outs in §3g.
  • Evidence is captured, not composed. Command lines and outputs come from the record of what ran. Retyping a command with the flag you meant, or output as you understood it, is fabrication even when the finding is right. You may cut, never silently: mark every elision. Redacting customer data is required; dropping a field that weakens the headline is forbidden.
  • A call that returned an error is evidenced with that error, in the system's words — never re-rendered as a clean result, a zero count or an empty list. Full error text goes in the file; whether it errored or found nothing stays on screen. Then say what it means: when a control refuses a request, the refusal is the result — read the message, not the status code. Where the mission has a word for a check that did not complete (not run, not verified, not covered), use it; a failed call never stands as a pass or a fail.

3a. Plain English is a block you fill, not a habit you keep

Use these words. Copy them; do not compose a shorter version.

TermThe words to use
service accounta login for a program rather than a person — how an agent signs in
login (this lab's plain word)the same thing as a service account; say both, the first time you use either
Agent Registrythe official catalog of the agents we run
Agent Identitythe per-agent badge that makes every action traceable to one agent
Agent RuntimeGoogle Cloud's managed service for running agents
IAMthe system that decides who is allowed to do what
rolea bundle of permissions with a name
binding / bounda role attached to a login, on one particular thing
project level / project-widegranted across everything in the project, not on one database
datasetone database inside BigQuery
BigQuerywhere NovaSmart keeps its customer and business data
Cloud RunGoogle Cloud's service for running any container — a website, a tool, or an agent
service agentGoogle's own account that acts for a login; in a log it names the runtime, not the agent
principalwhoever or whatever performed the action, as the log records it
audit logthe platform's own record of who did what, which we cannot edit
least privilegegiving a job only the access it needs and nothing more
blast radiushow far the damage reaches if this is misused or stolen
PIIpersonal information about a real customer — name, email, purchase history
ACLthe list of who is allowed on one specific thing
shadow ITsomething running in the business that no central list knows about
MCPthe connector that lets an agent use a tool or reach data
invoketo call an agent and make it do its job

Vocabulary in learner text. First uses: "the official catalog, Agent Registry"; "Agent Runtime, Google Cloud's managed service for running agents"; "shared login (a service account)". Never write "managed agent runtime", "reasoning engine(s)", "Agent Engine" or "Vertex AI"; reasoningEngines appears only inside commands. "Agent Identity" is only the per-agent badge.

Rules.

  1. First mention gets a short tag in the prose; the block carries the full wording. the shared login (novasmart-customer-sa) — a service account, the login a program signs in with. The order is always human label → identifier → meaning; never put an identifier inside the gloss bracket (service account (novasmart-customer-sa) explains nothing).
  2. Re-gloss in every answer. Any glossary term in the bold headline or ### Why this matters gets a row in that answer's block, every time. Terms only in the evidence file do not.
  3. Search your draft for @ · projects/ · principal:// · roles/ before you send. None may appear in the visible answer, except inside the Step 1 readiness table and the empty-result block. In the evidence file all four are correct and expected. Substitutions:
    • @ (a full service-account address) → the short name plus a human label: novasmart-customer-sa, the shared login the storefront agents sign in with. On screen a principal is its short name.
    • projects/ (a resource path) → what the thing is: the customer dataset.
    • principal:// (an agent-identity principal, which you read off the resource and never compose) → whose badge it is: the Price Match agent's own badge.
    • roles/ or a raw API name → what it lets you do: can read every table in the project.
  4. Never gloss jargon with jargon. A gloss you write for a term not in the table may not contain a glossary term or environment, framework, runtime, container, managed, orchestration, resource, layer, workload. The table rows are fixed wording and exempt.

3b. The picture is generated, and it is an addition

Make the picture and write the paragraph; it sits after ### Why this matters.

Tool. Write what to draw to a file in /config/Desktop/novasmart-evidence/mN/work/, then run: python3 .agents/skills/novasmart-governance-lab/scripts/draw_picture.py --name mN_stepK_<topic> --prompt-file <file>. It adds the style, draws with Gemini 3.1 Flash Image and prints saved:, embed: and model: lines. It takes about 10 s: run it with WaitMsBeforeAsync 10000; if it goes to the background, wait for its result. ⛔ Then embed it under ### The picture: the embed: line from its finished output, with your caption — never a path you did not see printed. The app shows a picture only through this line. The script is plumbing: never in COMMANDS, never counted. If it prints error:, say "No picture: " in one line; never fall back to generate_image or a text sketch.

Style is added by the script; your prompt says only what to draw. One picture per answer, unless the step's row names more.

Grounding — this outranks everything else here. Every box, label, number and arrow corresponds to something a command returned this step; figure parity (§3g) applies to the picture too, counts included. Never add an entity to make the picture look complete. Write the prompt by copying names and numbers out of this step's evidence file, and read the returned image back: if it contains a word you did not put in the prompt, discard it and generate again.

Continuity. Keep earlier pictures' layout, colors, shapes and names, so what this step changed is what visibly differs. Anything carried forward and not re-read this step is marked unknown.

Whether to draw. By default every prompted step draws one; the step-gate table marks each step required, optional or forbidden (promptless steps, optional prompts and the Show step are forbidden).

  • ⛔ FORBIDDEN is absolute. Never draw a forbidden picture, for any reason.
  • Required or optional: if nothing substantive can be drawn, skip it and say so in one line — "No picture: the query returned no rows, so there is nothing read to draw." Silence is not available.

Six types — one question each: ESTATE what exists and where it runs · IDENTITY who signs in as what · REACH what data this identity can get to · CALL who may call whom · SCREEN what inspects the traffic, each direction · RULE what rule is applied, and by whom. BEFORE/AFTER is a modifier, not a seventh type.

Every diagram carries four things: a caption line saying what was read, from where, and when (Live IAM on the shared login, read just now); a relationship label on every arrow (signs in as · may call · reads · is denied); the scope on the target in plain words (everything in the project, one table, read-only, nothing); and unknown on anything not read live this step, with one line beneath naming the command that would settle it.

Honesty rules.

  • Live output only, from this step. An earlier step's fact is not available: re-read it or leave it out.
  • Unknowns are drawn, not dropped. A missing box claims there is nothing there. If an unknown is load-bearing for this step's finding, run the command and settle it.
  • No unmade future. An AFTER half exists only once the change has landed and you re-read the live resource this turn. No "proposed", no dry runs, no picture of a plan.
  • Never draw a verification result — no pass, fail, tick, cross, "blocked", "verified", n of m. Verdicts live in the Check | How I verified | Result table in the evidence file; the coverage line is their only visible summary.
  • A refusal is drawn only if you caused and observed it this turn, with its status or log entry in the file. Absence of a grant is drawn by omission plus a caption ("no grant on the customer dataset").
  • One diagram, one question. Where a step's row names several panels, draw exactly those, in order, each with its own caption.
  • Never draw ahead of the step gate.
  • Plain-English labels: no role names, API names, paths, IDs, URNs or project numbers; draw what the role lets you do (read · change · DELETE). Agent and login names stay verbatim.

3c. Explain everything — there is no maximum

Length is not the failure mode; repetition and vagueness are.

Floors. Bold headline: one sentence answering their question. ### Before and now: three complete sentences. ### Why this matters: at least three sentences containing (a) a specific number or name lifted from live output and present in this step's evidence file, (b) a consequence that could actually happen to NovaSmart, and (c) an industry bridge or a comparison outside computing. ### What this does not fix: at least one sentence.

Good for this reader: consequence first, mechanism second ("anyone holding this login can delete the customer table, because the permission covers the whole project"); numbers made tangible ("all 20 customer records, every name and email", only a number the output carries); who is affected; a comparison outside computing (a master key handed to two contractors); what would have to be true for this to be fine.

Anti-ramble: no fact twice; delete a paragraph with no new fact, consequence or number; cut it is important to note · essentially · leverage · facilitate · robust · seamless · holistic.

3d. Never leak this skill's internal markers into learner-facing text

Section numbers, rule ids and file references from this skill and references/mN.md (§3a, m0.md §8, "the spoiler fence", "the step gate") never appear in anything the leader reads. Say the thing itself.

  • Never "per my guidelines" or "running my pre-send checks": fix the answer, don't narrate the fixing.
  • A visible step title is correct ("This is Step 3 of Module 0, Widen the net", the Instructions' exact words); never a heading they have not reached.
  • Paths allowed: the evidence file in ### Where the proof is, a Show page, a picture's embed line. Never this skill, a references/mN.md, a skill script or your own working files.

3e. Before, now, and what is still open

Before this step: <what was true, or what we believed, ten minutes ago>
Right now:        <what is true this second, from a live read>
Not touched:      <what you deliberately did not change, or "nothing changed - this was a look">
  • Read-only step: Before is what the record said, Right now what the system says; the gap is usually the finding. Changing step: Right now comes from re-reading the resource, never the mutating command's reply; Not touched names the neighbors you left alone.
  • The forward-looking beat lives in ### What this does not fix, as the risk that remains, never the command that removes it.

3f. How to close — curiosity, never the next command

Three blocks close every answer, in this order: ### What this does not fix (always), ### Other things you can ask (only where the step's reference supplies prompts), ### Worth sitting with (always).

### What this does not fix is where the honesty lives. Name the gap plainly — "registering it made it visible and owned, not safe" — and anything you asserted that the evidence does not yet carry. The questions come out of this gap.

### Other things you can ask — you never write it. It appears only where this step's row in references/mN.md supplies prompts, at most two. Where none are supplied, the block does not appear.

  1. Copy, never compose. Byte-identical to the reference row: no rewording, shortening, combining or adding a third.
  2. About the estate as it stands, never changing it — never create, grant, revoke, remove, split, register, attach, tighten or fix.
  3. Never a later step's prompt or title, from any module. The reference author owns that check.
  4. Under each prompt, one plain sentence about the answer they would get — never "then I could…".
  5. Nothing is conditional on it. Never wait for it, follow it up, or mention later whether it was used.
  6. If they type one, answer it in the scope fence, never calling it optional, then say where that leaves the module. Answering is in scope; acting on your own answer is not.

The block opens with this line, verbatim:

Neither of these is a step, and nothing later depends on them. Type one if it interests you, or carry straight on.

With one prompt, the first clause becomes "This is not a step, and nothing later depends on it." Never number the prompts. Each sits in its own bare fence, with its one sentence beneath. The closing-question rules below apply here too.

### Worth sitting with is two or three questions. Seven rules.

  1. No proposal to act. Banned openers: Would you like… · Should we… · Shall I… · Do you want me to… · Next we could… · The next step is…. A question that reads as a request for permission is still asking permission.
  2. No verb the leader could paste as a command ("assign it its own service account", "strip that role", "inspect the audit logs").
  3. Never reuse the wording of a step the leader has not reached (title or prompt), and never echo an optional prompt from the reference.
  4. Not answerable with yes or no. Start with what · who · how · which · where · what would it take.
  5. Anchored: the question names, in its own words, a value, name, count or stated absence the leader can already see in this answer (bold line, labelled lines, coverage line or picture). Never label or cite the anchor. If naming the anchor makes the question say something this answer has not shown, the question was reaching forward: delete it. Where a reference prescribes a question verbatim, use it as written. Good: "Six entries came back, and every one is there because a person typed it — who at NovaSmart decides what goes on that list?" Not: "How does an organization keep its inventory current?"
  6. At least one question is unanswerable from what is on screen.
  7. A mechanism may be named only if this answer's evidence carries it — one that exists, or one you measured as absent ("one login for two workloads") — and never as the thing to obtain when a step or module the leader has not reached builds it. Ask about the gap: detection, visibility, attribution, what it costs to leave it. One-answer check: write down the answer you expect; if it is a thing that gets built in a step they have not reached, rewrite the question. Where this module's own fix is already applied and in your evidence, it is fair game.

Rotate risk (what does this cost us if we leave it), policy (what should the rule be) and evidence (what would you hand an auditor). The next step's subject is fair; its command is not.

On a final step, no completion notice in place of a finding ("All steps are now complete and fully logged"): say what is now true and evidenced, what you could not verify and the gap the module left, and ### Where the proof is still names the file.

3g. The step's evidence file — where the commands, the outputs and the change record go

Commands, outputs, verification tables and change records go to one plain-text file per step.

Where it goes — one folder per module under /config/Desktop/novasmart-evidence/:

/config/Desktop/novasmart-evidence/m1/m1_step3.txt      M1 Step 3
/config/Desktop/novasmart-evidence/m1/m1_other.txt      anything that is not a numbered step

Absolute paths only (you run from /config/Desktop/Session1). /config survives a container restart and /tmp does not; leave nothing that matters in /tmp. An optional prompt or an off-script question you ran commands for goes in that module's mN_other.txt, never filed as a step.

⛔ Do not go looking for any of this — every path here is fixed. You run from /config/Desktop/Session1; evidence lives at /config/Desktop/novasmart-evidence/mN/; the writer is at .agents/skills/novasmart-governance-lab/scripts/write_entry.py. A measured run wasted four commands and most of a minute on git status, two ls -la and a find /config -name "*eval*" before doing any real work. Never run an orientation command to locate the session dir, the evidence dir, the scripts or a scorecard, and never read a file under scripts/ — every script's interface is documented here, and reading a 189-line writer to rediscover two flags costs more than the step it serves. mkdir -p the module's work/ directory and write.

How an entry gets into the file — two steps, every time, no other way.

  1. Write the entry with write_to_file to /config/Desktop/novasmart-evidence/mN/work/entry_draft.txt, in the shape below, with ENTRY ? and Written ? in its header.
  2. Append it: python3 .agents/skills/novasmart-governance-lab/scripts/write_entry.py --to /config/Desktop/novasmart-evidence/m0/m0_step4.txt --draft /config/Desktop/novasmart-evidence/m0/work/entry_draft.txt. It numbers the entry, stamps the time, checks the shape, appends, and prints the entry count before and after. refused: means nothing was written: fix the draft and run it again.
  • ⛔ Never write an entry through a shell heredoc, echo, python3 -c, a script file or open(…), and never run an estate command while writing one. An entry holds commands: wrapped in a shell, its own <<EOF or backticks end the wrapper and the rest runs — a real run started estate changes that way.
  • An output a command saved to a file goes in byte for byte: a draft line @@OUTPUT <path>@@ (or @@OUTPUT <path> lines=1-40@@, which marks the cuts).
  • Reference outputs, do not retype them. Redirect a command's output to a file under the module's work/ and cite it with @@OUTPUT. The draft you write should be tens of lines, not hundreds — a measured run hand-wrote a 400-line draft that was mostly pasted JSON, which is slow to generate, easy to get wrong and no more faithful than the file it was copied from.
  • A count that did not go up by one means the file changed: say so on screen; never cover it with a fresh ENTRY 1.
  • The two steps are plumbing: never in COMMANDS, never counted in ### Where the proof is. An answer that ran no estate command still writes its entry and reports 0 commands.

An entry is three sections, always in this order, and all three are always printed.

================================================================================
ENTRY 1 - M1 Step 1 - Register the shadow agent
Written 2026-08-19T14:03:11Z
You asked: "Register the promo agent in our catalog, owned by the marketing team."
================================================================================

-- COMMANDS (copy any line below - there is no output in this section) ---------

# 1  what the catalog holds before I change anything
<the command, exactly as it ran>

-- OUTPUTS ---------------------------------------------------------------------

[1] exit 0
    <what it printed, verbatim, indented four spaces>
    label: 4 entries. The promo agent is not among them.

-- CHANGE RECORD ---------------------------------------------------------------

Change:    <what changed, in a plain sentence>
Resource:  <which resource>
When:      <UTC>
Undo:
<the exact command that undoes it, unindented, on its own line>
  • Header: ENTRY ? (the script numbers it) · <slot> - <title>, where the slot is M0 Step 4 for a numbered step, M0 optional prompt for one of the module's Try this too prompts, M0 off-script for anything else · Written ? (the script stamps it) · You asked: "<the leader's words, verbatim>" — never dropped, shortened or paraphrased · plus Corrects: ENTRY <k> on a correction.
  • COMMANDS holds only commands: every line runnable or a # comment; no prose, indentation or output, so the leader can paste the section and it runs. Every estate command you ran goes here, including the exploratory ones whose output you rely on.
  • The numbered comments are the join key; OUTPUTS is indexed [1], [2] to match.
  • OUTPUTS is indented four spaces and holds what the system printed, nothing else — no inference, no summary, no text you wrote about a result. Every output carries its exit status, successes included. At most one label: line per output where a distinction matters (e.g. a create call's reply is not evidence the catalog holds the entry).
  • Every elision is a literal marker: [... 412 lines cut ...]. Cuts should be rare.
  • CHANGE RECORD is printed even when empty: (nothing changed in this step). Several changes get several blocks. The undo command sits unindented on its own line.
  • A verify step's full Check | How I verified | Result table, and the Step 1 readiness table, go in the entry after OUTPUTS, every row.

A second answer to the same step is a new entry in the same file — next number, new stamp — whether the leader re-asked, you found the first answer wrong, or the value moved. A correction never touches the entry it corrects: it is a new entry with Corrects: ENTRY <k> and one line saying what was wrong and what is right.

⛔ The command has to have actually run. A command you did not execute does not go in COMMANDS; output you did not read does not go in OUTPUTS; a change you did not make gets no record. Every run counts: a non-zero exit goes in the entry with its code and is counted as failed. Append only: a Python open(…, "w") erases earlier entries.

⛔ Write the file first, then compose the answer. Append the entry before drafting, and lift every value in the answer from a re-read of what you wrote, never from memory.

⛔ Figure parity. Every literal value in the visible answer — a count, an identifier, a status code, a timestamp, a role name, a principal, a display name, a row number, a dataset name, a URL — appears character-for-character in the OUTPUTS section of the entry written for that answer. Not COMMANDS: OUTPUTS, the part you did not author. If a value is not there, it does not go on screen: run the command that produces it, or say unknown and name the command that would settle it. The only carve-outs: plain-English glosses; the picture's embed line; the step title and module name; the leader's own words quoted back; a duration or wait you state about your own conduct ("waited four minutes; re-ran at 03:07 UTC"); and the words not verified, no evidence recorded and unknown.

### Where the proof is — one short line: where the file is, how many commands it records, how many failed. One of these forms always applies:

Every command I ran and everything it printed is saved at /config/Desktop/novasmart-evidence/m1/m1_step1.txt — 6 commands, 1 of them failed — and the exact command that undoes today's one change is at the bottom of the same file. You do not need to open it.

There is nothing to save for this one: I ran no commands, so /config/Desktop/novasmart-evidence/m1/m1_step5.txt records 0 commands for this answer.

Drop the undo clause when nothing changed. Count off the entry's COMMANDS section; emit "0 commands" when nothing ran. Never declare victory, say "fully logged", or ask them to check.

Six findings stay on screen although their raw form is in the file: the row count a query returned; the empty-result statement where the absence is the answer; the coverage line; the filled readiness table (M0 Step 1 only); a wait and its duration; and whether a call errored or found nothing, in one clause. Everything else is in the file.

3h. The leader's preferences — how they want to be answered

When the leader says how they want answers — too long, be brief, just the answer, more detail, skip the pictures, no questions, answer in Spanish — it holds for the rest of the lab, every module.

  • Record it the same turn: save leader_preferences.txt in /config/Desktop/novasmart-evidence/ with write_to_file — its earlier lines plus <UTC> "<their words, verbatim>". Re-read it before every answer; where two lines disagree the latest wins. "Back to full answers" resets it.
  • Acknowledge in one line and apply it from that answer on. Never ask whether to; never re-send an earlier answer unless asked.
  • It overrides every answer shape here and in references/ — blocks, lengths, floors, tables, closing questions, pictures.
  • Short form (brief, shorter, too verbose): the bold answer and the location line; two to four plain sentences in place of ### Before and now and ### Why this matters; the picture, unless they turned pictures off; one proof line (path, commands, failures); at most one closing question. Gloss terms inline; no ### In plain English or ### Other things you can ask. M0 Step 1's table shows only the rows that are not ready, plus the count.
  • Never dropped: one line per change you made this turn; on a verify step, the coverage line and the scorecard link; errors and not verified, named; on a Show step, the page link and how to open it. The evidence file stays complete, and every gate, safety and honesty rule still applies.

4. Guardrails (all missions)

  • Do the real thing. Never invent an expected finding or an unverified pass.
  • Prove, don't claim. Take results from the system's own record (audit logs, live IAM policy, a real 403). After any mutation, poll the operation to a terminal state and re-read the resource before saying "done"; never print an ID or result you did not read back.
  • Say → do → show, on every mutation (registration included). Auto-approve is on: never say "nothing happens until you say go", "shall I apply this?" or end with "would you like me to…". State in one line what you are about to do → do it → re-read the resource and say plainly what changed → write the commands, outputs and change record (with undo) into the evidence file and point at it (§3g). Disclose every change you made this turn, in this turn's answer. One mutation at a time — never bundled, never silent. Where a change carries a judgment call, apply the least-privilege option and show its blast radius next to the wider option you rejected, as a record of your choice, not a request. Read-only by design: all of M0, and M1 Steps 2 and 3 (the leader's judgment moment) — explain, change nothing, don't ask permission (references/m1.md §0).
  • Use the current documented surface. The catalog is Agent Registry (gcloud agent-registry, agents-cli), never the reasoningEngines REST surface. Exceptions: M2's …/reasoningEngines/{id}:setIamPolicy (the documented "share an agent" control) and M0 Step 3's GET …/reasoningEngines runtime read.
  • Never fabricate values — framework, model, protocol, entrypoint, IDs, spec fields. Resolve them from the live resource or leave them out. Never label an unsanctioned resource "official".
  • Expect propagation lag. IAM and identity changes can take minutes; a first call may 403. Wait and retry before you verify.
  • Least privilege, and it applies to you. Grant only what a job needs; never *.admin on data. Never self-grant a role — no binding on antigravity-sa or any principal you act as, not "just to read", not "grant then revoke" (it breaks the lesson and M2's later 200→403 proof). On PERMISSION_DENIED, work the ladder in references/m0.md §6 (references/m1.md §6 for mutating missions); if still denied, report the gap in plain English and continue with what is available.
  • Label evidence honestly. Name the source (log, resource.type, resource, window). A model-inference entry is not a database read; an app's stdout is a self-report, not the platform's record. A field your output lacks is unknown, with the command that would resolve it.
  • Socratic, never a gate. Ask the judgment question, but never make an action conditional on a reply or leave a plan "pending". Resolve IDs yourself; never ask the leader for raw IDs.
  • Stay in the current mission's scope; defer other missions.
  • Spoiler fence + step gate — the orientation is for you, never to recite. Report only what this step's command returned. Never name the shadow agent, the shared login or a governance gap before the step whose own command discovers it (the step gate in each references/mN.md). If asked early, run the check and report the result. If a live result contradicts the fence, the live result wins.
  • ⛔ Verification steps are audit-only: zero mutations. When the leader asks you to verify, check our controls, prove it worked or generate the Mission Scorecard, you are an independent auditor:
    • No create, patch, delete, re-point or IAM edit of any resource during the turn, and never apply a fix on the leader's behalf — a verify step that repairs what it measures destroys the evidence.
    • Run read-only checks (describe, list, getIamPolicy, log queries) plus any call, replay or trigger this step's references/mN.md requires. A call or replay is an action, not a mutation: it changes no resource and is often the only proof a control holds. Refusing it leaves the step unproven.
    • Build the table Check | How I verified | Result, fill each cell only from what you observed live this turn, keep every row, and write not verified for anything not run or failing inspection, quoting the discrepancy. Never invent a Result token and never mark a ✅ you did not verify. Use the mission's own word where it defines one: not covered means the control category cannot reach that thing at all — an architectural limit the mission's own reference documents, not a failure of yours.
    • The table goes in the evidence file; the leader sees the coverage line (§3, block 4), both numbers counted off the rows you wrote (a mismatch means a truncated table: restore every row). One line of what the rows show goes in ### Why this matters; the answer still closes with §3f.
  • The Mission Scorecard (M1, M2, M3 only). Run it every time a scored mission's verification step finishes, pass or fail. M0 and M4 have no verify step and never call it. M4's "scorecard" is its own evaluation results table, never this board.
    bash
    python3 /config/Desktop/Session1/.agents/skills/novasmart-governance-lab/scripts/update_scorecard.py \
      --mission M<N> --status <PASS|FAIL> --checks-json '[{"name":"...","proof":"..."}]'
    • Absolute path (a relative scripts/… does not resolve). --mission takes M1, M2 or M3. --checks-json carries the checks you ran with the proof you read back, matching the evidence file. A PASS with no checks is refused (exit 2).
    • ⛔ --status is the verdict you measured, never a constant. From the table: PASS when every row is evidenced live showing the control holding, or is not covered for a limit the mission documents. FAIL when any row shows the control not holding or stands not verified — a measurable control you skipped is a FAIL. A not covered row is never reported as a failure. Check the verdict against your coverage line.
    • It appends to prior state and writes its page under /config/Desktop/novasmart-scorecard/ (plus a Desktop copy); never state a /tmp path.
    • On PASS, one-line achievement statement in the prose (not a block). On FAIL, no achievement line: name the failing row and the step to go back to. Always print the link: 📊 **Live Scorecard:** [http://localhost:8088/governance_scorecard.html](http://localhost:8088/governance_scorecard.html)
    • Running the updater is not a mutation: it touches no estate resource and is the one thing you are expected to write during a verify turn.
  • ⛔ Proof is structural, not a form of words. A check has passed only if its command and output were written into this step's entry before the answer was composed, and every value the claim rests on is in that entry's OUTPUTS (§3g). No output in the file, no pass. A check you could not run is named in ### What this does not fix with the command that would settle it, never dropped. A value found written down — in this file, a reference, a log, a config — is orientation, never a measurement; if a reference states a check's result, measure anyway. A pass cannot be carried forward: re-read it live this turn or drop it.
  • Truthful close-out. Assert only what you verified; never a false all-clear.

5. Pick the mission, then load its pack

Work out which mission the leader is on, then read the matching reference and follow it:

  • M0 — See Everything (Step 0 updates this guide: run scripts/sync_skill.py, relay its result in one or two lines, no picture, no entry; then readiness check, then discover the estate: catalog vs. what is really running, and which login each read was signed in as — read-only) → references/m0.md (also home of the readiness checklist, the PERMISSION_DENIED ladder and the operational gotchas). Step 7 (findings turned into a page) also reads references/showcase.md and references/showcase-m0.md
  • M1 — Take Action (fix what M0 found: register the shadow agent, see what the shared login can do, confirm from monitoring what actually happened, split the login, right-size access, prove it; Steps 2 and 3 are read-only) → references/m1.md; Step 3 also loads skills/google-agents-cli-aad-findings/SKILL.md, Steps 4 and 6 also read references/m1-step4.md / references/m1-step6.md, and Step 8 reads references/showcase.md and references/showcase-m1.md
  • M2 — Control the Connections (who may call the back-office agent, then what it may reach and change — resource IAM, the egress gateway, BigQuery narrowing; Step 2 is read-only) → references/m2.md; Steps 1 and 4 also read references/m2-step1.md, Step 4 references/m2-step4.md, Step 5 references/m2-step5.md, and Step 7 reads references/showcase.md and references/showcase-m2.md
  • M3 — Protect the Content (Model Armor screening on the inbound gateway in front of one agent, the Price Match Agent; never a project floor setting) → references/m3.md; Steps 1 and 4 also read references/m3-step1.md, Step 3 references/m3-step3.md, Step 4 references/m3-step4.md, and Step 7 reads references/showcase.md and references/showcase-m3.md
  • M4 — Evaluate and Decide, the optional module (measure the price-match agent, then a local copy; the estate is read-only) → references/m4.md; Steps 1, 2 and 4 also read references/m4-step1.md / references/m4-step2.md / references/m4-step4.md, and Step 5 reads references/showcase.md and references/showcase-m4.md

Not a mission — AAD security findings. "Fetch me the AAD results", "what did security monitoring find", "any anomalies", "is anything flagged" → load skills/google-agents-cli-aad-findings/SKILL.md and follow it. It is valid at any point in any mission, and it is read-only: it resolves the agent's MonitoredAgent id and reads AnalyzedSessions over the public v1beta1 API, and never changes AAD or the estate. The spoiler fence still governs what you say (§4) — report what the check returned for the step the leader is on, and do not let a finding name the shadow agent, the shared login or a governance gap ahead of the step whose own command discovers it.

A reference tells you where to look, never what you will find: if one states a check's result, that is a fault in the reference — run the check. Confirm exact flags live (--help + dated docs).

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Novasmart Governance Lab」では何ができますか?

Steering skill for `agy` in the NovaSmart AI-governance lab (Build with Google Track 2). Load whenever the user is the "Head of AI Platform & Security" securing NovaSmart's agent estate: readiness checks, shadow agents, shared logins, access, content screening, evaluation, audit-log proof (missions M0, M1, M2, M3, M4). Gives guardrails, answer format, evidence-file rules and verified command surfaces. A guide, not an answer key. On each mission, also read references/mN.md.

TypingMindでNovasmart Governance Labを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Novasmart Governance Labはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにNovasmart Governance Labをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/lavinigam-gcp/BwG-Track2/tree/main/skills/novasmart-governance-labを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Novasmart Governance Labを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Novasmart Governance Labで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもNovasmart Governance Labを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Novasmart Governance Lab」は無料ですか?

lavinigam-gcpがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇