[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MEJ50JWBKXVQFZB06875K":3,"skill-same:01M75MEJ50JWBKXVQFZB06875K":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M75MEJ50JWBKXVQFZB06875K","agents-as-iac-modules",null,"Use when onboarding, scaling, decommissioning, or auditing autonomous agents (or any \"software employee\") in a fleet. Model each agent as a reusable infrastructure-as-code module whose inputs are its facets, so its whole configuration is declarative, reviewable, and reproducible.","selamy-labs\u002Fagent-skills","selamy-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F287832944?v=4","01M75MDKJ0CKAM94KZ7TWQJM5Q","01M75MDKJNP3TATHAW1MX1FWM6",0,"MIT","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-as-iac-modules\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: agents-as-iac-modules\ndescription: Use when onboarding, scaling, decommissioning, or auditing autonomous agents (or any \"software employee\") in a fleet. Model each agent as a reusable infrastructure-as-code module whose inputs are its facets, so its whole configuration is declarative, reviewable, and reproducible.\n---\n\n# Agents as IaC Modules\n\nTreat each autonomous agent — each \"software employee\" — as a reusable\ninfrastructure-as-code MODULE, not a hand-assembled one-off. The agent's\nconfiguration becomes a single module instantiation: every meaningful property\nis an explicit input, the whole thing lives in version control, and the fleet is\nthe set of instantiations.\n\nWhen an agent is a module, the operations that are otherwise manual and\nerror-prone become declarative:\n\n- **Onboard** a new agent by instantiating the module with new inputs.\n- **Offboard** by removing the instantiation; the deletion is the audit trail.\n- **Scale** by adjusting an input (replicas, resources) or instantiating again.\n- **Audit** by reading the committed inputs — no archaeology across live systems.\n\nThis is the higher-level pattern. For the file layout of an individual module\nsee [[terraform-module-layout]]; for the rule that infrastructure must be\nreproducible from source rather than clicked together live see\n[[iac-not-ad-hoc]].\n\n## The six facets (the module inputs)\n\nEvery agent decomposes into the same facets. Make each one an explicit input so\ntwo agents differ only by their inputs, never by bespoke wiring.\n\n- **Identity** — the account or bot the agent acts AS, and what it is allowed to\n  act on. The agent is a first-class principal, not a borrowed human login.\n  Onboarding creates the identity; offboarding revokes it.\n- **Runtime** — where and how it executes: base image, CPU\u002Fmemory\u002Flimits,\n  replicas, restart and lifecycle policy. Sized per agent, declared not tuned by\n  hand on a live host.\n- **Capabilities** — the tools, skills, and external connectors it may use.\n  Capability is granted by input, so least-privilege is reviewable: you can read\n  off exactly what an agent can do.\n- **Knowledge** — the memory, wiki, or context stores it reads and writes,\n  declared as mounts or references. Knowledge persists across restarts and is\n  attached, not baked into the runtime.\n- **Secrets** — credential MAPPINGS only: a declared reference from a secret\n  manager to the agent, injected at runtime. Never the secret value, never\n  hand-placed into a running instance. Rotating upstream changes nothing in the\n  module.\n- **Schedule** — when the agent runs: always-on, cron, or event-triggered. A\n  declared input so \"when does this run\" is answerable from source.\n\n## The module interface\n\n```\nmodule \"agent\" {\n  identity     = ...   # the account\u002Fbot it acts as + its grants\n  runtime      = ...   # image, resources, replicas, lifecycle\n  capabilities = ...   # tools \u002F skills \u002F connectors allowed\n  knowledge    = ...   # memory \u002F wiki mounts and references\n  secrets      = ...   # declared secret-manager mappings (never values)\n  schedule     = ...   # always-on \u002F cron \u002F event-triggered\n}\n                 │\n                 ▼\n        one instantiated, running agent\n```\n\nThe fleet is then just a set of these instantiations side by side in version\ncontrol. A reviewer can diff one agent against another and see only the facets\nthat differ. A new agent is a copy with new inputs, not a fresh investigation of\nhow agents are built.\n\n## Honest limits\n\nNot every step is fully declarative, and pretending otherwise is the failure\nmode. Some inputs require a one-time MANUAL step that the module cannot perform:\n\n- **Interactive auth** — an OAuth consent flow, device login, or browser sign-in\n  to mint a token the module then references.\n- **App \u002F integration installation** — installing an app into an external\n  workspace or org, or approving a connector.\n- **External account creation** — registering the underlying identity when the\n  provider has no API for it.\n\nHandle these honestly: declare the *reference* (the secret mapping, the installed\napp id) in the module, and DOCUMENT the manual step that produces it as a named\nprerequisite with a verification check. The goal is \"everything that can be\ndeclarative is declarative, and the few steps that can't are written down\" — not\na false claim of full automation.\n\n## When to use\n\n- Standing up more than one agent, or expecting to add\u002Fremove agents over time.\n- You need onboarding\u002Foffboarding\u002Fscaling\u002Faudit to be reproducible and reviewable.\n- You want least-privilege and credential custody to be readable from source.\n\n## When not to use\n\n- A single throwaway or experimental agent with no reuse and no audit need —\n  the module machinery is overhead. Promote it to a module once a second agent\n  appears or it goes anywhere near production.\n\n## Conformance check\n\nRead the committed source — not a live instance — and confirm each facet is an\nexplicit input:\n\n- Identity is declared and scoped; it is not a shared or human login.\n- Runtime (image, resources, lifecycle) is in source, not tuned on a live host.\n- Capabilities are enumerated, so least-privilege is reviewable.\n- Knowledge stores are declared mounts\u002Freferences that survive restarts.\n- Secrets appear only as manager→agent mappings; no values, no hand-placed files.\n- Schedule is an explicit input.\n- Every manual prerequisite (interactive auth, app install, account creation) is\n  documented with a verification step, and the module references its output.\n","# Agents as IaC Modules\n\nTreat each autonomous agent — each \"software employee\" — as a reusable\ninfrastructure-as-code MODULE, not a hand-assembled one-off. The agent's\nconfiguration becomes a single module instantiation: every meaningful property\nis an explicit input, the whole thing lives in version control, and the fleet is\nthe set of instantiations.\n\nWhen an agent is a module, the operations that are otherwise manual and\nerror-prone become declarative:\n\n- **Onboard** a new agent by instantiating the module with new inputs.\n- **Offboard** by removing the instantiation; the deletion is the audit trail.\n- **Scale** by adjusting an input (replicas, resources) or instantiating again.\n- **Audit** by reading the committed inputs — no archaeology across live systems.\n\nThis is the higher-level pattern. For the file layout of an individual module\nsee [[terraform-module-layout]]; for the rule that infrastructure must be\nreproducible from source rather than clicked together live see\n[[iac-not-ad-hoc]].\n\n## The six facets (the module inputs)\n\nEvery agent decomposes into the same facets. Make each one an explicit input so\ntwo agents differ only by their inputs, never by bespoke wiring.\n\n- **Identity** — the account or bot the agent acts AS, and what it is allowed to\n  act on. The agent is a first-class principal, not a borrowed human login.\n  Onboarding creates the identity; offboarding revokes it.\n- **Runtime** — where and how it executes: base image, CPU\u002Fmemory\u002Flimits,\n  replicas, restart and lifecycle policy. Sized per agent, declared not tuned by\n  hand on a live host.\n- **Capabilities** — the tools, skills, and external connectors it may use.\n  Capability is granted by input, so least-privilege is reviewable: you can read\n  off exactly what an agent can do.\n- **Knowledge** — the memory, wiki, or context stores it reads and writes,\n  declared as mounts or references. Knowledge persists across restarts and is\n  attached, not baked into the runtime.\n- **Secrets** — credential MAPPINGS only: a declared reference from a secret\n  manager to the agent, injected at runtime. Never the secret value, never\n  hand-placed into a running instance. Rotating upstream changes nothing in the\n  module.\n- **Schedule** — when the agent runs: always-on, cron, or event-triggered. A\n  declared input so \"when does this run\" is answerable from source.\n\n## The module interface\n\n```\nmodule \"agent\" {\n  identity     = ...   # the account\u002Fbot it acts as + its grants\n  runtime      = ...   # image, resources, replicas, lifecycle\n  capabilities = ...   # tools \u002F skills \u002F connectors allowed\n  knowledge    = ...   # memory \u002F wiki mounts and references\n  secrets      = ...   # declared secret-manager mappings (never values)\n  schedule     = ...   # always-on \u002F cron \u002F event-triggered\n}\n                 │\n                 ▼\n        one instantiated, running agent\n```\n\nThe fleet is then just a set of these instantiations side by side in version\ncontrol. A reviewer can diff one agent against another and see only the facets\nthat differ. A new agent is a copy with new inputs, not a fresh investigation of\nhow agents are built.\n\n## Honest limits\n\nNot every step is fully declarative, and pretending otherwise is the failure\nmode. Some inputs require a one-time MANUAL step that the module cannot perform:\n\n- **Interactive auth** — an OAuth consent flow, device login, or browser sign-in\n  to mint a token the module then references.\n- **App \u002F integration installation** — installing an app into an external\n  workspace or org, or approving a connector.\n- **External account creation** — registering the underlying identity when the\n  provider has no API for it.\n\nHandle these honestly: declare the *reference* (the secret mapping, the installed\napp id) in the module, and DOCUMENT the manual step that produces it as a named\nprerequisite with a verification check. The goal is \"everything that can be\ndeclarative is declarative, and the few steps that can't are written down\" — not\na false claim of full automation.\n\n## When to use\n\n- Standing up more than one agent, or expecting to add\u002Fremove agents over time.\n- You need onboarding\u002Foffboarding\u002Fscaling\u002Faudit to be reproducible and reviewable.\n- You want least-privilege and credential custody to be readable from source.\n\n## When not to use\n\n- A single throwaway or experimental agent with no reuse and no audit need —\n  the module machinery is overhead. Promote it to a module once a second agent\n  appears or it goes anywhere near production.\n\n## Conformance check\n\nRead the committed source — not a live instance — and confirm each facet is an\nexplicit input:\n\n- Identity is declared and scoped; it is not a shared or human login.\n- Runtime (image, resources, lifecycle) is in source, not tuned on a live host.\n- Capabilities are enumerated, so least-privilege is reviewable.\n- Knowledge stores are declared mounts\u002Freferences that survive restarts.\n- Secrets appear only as manager→agent mappings; no values, no hand-placed files.\n- Schedule is an explicit input.\n- Every manual prerequisite (interactive auth, app install, account creation) is\n  documented with a verification step, and the module references its output.\n",{"name":5,"description":7},"main","54007b08157feb09e5bb9d7ff5ce4ddd21625dbf","skills\u002Fagents-as-iac-modules",3,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills","https:\u002F\u002Fselamy.dev","https:\u002F\u002Fgithub.com\u002Fselamy-labs","2026-11-15 03:50:58",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add selamy-labs\u002Fagent-skills --skill agents-as-iac-modules",{"tool":37,"command":38},"bunx","bunx skills add selamy-labs\u002Fagent-skills --skill agents-as-iac-modules",{"tool":40,"command":41},"pnpm","pnpm dlx skills add selamy-labs\u002Fagent-skills --skill agents-as-iac-modules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-as-iac-modules\u002FSKILL.md",true,[],[46,53,60,67,73,80],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M75MY70JMSNFHQX63G90SKZ7","silence-phrase","A seemingly normal skill.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsilence-phrase\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M75MY5PKVKY60M8H2DFTW58C","selamy-bad-skill","This skill has a vendor prefix that should be rejected.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fprefixed-name\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M75MY1TKXCH6WYN9ET0W4T02","oversized-description","This is a very long description that contains way too many words and should be rejected by the validator because it exceeds the forty five word limit that is enforced by the naming lint checker which ensures skill descriptions stay concise and readable for humans and machines alike without unnecessary verbosity or padding","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Foversized-description\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M75MY0SZ7EKT99NWJEJ8HKS2","missing-frontmatter","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmissing-frontmatter\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M75MXYMBREE6D7KRR87YM4DH","malicious-skill","A poisoned skill used only as a negative fixture for the security gate.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmalicious-skill\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M75MXX2B7AC2QSSRRQQXTA0N","leaking-org-name","A skill about something.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fleaking-org-name\u002FSKILL.md",[],[]]