[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77ME7KX7BK4H37744MTG2J2":3,"skill-same:01M77ME7KX7BK4H37744MTG2J2":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M77ME7KX7BK4H37744MTG2J2","security-practices",null,"Use when code touches a trust boundary — HTTP endpoints, webhooks, file uploads, auth, sessions, permissions, SQL or shell built from input, deserialization, service-to-service calls — when handling secrets, API keys, or .env files, on a CVE or vulnerability alert, when writing a threat model, or when choosing secret, SCA, SAST, or container scanners.","rahulmutt\u002Fdevkit","rahulmutt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8035100?v=4","01M77MDP08WTFYCS2MD2Q580EJ","Rahul Muttineni","01M77MDP11EQ3MN8WV69GM6JKP",0,"MIT","https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-practices\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: security-practices\ndescription: Use when code touches a trust boundary — HTTP endpoints, webhooks, file uploads, auth, sessions, permissions, SQL or shell built from input, deserialization, service-to-service calls — when handling secrets, API keys, or .env files, on a CVE or vulnerability alert, when writing a threat model, or when choosing secret, SCA, SAST, or container scanners.\n---\n\n# Security Practices\n\nTreat every boundary as a trust decision. In a distributed system, every place\ndata crosses a boundary — a network call, a queue, user input, another service,\na dependency — is untrusted until proven otherwise. When you design or change a\ncomponent, name the boundary, ask _what crosses it and who controls that_, and\napply the control it demands. **Defense in depth** and **least privilege** are\nthe two governing defaults: no single control is load-bearing, and every\nidentity gets the narrowest access that still works.\n\n## Commit a threat model\n\nThe boundary lens above is reasoning you do in the moment; a **threat model** is\nthat reasoning written down and committed to the repo. Without it, every agent\nand contributor re-derives what you are defending and against whom — usually\nincompletely. Commit the artifact so the assumptions are durable and\ndiscoverable: the assets you protect, the adversaries you assume, the boundaries\nthat matter, and what is explicitly out of scope.\n\nWrite one when a component handles untrusted input, secrets, or\ncross-trust-boundary traffic, and revisit it when those boundaries change. Keep\nit in the repo (location is yours) and point to it from `CLAUDE.md` \u002F\n`AGENTS.md` so agents load it before touching security-sensitive code. Full\nmethod and template →\n[`references\u002Fthreat-model.md`](references\u002Fthreat-model.md).\n\n## Controls — match the boundary to its control\n\n| Boundary \u002F risk           | Control                                   | Reach for it when                                        |\n| ------------------------- | ----------------------------------------- | -------------------------------------------------------- |\n| Caller identity unknown   | Authentication (service identity, tokens) | Any request crossing a service or trust boundary         |\n| Caller may exceed rights  | Authorization, least privilege            | The caller could reach data\u002Factions beyond its scope     |\n| Untrusted network in path | Transport encryption (TLS \u002F mTLS)         | Anything leaving the process, especially service↔service |\n| Input from outside        | Validate & canonicalize at the edge       | Parsing, deserializing, or trusting any external bytes   |\n| Credentials in the system | Secrets handling (inject at runtime)      | Any key, token, or password the code needs               |\n| Endpoint abuse \u002F replay   | Rate limits, idempotency keys, timeouts   | Public or expensive endpoints; non-idempotent writes     |\n| Code you did not write    | Supply-chain trust (pin + scan deps)      | Every third-party dependency                             |\n\nFor the reasoning behind these — boundary enumeration, hostile-network\nassumptions, identity, and supply chain — read\n[`references\u002Fdistributed-systems.md`](references\u002Fdistributed-systems.md).\n\n## Security tooling — match the scanner to the stack\n\nPick the categories that fit the repo and wire each where it catches problems\nearliest:\n\n| Category         | Catches                                                            | Integration point                               |\n| ---------------- | ------------------------------------------------------------------ | ----------------------------------------------- |\n| Secret scanning  | Committed credentials \u002F keys                                       | pre-commit (block) + CI                         |\n| Dependency \u002F SCA | Known CVEs in dependencies                                         | CI gate + scheduled (new CVEs land on old code) |\n| SAST             | Vulnerable code patterns (injection, SSRF, unsafe deserialization) | CI                                              |\n| Container \u002F IaC  | Misconfig in Dockerfile \u002F Terraform \u002F k8s                          | CI — only when those artifacts exist            |\n\nSecret-scan-in-pre-commit and SCA-in-CI are non-negotiable hygiene, not optional\npolish — the stance `testing-practices` takes on lint-in-CI. Container\u002FIaC\nscanning is conditional: run it only when the repo actually has those artifacts.\n\n### Universal tools (not language-specific)\n\n- **Secret scanning:** gitleaks (default), trufflehog, or detect-secrets —\n  language-agnostic; scan history and every commit.\n- **Container \u002F IaC:** Trivy (images, IaC, dependencies, and secrets in one),\n  Checkov (IaC policy), hadolint (Dockerfile), kube-linter (Kubernetes).\n\nMulti-purpose scanners (Trivy, osv-scanner) span several categories — prefer one\nthat covers the need over stacking redundant tools.\n\n## Boundaries with sibling skills\n\n- Scanner \u002F tool installation → **`developer-environment`** (mise-pinned,\n  devenv.nix fallback). This skill names the tool and the idiom; it never gives\n  install commands.\n- Workflow token permissions, action pinning, and where scanners sit in the\n  pipeline → **`ci-pipelines`**.\n\n## References\n\n- [`references\u002Fdistributed-systems.md`](references\u002Fdistributed-systems.md) — the\n  full trust-boundary design lens.\n- [`references\u002Fthreat-model.md`](references\u002Fthreat-model.md) — how to write and\n  commit a threat model (lightweight method + STRIDE deepening).\n- Per-language SCA + SAST tools:\n  [`references\u002Ftypescript.md`](references\u002Ftypescript.md),\n  [`references\u002Fpython.md`](references\u002Fpython.md),\n  [`references\u002Frust.md`](references\u002Frust.md),\n  [`references\u002Fgo.md`](references\u002Fgo.md),\n  [`references\u002Fhaskell.md`](references\u002Fhaskell.md).\n","# Security Practices\n\nTreat every boundary as a trust decision. In a distributed system, every place\ndata crosses a boundary — a network call, a queue, user input, another service,\na dependency — is untrusted until proven otherwise. When you design or change a\ncomponent, name the boundary, ask _what crosses it and who controls that_, and\napply the control it demands. **Defense in depth** and **least privilege** are\nthe two governing defaults: no single control is load-bearing, and every\nidentity gets the narrowest access that still works.\n\n## Commit a threat model\n\nThe boundary lens above is reasoning you do in the moment; a **threat model** is\nthat reasoning written down and committed to the repo. Without it, every agent\nand contributor re-derives what you are defending and against whom — usually\nincompletely. Commit the artifact so the assumptions are durable and\ndiscoverable: the assets you protect, the adversaries you assume, the boundaries\nthat matter, and what is explicitly out of scope.\n\nWrite one when a component handles untrusted input, secrets, or\ncross-trust-boundary traffic, and revisit it when those boundaries change. Keep\nit in the repo (location is yours) and point to it from `CLAUDE.md` \u002F\n`AGENTS.md` so agents load it before touching security-sensitive code. Full\nmethod and template →\n[`references\u002Fthreat-model.md`](references\u002Fthreat-model.md).\n\n## Controls — match the boundary to its control\n\n| Boundary \u002F risk           | Control                                   | Reach for it when                                        |\n| ------------------------- | ----------------------------------------- | -------------------------------------------------------- |\n| Caller identity unknown   | Authentication (service identity, tokens) | Any request crossing a service or trust boundary         |\n| Caller may exceed rights  | Authorization, least privilege            | The caller could reach data\u002Factions beyond its scope     |\n| Untrusted network in path | Transport encryption (TLS \u002F mTLS)         | Anything leaving the process, especially service↔service |\n| Input from outside        | Validate & canonicalize at the edge       | Parsing, deserializing, or trusting any external bytes   |\n| Credentials in the system | Secrets handling (inject at runtime)      | Any key, token, or password the code needs               |\n| Endpoint abuse \u002F replay   | Rate limits, idempotency keys, timeouts   | Public or expensive endpoints; non-idempotent writes     |\n| Code you did not write    | Supply-chain trust (pin + scan deps)      | Every third-party dependency                             |\n\nFor the reasoning behind these — boundary enumeration, hostile-network\nassumptions, identity, and supply chain — read\n[`references\u002Fdistributed-systems.md`](references\u002Fdistributed-systems.md).\n\n## Security tooling — match the scanner to the stack\n\nPick the categories that fit the repo and wire each where it catches problems\nearliest:\n\n| Category         | Catches                                                            | Integration point                               |\n| ---------------- | ------------------------------------------------------------------ | ----------------------------------------------- |\n| Secret scanning  | Committed credentials \u002F keys                                       | pre-commit (block) + CI                         |\n| Dependency \u002F SCA | Known CVEs in dependencies                                         | CI gate + scheduled (new CVEs land on old code) |\n| SAST             | Vulnerable code patterns (injection, SSRF, unsafe deserialization) | CI                                              |\n| Container \u002F IaC  | Misconfig in Dockerfile \u002F Terraform \u002F k8s                          | CI — only when those artifacts exist            |\n\nSecret-scan-in-pre-commit and SCA-in-CI are non-negotiable hygiene, not optional\npolish — the stance `testing-practices` takes on lint-in-CI. Container\u002FIaC\nscanning is conditional: run it only when the repo actually has those artifacts.\n\n### Universal tools (not language-specific)\n\n- **Secret scanning:** gitleaks (default), trufflehog, or detect-secrets —\n  language-agnostic; scan history and every commit.\n- **Container \u002F IaC:** Trivy (images, IaC, dependencies, and secrets in one),\n  Checkov (IaC policy), hadolint (Dockerfile), kube-linter (Kubernetes).\n\nMulti-purpose scanners (Trivy, osv-scanner) span several categories — prefer one\nthat covers the need over stacking redundant tools.\n\n## Boundaries with sibling skills\n\n- Scanner \u002F tool installation → **`developer-environment`** (mise-pinned,\n  devenv.nix fallback). This skill names the tool and the idiom; it never gives\n  install commands.\n- Workflow token permissions, action pinning, and where scanners sit in the\n  pipeline → **`ci-pipelines`**.\n\n## References\n\n- [`references\u002Fdistributed-systems.md`](references\u002Fdistributed-systems.md) — the\n  full trust-boundary design lens.\n- [`references\u002Fthreat-model.md`](references\u002Fthreat-model.md) — how to write and\n  commit a threat model (lightweight method + STRIDE deepening).\n- Per-language SCA + SAST tools:\n  [`references\u002Ftypescript.md`](references\u002Ftypescript.md),\n  [`references\u002Fpython.md`](references\u002Fpython.md),\n  [`references\u002Frust.md`](references\u002Frust.md),\n  [`references\u002Fgo.md`](references\u002Fgo.md),\n  [`references\u002Fhaskell.md`](references\u002Fhaskell.md).\n",{"name":5,"description":7},"main","f92fca73134478305fd12b6f207db4ac71a1a901","skills\u002Fsecurity-practices","https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit","https:\u002F\u002Fgithub.com\u002Frahulmutt","2026-10-19 03:03:07",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add rahulmutt\u002Fdevkit --skill security-practices",{"tool":36,"command":37},"bunx","bunx skills add rahulmutt\u002Fdevkit --skill security-practices",{"tool":39,"command":40},"pnpm","pnpm dlx skills add rahulmutt\u002Fdevkit --skill security-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-practices\u002FSKILL.md",true,[44,50,54,58,62,66,70],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fdistributed-systems.md","REFERENCE","参考文档",2129,"https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-practices\u002Freferences\u002Fdistributed-systems.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fgo.md",834,"https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-practices\u002Freferences\u002Fgo.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fhaskell.md",842,"https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-practices\u002Freferences\u002Fhaskell.md",{"path":59,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fpython.md",886,"https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-practices\u002Freferences\u002Fpython.md",{"path":63,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Frust.md",869,"https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-practices\u002Freferences\u002Frust.md",{"path":67,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fthreat-model.md",3776,"https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-practices\u002Freferences\u002Fthreat-model.md",{"path":71,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Ftypescript.md",945,"https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-practices\u002Freferences\u002Ftypescript.md",[75,82,89,96,103,110],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M77MEJQ0MXKQJZMXBGAXWRVZ","writing-clean-code","Use when refactoring or restructuring code, splitting a file or module that has grown too large, deciding whether to extract a helper or inline it, naming things, removing dead or unused code, drawing module or package boundaries, handling errors, writing comments, applying DDD or hexagonal (ports and adapters) architecture, or checking a language's idiomatic style.","https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-clean-code\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M77MEG5ZPHCG2VZKHV885VPQ","using-devkit","Use when starting any conversation or new engineering task in a repo with devkit installed — establishes that devkit skills exist and must be checked before acting.","https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fusing-devkit\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M77MECVQXHNQN0FQD62451G0","testing-practices","Use when writing, adding, or reviewing tests; choosing between unit, integration, snapshot\u002Fgolden, property, fuzz, mutation, e2e\u002FUI, or formal methods; when a test is flaky or the suite or CI is slow; or when deciding what runs in pre-commit, PR CI, or nightly.","https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Ftesting-practices\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M77ME3080TN2RA76XBGJ5WKV","navigable-codebases","Use when writing or updating a README, AGENTS.md, CLAUDE.md, GEMINI.md, ARCHITECTURE.md, or onboarding docs; when setting up a new repository; when adding or naming task-runner commands (mise tasks, Makefile, justfile, npm scripts); or when getting-started steps are missing, stale, or slow for newcomers.","https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fnavigable-codebases\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M77MDZ2DRB45G9V3BTJ6VXTK","developer-environment","Use when installing or upgrading any tool, runtime, CLI, or library — brew, apt, npm i -g, pip install, cargo install, nvm, pyenv, asdf — editing mise.toml or .tool-versions, bumping or pinning versions, adding a dependency, hitting \"command not found\", setting up a dev or CI toolchain, reviewing Renovate or Dependabot version bumps, or considering Bazel.","https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fdeveloper-environment\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M77MDVH8D6Y5SPF72DXMYBS3","commits-and-releases","Use when writing commit messages or splitting work into commits; when cutting, versioning, or tagging a release; when editing a CHANGELOG or bumping a version number; when setting up or fixing release-please, semantic-release, or changesets; or when a release has the wrong version or is missing changelog entries.","https:\u002F\u002Fgithub.com\u002Frahulmutt\u002Fdevkit\u002Fblob\u002Fmain\u002Fskills\u002Fcommits-and-releases\u002FSKILL.md",[],[]]