[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ES13ANM1VH41P6GGSPSZBT":3,"skill-same:01M7ES13ANM1VH41P6GGSPSZBT":46},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7ES13ANM1VH41P6GGSPSZBT","runtime-feature-flags",null,"Add, roll out, promote, graduate, or remove Kandev runtime feature flags and release toggles across the backend and frontend. Use whenever a task mentions a feature flag, release toggle, staged rollout, kill switch, or graduating a flag.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fruntime-feature-flags\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: runtime-feature-flags\ndescription: Add, roll out, promote, graduate, or remove Kandev runtime feature flags and release toggles across the backend and frontend. Use whenever a task mentions a feature flag, release toggle, staged rollout, kill switch, or graduating a flag.\n---\n\n# Runtime Feature Flags\n\nUse this checklist for temporary release toggles and risky features. It is\nself-contained: do not depend on the agent having read an ADR or public docs.\nRead `apps\u002Fbackend\u002FAGENTS.md` and `apps\u002Fweb\u002FAGENTS.md` when the change touches\nthose subtrees.\n\n## Invariants\n\n- The backend is authoritative. A disabled feature must not be reachable through\n  HTTP, WebSocket, MCP, agent-tool, or background-job entry points.\n- A new release toggle is off in every shipped profile when it is merged. The\n  disabled path preserves the existing behavior and fails closed before deriving\n  data, writing state, dispatching work, or exposing a capability.\n- Effective values are ordered: explicit environment variable, SQLite override,\n  then profile default. An explicit environment variable locks the admin UI.\n- Use one identity across layers: `features.\u003CcamelCaseKey>`,\n  `KANDEV_FEATURES_\u003CUPPER_SNAKE_CASE>`, a Go `FeaturesConfig` field, its JSON tag,\n  and the matching frontend key. Never add a parallel flag map or switch.\n- Never reuse an identity recorded in the repository's append-only retired\n  registry. Before relying on retirement, verify that `retiredRuntimeFlagIdentities`\n  and its collision\u002Fcompleteness test exist; if they do not, add that\n  runtimeflags infrastructure before removing a live flag.\n\n## Add a flag\n\nUpdate these layers in the same change:\n\n1. **Profile default:** add `KANDEV_FEATURES_\u003CNAME>` under `features:` in the\n   root `profiles.yaml`; use `prod: \"false\"`, `dev: \"false\"`, and `e2e: \"false\"`\n   for a release toggle unless the task explicitly documents a test-only\n   exception.\n2. **Backend config:** add a `bool` field with explicit `mapstructure` and\n   `json` tags to `apps\u002Fbackend\u002Finternal\u002Fcommon\u002Fconfig\u002Fconfig.go`.\n3. **Registry\u002Fconfig binding:** add exactly one metadata registration to\n   `apps\u002Fbackend\u002Finternal\u002Fruntimeflags\u002Fregistry.go`: key, env var, kind, label,\n   description, stability, risk, and restart\u002Fmutability metadata. The registry\n   definition is metadata-only; add the key\u002Fenv constants and update\n   `OptionsFromConfig`, `ValuesFromConfig`, and `ApplyStatesToConfig` in\n   `runtimeflags\u002Fconfig.go` for typed config wiring.\n4. **Backend gates:** gate construction and every enabled-only entry path at the\n   narrow composition boundary. Do not only hide the frontend; direct callers\n   must receive the legacy behavior or a safe rejection.\n5. **Frontend contract:** add the all-off key to\n   `apps\u002Fweb\u002Flib\u002Fstate\u002Fslices\u002Ffeatures\u002Ftypes.ts`. Use `useFeature()` for client\n   surfaces and `notFound()` from the relevant server layout\u002Fpage when a route\n   subtree must be unavailable. SSR data must remain fail-closed.\n6. **Tests:** add enabled\u002Fdisabled behavior tests for each changed backend path\n   and frontend surface. Run the existing registry\u002Fprofile\u002Ffrontend contract\n   tests; add focused tests for normalization, route visibility, and disabled\n   side-effect prevention where applicable.\n\nThe completeness checks require exact equality between profile keys, typed\nbackend fields\u002Fregistrations, and frontend default keys. They do not discover\nsemantic call sites, so trace the feature's HTTP, WebSocket, MCP, agent, worker,\nand startup paths manually.\n\n## Roll out and promote\n\n1. Merge with all shipped profile defaults off.\n2. Enable one installation through **Settings > System > Feature Toggles** or an\n   explicit environment variable, restart when metadata requires it, and test\n   real workflows.\n3. When ready for everyone, change only the `prod` profile value to `\"true\"` for\n   the next release. Retain the registry entry and backend\u002Ffrontend gates as a\n   kill switch so operators can still disable the feature.\n\n## Graduate and remove the flag\n\nAfter the feature has proven itself as the default-on behavior, make the new\nbehavior unconditional and remove the live flag end-to-end:\n\n- remove the profile entry and `FeaturesConfig` field;\n- remove the active registry registration;\n- remove backend conditionals and legacy branches;\n- remove the frontend default, `useFeature()` checks, and route gates;\n- remove flag-specific tests and documentation while keeping permanent behavior\n  coverage.\n\nBefore removing the registration, verify the append-only\n`retiredRuntimeFlagIdentities` registry and its collision\u002Fcompleteness test\nexist, then append the exact key and environment variable in `registry.go`:\n\n```go\n{key: \"features.example\", envVar: \"KANDEV_FEATURES_EXAMPLE\"},\n```\n\nDo not delete old `runtime_flag_overrides` rows as part of graduation. Unknown\nrows are intentionally inert, and the retired identity prevents stale operator\nstate from reactivating a future feature. Never reuse either the key or env var.\n\n## Verification and handoff\n\nRun the focused checks appropriate to the change:\n\n- In a fresh worktree, run `pnpm install --frozen-lockfile` from `apps\u002F` before\n  any pnpm-based checks, tests, lint, or commits.\n- from `apps\u002Fbackend`: `go test .\u002Finternal\u002Fruntimeflags .\u002Finternal\u002Fcommon\u002Fconfig .\u002Finternal\u002Fprofiles`;\n- from the repository root: `make -C apps\u002Fbackend lint`;\n- from `apps`: `pnpm --filter @kandev\u002Fweb test -- lib\u002Fstate\u002Fslices\u002Ffeatures\u002Ffeatures-contract.test.ts`;\n- from `apps\u002Fweb`: `pnpm run typecheck` and `pnpm run lint`;\n- run affected E2E coverage when the gated surface is user-visible;\n- run `git diff --check` before handoff.\n\nReport the flag key\u002Fenv identity, profile defaults, every gated entry path,\ndisabled\u002Fenabled test evidence, restart requirements, and whether the change is\nstill a kill switch or has been fully graduated.\n","# Runtime Feature Flags\n\nUse this checklist for temporary release toggles and risky features. It is\nself-contained: do not depend on the agent having read an ADR or public docs.\nRead `apps\u002Fbackend\u002FAGENTS.md` and `apps\u002Fweb\u002FAGENTS.md` when the change touches\nthose subtrees.\n\n## Invariants\n\n- The backend is authoritative. A disabled feature must not be reachable through\n  HTTP, WebSocket, MCP, agent-tool, or background-job entry points.\n- A new release toggle is off in every shipped profile when it is merged. The\n  disabled path preserves the existing behavior and fails closed before deriving\n  data, writing state, dispatching work, or exposing a capability.\n- Effective values are ordered: explicit environment variable, SQLite override,\n  then profile default. An explicit environment variable locks the admin UI.\n- Use one identity across layers: `features.\u003CcamelCaseKey>`,\n  `KANDEV_FEATURES_\u003CUPPER_SNAKE_CASE>`, a Go `FeaturesConfig` field, its JSON tag,\n  and the matching frontend key. Never add a parallel flag map or switch.\n- Never reuse an identity recorded in the repository's append-only retired\n  registry. Before relying on retirement, verify that `retiredRuntimeFlagIdentities`\n  and its collision\u002Fcompleteness test exist; if they do not, add that\n  runtimeflags infrastructure before removing a live flag.\n\n## Add a flag\n\nUpdate these layers in the same change:\n\n1. **Profile default:** add `KANDEV_FEATURES_\u003CNAME>` under `features:` in the\n   root `profiles.yaml`; use `prod: \"false\"`, `dev: \"false\"`, and `e2e: \"false\"`\n   for a release toggle unless the task explicitly documents a test-only\n   exception.\n2. **Backend config:** add a `bool` field with explicit `mapstructure` and\n   `json` tags to `apps\u002Fbackend\u002Finternal\u002Fcommon\u002Fconfig\u002Fconfig.go`.\n3. **Registry\u002Fconfig binding:** add exactly one metadata registration to\n   `apps\u002Fbackend\u002Finternal\u002Fruntimeflags\u002Fregistry.go`: key, env var, kind, label,\n   description, stability, risk, and restart\u002Fmutability metadata. The registry\n   definition is metadata-only; add the key\u002Fenv constants and update\n   `OptionsFromConfig`, `ValuesFromConfig`, and `ApplyStatesToConfig` in\n   `runtimeflags\u002Fconfig.go` for typed config wiring.\n4. **Backend gates:** gate construction and every enabled-only entry path at the\n   narrow composition boundary. Do not only hide the frontend; direct callers\n   must receive the legacy behavior or a safe rejection.\n5. **Frontend contract:** add the all-off key to\n   `apps\u002Fweb\u002Flib\u002Fstate\u002Fslices\u002Ffeatures\u002Ftypes.ts`. Use `useFeature()` for client\n   surfaces and `notFound()` from the relevant server layout\u002Fpage when a route\n   subtree must be unavailable. SSR data must remain fail-closed.\n6. **Tests:** add enabled\u002Fdisabled behavior tests for each changed backend path\n   and frontend surface. Run the existing registry\u002Fprofile\u002Ffrontend contract\n   tests; add focused tests for normalization, route visibility, and disabled\n   side-effect prevention where applicable.\n\nThe completeness checks require exact equality between profile keys, typed\nbackend fields\u002Fregistrations, and frontend default keys. They do not discover\nsemantic call sites, so trace the feature's HTTP, WebSocket, MCP, agent, worker,\nand startup paths manually.\n\n## Roll out and promote\n\n1. Merge with all shipped profile defaults off.\n2. Enable one installation through **Settings > System > Feature Toggles** or an\n   explicit environment variable, restart when metadata requires it, and test\n   real workflows.\n3. When ready for everyone, change only the `prod` profile value to `\"true\"` for\n   the next release. Retain the registry entry and backend\u002Ffrontend gates as a\n   kill switch so operators can still disable the feature.\n\n## Graduate and remove the flag\n\nAfter the feature has proven itself as the default-on behavior, make the new\nbehavior unconditional and remove the live flag end-to-end:\n\n- remove the profile entry and `FeaturesConfig` field;\n- remove the active registry registration;\n- remove backend conditionals and legacy branches;\n- remove the frontend default, `useFeature()` checks, and route gates;\n- remove flag-specific tests and documentation while keeping permanent behavior\n  coverage.\n\nBefore removing the registration, verify the append-only\n`retiredRuntimeFlagIdentities` registry and its collision\u002Fcompleteness test\nexist, then append the exact key and environment variable in `registry.go`:\n\n```go\n{key: \"features.example\", envVar: \"KANDEV_FEATURES_EXAMPLE\"},\n```\n\nDo not delete old `runtime_flag_overrides` rows as part of graduation. Unknown\nrows are intentionally inert, and the retired identity prevents stale operator\nstate from reactivating a future feature. Never reuse either the key or env var.\n\n## Verification and handoff\n\nRun the focused checks appropriate to the change:\n\n- In a fresh worktree, run `pnpm install --frozen-lockfile` from `apps\u002F` before\n  any pnpm-based checks, tests, lint, or commits.\n- from `apps\u002Fbackend`: `go test .\u002Finternal\u002Fruntimeflags .\u002Finternal\u002Fcommon\u002Fconfig .\u002Finternal\u002Fprofiles`;\n- from the repository root: `make -C apps\u002Fbackend lint`;\n- from `apps`: `pnpm --filter @kandev\u002Fweb test -- lib\u002Fstate\u002Fslices\u002Ffeatures\u002Ffeatures-contract.test.ts`;\n- from `apps\u002Fweb`: `pnpm run typecheck` and `pnpm run lint`;\n- run affected E2E coverage when the gated surface is user-visible;\n- run `git diff --check` before handoff.\n\nReport the flag key\u002Fenv identity, profile defaults, every gated entry path,\ndisabled\u002Fenabled test evidence, restart requirements, and whether the change is\nstill a kill switch or has been fully graduated.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fruntime-feature-flags",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill runtime-feature-flags",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill runtime-feature-flags",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill runtime-feature-flags","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fruntime-feature-flags\u002FSKILL.md",true,[],[47,55,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":54},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":56,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":54},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":54},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":54},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":54},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":54},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]