[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DE7B9RS9TKZRYPRNB418AH":3,"skill-same:01M7DE7B9RS9TKZRYPRNB418AH":48},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7DE7B9RS9TKZRYPRNB418AH","json-config-schema",null,"Use when creating, reviewing, changing, versioning, or validating the JSON Schema of a JSON config file.","pascalandy\u002Fskills","pascalandy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6694151?v=4","01M7DDRR1T4AMR6J3FV6RHHV5M","Pascal Andy","01M7DDRR2B04BJ8S7QZYZV1WFK",0,"MIT","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fjson-config-schema\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"json-config-schema\"\ndescription: \"Use when creating, reviewing, changing, versioning, or validating the JSON Schema of a JSON config file.\"\nkind: \"dev\"\n---\n\n# JSON config schema\n\nA config is sound when its schema accepts it and none of its facts contradict each other. Steps 1 to 5 apply to a new schema and to a change. For a review, check the schema and the code that reads it against each step, then report each broken rule with its file, its fix, and whether the fix makes an existing config invalid (step 4).\n\nRequires `uv` ([install](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002Fgetting-started\u002Finstallation\u002F)); confirm with `uv --version`. Step 5 runs `check-jsonschema` through `uvx`, with nothing to install.\n\n## Steps\n\n1. **One place per fact**\n   - An enum lives in the schema. Code that needs the list reads it from the schema, or a test asserts that the code's copy equals the enum\n   - A value derivable from another field, such as a status implied by a history list, is not stored. When it must stay readable, a check script asserts that the two agree\n   - A rule that compares two fields, such as a path that embeds a date equal to another field, goes in a check script: JSON Schema cannot compare fields\n\n   Done when every enum and derived value has one source, or a check that fails when the copies disagree\n\n2. **Strict shape**\n   - Draft 2020-12, a `title`, and a `description` on the schema and on each property. An enum's description defines each value\n   - `additionalProperties: false` on every object, so a misspelled key fails\n   - `$schema` declared under `properties`, or the config's own `$schema` key, which editors read for completion, fails as unexpected\n   - With `allOf` or `$ref` composition, `unevaluatedProperties: false` instead: `additionalProperties` ignores properties declared in subschemas and rejects them\n   - `default` is an annotation that validators leave unapplied, so the program applies its own defaults\n\n   Done when `uvx check-jsonschema --check-metaschema \u003Cschema>` passes and a config with a misspelled key fails\n\n3. **Conventions**\n   - Keys in `snake_case`, in the project's language\n   - Dates in ISO 8601: `YYYY-MM-DD`, or `YYYY-MM-DDTHH:MM` in local time when the project records no time zone, stated in the property's description\n   - IDs as lowercase UUID v4, generated once\n   - A state takes its value from an enum\n   - A collection with a stable key is an object indexed by that key; any other collection is a list\n\n   Done when each property follows them, or its description says why not\n\n4. **Version**\n   - The version lives only in `schema_version`, pinned with `const`. The schema file name carries none, such as `config.schema.json`\n   - Bump `schema_version` when a change makes an existing config invalid. Run the new schema against every config to decide: a change they all pass keeps the version\n   - On a bump, one migration script rewrites every config in the repository. The schema, the migration, and the rewritten configs land in one commit; git keeps the old schema\n   - Configs that live outside the repository, such as on users' machines, are the exception: publish each version under its own file name, leave it unchanged, and migrate on read, one function per version step\n\n   Done when every config passes the new schema\n\n5. **Validate**\n   - The project's check recipe, such as `just check`, and its pre-commit hook run `uvx check-jsonschema --schemafile \u003Cschema> \u003Cconfigs>`. It checks `format` by default\n   - Python's `jsonschema.validate` skips `format` unless called with `format_checker=jsonschema.Draft202012Validator.FORMAT_CHECKER`\n   - Tests keep one invalid config per rule from steps 1 and 2, each expected to fail\n\n   Done when the check passes on every config and fails on each invalid config\n\n## Skeleton\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fjson-schema.org\u002Fdraft\u002F2020-12\u002Fschema\",\n  \"title\": \"Project config\",\n  \"description\": \"One config.json per project folder, validated by `just check`.\",\n  \"type\": \"object\",\n  \"additionalProperties\": false,\n  \"required\": [\"schema_version\", \"id\", \"state\"],\n  \"properties\": {\n    \"$schema\": { \"const\": \"..\u002Fconfig.schema.json\" },\n    \"schema_version\": { \"const\": 1 },\n    \"id\": { \"description\": \"UUID v4, set once and never changed.\", \"type\": \"string\", \"format\": \"uuid\" },\n    \"state\": { \"description\": \"active: work in progress. closed: delivered and archived.\", \"enum\": [\"active\", \"closed\"] }\n  }\n}\n```\n","# JSON config schema\n\nA config is sound when its schema accepts it and none of its facts contradict each other. Steps 1 to 5 apply to a new schema and to a change. For a review, check the schema and the code that reads it against each step, then report each broken rule with its file, its fix, and whether the fix makes an existing config invalid (step 4).\n\nRequires `uv` ([install](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002Fgetting-started\u002Finstallation\u002F)); confirm with `uv --version`. Step 5 runs `check-jsonschema` through `uvx`, with nothing to install.\n\n## Steps\n\n1. **One place per fact**\n   - An enum lives in the schema. Code that needs the list reads it from the schema, or a test asserts that the code's copy equals the enum\n   - A value derivable from another field, such as a status implied by a history list, is not stored. When it must stay readable, a check script asserts that the two agree\n   - A rule that compares two fields, such as a path that embeds a date equal to another field, goes in a check script: JSON Schema cannot compare fields\n\n   Done when every enum and derived value has one source, or a check that fails when the copies disagree\n\n2. **Strict shape**\n   - Draft 2020-12, a `title`, and a `description` on the schema and on each property. An enum's description defines each value\n   - `additionalProperties: false` on every object, so a misspelled key fails\n   - `$schema` declared under `properties`, or the config's own `$schema` key, which editors read for completion, fails as unexpected\n   - With `allOf` or `$ref` composition, `unevaluatedProperties: false` instead: `additionalProperties` ignores properties declared in subschemas and rejects them\n   - `default` is an annotation that validators leave unapplied, so the program applies its own defaults\n\n   Done when `uvx check-jsonschema --check-metaschema \u003Cschema>` passes and a config with a misspelled key fails\n\n3. **Conventions**\n   - Keys in `snake_case`, in the project's language\n   - Dates in ISO 8601: `YYYY-MM-DD`, or `YYYY-MM-DDTHH:MM` in local time when the project records no time zone, stated in the property's description\n   - IDs as lowercase UUID v4, generated once\n   - A state takes its value from an enum\n   - A collection with a stable key is an object indexed by that key; any other collection is a list\n\n   Done when each property follows them, or its description says why not\n\n4. **Version**\n   - The version lives only in `schema_version`, pinned with `const`. The schema file name carries none, such as `config.schema.json`\n   - Bump `schema_version` when a change makes an existing config invalid. Run the new schema against every config to decide: a change they all pass keeps the version\n   - On a bump, one migration script rewrites every config in the repository. The schema, the migration, and the rewritten configs land in one commit; git keeps the old schema\n   - Configs that live outside the repository, such as on users' machines, are the exception: publish each version under its own file name, leave it unchanged, and migrate on read, one function per version step\n\n   Done when every config passes the new schema\n\n5. **Validate**\n   - The project's check recipe, such as `just check`, and its pre-commit hook run `uvx check-jsonschema --schemafile \u003Cschema> \u003Cconfigs>`. It checks `format` by default\n   - Python's `jsonschema.validate` skips `format` unless called with `format_checker=jsonschema.Draft202012Validator.FORMAT_CHECKER`\n   - Tests keep one invalid config per rule from steps 1 and 2, each expected to fail\n\n   Done when the check passes on every config and fails on each invalid config\n\n## Skeleton\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fjson-schema.org\u002Fdraft\u002F2020-12\u002Fschema\",\n  \"title\": \"Project config\",\n  \"description\": \"One config.json per project folder, validated by `just check`.\",\n  \"type\": \"object\",\n  \"additionalProperties\": false,\n  \"required\": [\"schema_version\", \"id\", \"state\"],\n  \"properties\": {\n    \"$schema\": { \"const\": \"..\u002Fconfig.schema.json\" },\n    \"schema_version\": { \"const\": 1 },\n    \"id\": { \"description\": \"UUID v4, set once and never changed.\", \"type\": \"string\", \"format\": \"uuid\" },\n    \"state\": { \"description\": \"active: work in progress. closed: delivered and archived.\", \"enum\": [\"active\", \"closed\"] }\n  }\n}\n```\n",{"kind":24,"name":5,"description":7},"dev","main","c2b929d1a54305e77aad0296872e90e08d68a637","skills\u002Fjson-config-schema",1,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills","https:\u002F\u002Fgithub.com\u002Fpascalandy","https:\u002F\u002Fblog.pascalandy.com","The question: how can I build the default one-stop place where entrepreneurs can start their mobile-first websites and blog? Psst psst… play-with-ghost.com","2026-11-15 03:34:59",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add pascalandy\u002Fskills --skill json-config-schema",{"tool":40,"command":41},"bunx","bunx skills add pascalandy\u002Fskills --skill json-config-schema",{"tool":43,"command":44},"pnpm","pnpm dlx skills add pascalandy\u002Fskills --skill json-config-schema","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fjson-config-schema\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7DEA67FREYEGQJYTWD9D0GB","writing-great-skills","Use when creating, modifying, evaluating a skill.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-great-skills\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7DEA3ZN566HSV6YJ8KPE824","writing-for-agents","Use when creating, editing, or reviewing a skill, AGENTS.md, CLAUDE.md, or another document agents read.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7DEA0FRE0FEYV9XS0YTTBPJ","why","Use for questions about design rationale, the history of regressions or incidents, or the evidence behind thresholds and tradeoffs. Use `how` for runtime behavior. Do not use for plain commit or date lookups.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7DE9XVZASJS9PC1A5BVMVHG","verify-video-archive","Use when validating the macOS or Linux archive workflow reached by `just convert-video`, including real media, prerequisites, terminal progress, source safety, locking, and recovery.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fverify-video-archive\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7DE9VTG6ZEQH1M10J66T8MR","verify-transcript","Use when validating transcript CLI behavior, locating its verification features, or running the paid YouTube end-to-end check.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fverify-transcript\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7DE9RWQ6WNVG455HQFHVNFR","verify-skills","Use when verifying `just compile-skills`, `just remote-skills`, `just install-skills`, or `just skills-discover` in the skills repository, such as after changing their scripts or adding, renaming, or moving a skill.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fverify-skills\u002FSKILL.md",[],[]]