[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75K5P6GRRBGPT8EA0FRW1BF":3,"skill-same:01M75K5P6GRRBGPT8EA0FRW1BF":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M75K5P6GRRBGPT8EA0FRW1BF","Terraform",null,"Avoid common Terraform mistakes — state corruption, count vs for_each, lifecycle traps, and dependency ordering.","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fterraform\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: Terraform\ndescription: Avoid common Terraform mistakes — state corruption, count vs for_each, lifecycle traps, and dependency ordering.\nmetadata: {\"clawdbot\":{\"emoji\":\"🟪\",\"requires\":{\"bins\":[\"terraform\"]},\"os\":[\"linux\",\"darwin\",\"win32\"]}}\n---\n\n## State Management\n- Local state gets corrupted\u002Flost — use remote backend (S3, GCS, Terraform Cloud)\n- Multiple people running simultaneously — enable state locking with DynamoDB or equivalent\n- Never edit state manually — use `terraform state mv`, `rm`, `import`\n- State contains secrets in plain text — encrypt at rest, restrict access\n\n## Count vs for_each\n- `count` uses index — removing item 0 shifts all indices, forces recreation\n- `for_each` uses keys — stable, removing one doesn't affect others\n- Can't use both on same resource — choose one\n- `for_each` requires set or map — `toset()` to convert list\n\n## Lifecycle Rules\n- `prevent_destroy = true` — blocks accidental deletion, must be removed to destroy\n- `create_before_destroy = true` — new resource created before old destroyed, for zero downtime\n- `ignore_changes` for external modifications — `ignore_changes = [tags]` ignores drift\n- `replace_triggered_by` to force recreation — when dependency changes\n\n## Dependencies\n- Implicit via reference — `aws_instance.foo.id` creates automatic dependency\n- `depends_on` for hidden dependencies — when reference isn't in config\n- `depends_on` accepts list — `depends_on = [aws_iam_role.x, aws_iam_policy.y]`\n- Data sources run during plan — may fail if resource doesn't exist yet\n\n## Data Sources\n- Data sources read existing resources — don't create\n- Runs at plan time — dependency must exist before plan\n- Use `depends_on` if implicit dependency not clear — or plan fails\n- Consider using resource output instead — more explicit\n\n## Modules\n- Pin module versions — `source = \"org\u002Fname\u002Faws?version=1.2.3\"`\n- `terraform init -upgrade` to update — doesn't auto-update\n- Module outputs must be explicitly defined — can't access internal resources from outside\n- Nested modules: output must bubble up — each layer needs to export\n\n## Variables\n- No type = any — explicit `type = string`, `list(string)`, `map(object({...}))`\n- `sensitive = true` hides from output — but still in state file\n- `validation` block for constraints — custom error message\n- `nullable = false` to reject null — default is nullable\n\n## Common Mistakes\n- `terraform destroy` is permanent — no undo, use `-target` carefully\n- Plan succeeded ≠ apply succeeds — API errors, quotas, permissions discovered at apply\n- Renaming resource = delete + create — use `moved` block or `terraform state mv`\n- Workspaces not for environments — use separate state files\u002Fbackends per env\n- Provisioners are last resort — use cloud-init, user_data, or config management instead\n\n## Import\n- `terraform import aws_instance.foo i-1234` — imports existing resource to state\n- Doesn't generate config — must write matching resource block manually\n- `import` block (TF 1.5+) — declarative import in config\n- Plan after import to verify — should show no changes if config matches\n","## State Management\n- Local state gets corrupted\u002Flost — use remote backend (S3, GCS, Terraform Cloud)\n- Multiple people running simultaneously — enable state locking with DynamoDB or equivalent\n- Never edit state manually — use `terraform state mv`, `rm`, `import`\n- State contains secrets in plain text — encrypt at rest, restrict access\n\n## Count vs for_each\n- `count` uses index — removing item 0 shifts all indices, forces recreation\n- `for_each` uses keys — stable, removing one doesn't affect others\n- Can't use both on same resource — choose one\n- `for_each` requires set or map — `toset()` to convert list\n\n## Lifecycle Rules\n- `prevent_destroy = true` — blocks accidental deletion, must be removed to destroy\n- `create_before_destroy = true` — new resource created before old destroyed, for zero downtime\n- `ignore_changes` for external modifications — `ignore_changes = [tags]` ignores drift\n- `replace_triggered_by` to force recreation — when dependency changes\n\n## Dependencies\n- Implicit via reference — `aws_instance.foo.id` creates automatic dependency\n- `depends_on` for hidden dependencies — when reference isn't in config\n- `depends_on` accepts list — `depends_on = [aws_iam_role.x, aws_iam_policy.y]`\n- Data sources run during plan — may fail if resource doesn't exist yet\n\n## Data Sources\n- Data sources read existing resources — don't create\n- Runs at plan time — dependency must exist before plan\n- Use `depends_on` if implicit dependency not clear — or plan fails\n- Consider using resource output instead — more explicit\n\n## Modules\n- Pin module versions — `source = \"org\u002Fname\u002Faws?version=1.2.3\"`\n- `terraform init -upgrade` to update — doesn't auto-update\n- Module outputs must be explicitly defined — can't access internal resources from outside\n- Nested modules: output must bubble up — each layer needs to export\n\n## Variables\n- No type = any — explicit `type = string`, `list(string)`, `map(object({...}))`\n- `sensitive = true` hides from output — but still in state file\n- `validation` block for constraints — custom error message\n- `nullable = false` to reject null — default is nullable\n\n## Common Mistakes\n- `terraform destroy` is permanent — no undo, use `-target` carefully\n- Plan succeeded ≠ apply succeeds — API errors, quotas, permissions discovered at apply\n- Renaming resource = delete + create — use `moved` block or `terraform state mv`\n- Workspaces not for environments — use separate state files\u002Fbackends per env\n- Provisioners are last resort — use cloud-init, user_data, or config management instead\n\n## Import\n- `terraform import aws_instance.foo i-1234` — imports existing resource to state\n- Doesn't generate config — must write matching resource block manually\n- `import` block (TF 1.5+) — declarative import in config\n- Plan after import to verify — should show no changes if config matches\n",{"name":5,"metadata":23,"description":7},{"clawdbot":24},{"os":25,"emoji":29,"requires":30},[26,27,28],"linux","darwin","win32","🟪",{"bins":31},[32],"terraform","main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Fterraform",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add agisota\u002Fold-one --skill Terraform",{"tool":48,"command":49},"bunx","bunx skills add agisota\u002Fold-one --skill Terraform",{"tool":51,"command":52},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill Terraform","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fterraform\u002FSKILL.md",true,[56,62],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"_meta.json","REFERENCE","参考文档",128,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fterraform\u002F_meta.json",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},".clawhub\u002Forigin.json",141,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fterraform\u002F.clawhub\u002Forigin.json",[67,74,81,90,97,104],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]