[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BRBTGKKCS7SC85G6N2XPF5":3,"skill-same:01M7BRBTGKKCS7SC85G6N2XPF5":52},{"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":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7BRBTGKKCS7SC85G6N2XPF5","verify-dependency-behaviour",null,"Use when about to state or rely on how a third-party JVM\u002FAndroid library behaves (a default value, whether a field is omitted or null, which branch a task takes) and the docs are absent, ambiguous, or the naming suggests something the code may not do. Fire when a plan says \"set X to its strict value\" without evidence X is not already strict, when a field's name and its type disagree, or when a check passes and you cannot say which comparison it made. Do NOT fire when the behaviour can be run and observed, run it.","damson\u002Fhard-won-skills","damson","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F804217?v=4","01M7BR01SMVEGA4HRD46VV1SXF","Damien D.","01M7BR01TR37MB9R73C1C0ENGG",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fverification\u002Fskills\u002Fverify-dependency-behaviour\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: verify-dependency-behaviour\ndescription: >\n  Use when about to state or rely on how a third-party JVM\u002FAndroid library behaves\n  (a default value, whether a field is omitted or null, which branch a task takes)\n  and the docs are absent, ambiguous, or the naming suggests something the code may\n  not do. Fire when a plan says \"set X to its strict value\" without evidence X is not\n  already strict, when a field's name and its type disagree, or when a check passes\n  and you cannot say which comparison it made. Do NOT fire when the behaviour can be\n  run and observed, run it.\n---\n\n# Verify dependency behaviour from the artifact\n\nA library's name, its field names and its README are all claims. The bytecode is what\nruns. Where they disagree the bytecode wins, and the disagreement is silent: a \"fix\"\nthat changes nothing, or a number wrong by a factor of a hundred.\n\nComplements `prove-the-check-can-fail`: that skill asks whether your check would\ncatch the bug, this one asks whether the library does what its name implies.\n\n## Procedure\n\n1. **State the claim** in one sentence, with what changes if it is false. A claim that\n   changes no decision is not worth the detour.\n\n2. **Prefer observation.** If the behaviour can be triggered and measured, do that:\n   it is cheaper and exercises the real path. Decompile only what running cannot\n   reveal: a default you would have to override to see, a serialization shape, a\n   branch not reachable from your inputs.\n\n3. **Locate the artifact.**\n\n   ```\n   find ~\u002F.gradle\u002Fcaches\u002Fmodules-2\u002Ffiles-2.1 -path '*\u003Cartifact>*' -name '*.jar' | grep -v sources\n   ```\n\n   An empty result means the artifact never resolved into this cache, not that it\n   does not exist: force resolution (run the build, or\n   `.\u002Fgradlew \u003Cmodule>:dependencies --configuration runtimeClasspath`) and check\n   the Maven local repo (`~\u002F.m2\u002Frepository`, unless `~\u002F.m2\u002Fsettings.xml` moves it)\n   since mavenLocal and repo-local caches live outside the Gradle one.\n\n   A `-sources.jar` beside it is better than bytecode: read that and skip to step 5.\n   For a Gradle plugin, the jar under `\u003Cplugin-id>\u002F\u003Cversion>\u002F` holds the task classes.\n\n4. **Inspect.**\n\n   ```\n   unzip -o -q \u003Cjar> '\u003Cpkg>\u002F\u003CClass>*'\n   javap -p -c '\u003Cpkg>\u002F\u003CClass>.class'\n   ```\n\n   - **Defaults** live in `static {}` \u002F `\u003Cclinit>`, as the constant pushed before the\n     constructor call.\n   - **Kotlin default arguments** live in the `$default` synthetic bridge, not the\n     signature.\n   - **Serialization shape** lives in the generated `$Companion`; whether nulls are\n     written or omitted is set wherever the `Json {}` builder is configured, which\n     can sit outside that class, so search the `javap` output case-insensitively for\n     `explicitNulls` and `encodeDefaults` (kotlinx.serialization, whose JVM form is\n     `setExplicitNulls`) or `serializeNulls` (Moshi\u002FGson).\n   - **Which branch a task takes**: decompile the top-level `…Kt` class holding the\n     function, and read the conditional.\n\n5. **Report the evidence, not the conclusion.** Quote the constant or the instruction.\n   \"The default is strict\" is an assertion; `ThresholdValidator(0F)` at `\u003Cclinit>` is\n   a fact someone else can check.\n\n## Sharp edges\n\n- **A name is not a type.** A field called `*_percentage` may hold a fraction of 1; a\n  field called `*_count` may hold bytes. If a value's magnitude surprises you when you\n  first see real data, that is the signal.\n- **A no-op reads like a tightening.** Setting an option to a value that is already the\n  default advertises a guarantee nobody added, which is worse than leaving it alone.\n- **Version skew.** Decompile the version actually resolving in this build, not the\n  newest in the cache. `.\u002Fgradlew :app:dependencies` settles it.\n\n## When to STOP\n\n- **A version-matched sources jar, or the tagged source for that exact version,\n  exists.** Read it: bytecode is the fallback, not the goal.\n- **The claim does not change a decision.** Curiosity is not a trigger.\n- **It is first-party code.** Read the source.\n- **The class is obfuscated.** Say the claim is unverified rather than guessing from\n  mangled names.\n","# Verify dependency behaviour from the artifact\n\nA library's name, its field names and its README are all claims. The bytecode is what\nruns. Where they disagree the bytecode wins, and the disagreement is silent: a \"fix\"\nthat changes nothing, or a number wrong by a factor of a hundred.\n\nComplements `prove-the-check-can-fail`: that skill asks whether your check would\ncatch the bug, this one asks whether the library does what its name implies.\n\n## Procedure\n\n1. **State the claim** in one sentence, with what changes if it is false. A claim that\n   changes no decision is not worth the detour.\n\n2. **Prefer observation.** If the behaviour can be triggered and measured, do that:\n   it is cheaper and exercises the real path. Decompile only what running cannot\n   reveal: a default you would have to override to see, a serialization shape, a\n   branch not reachable from your inputs.\n\n3. **Locate the artifact.**\n\n   ```\n   find ~\u002F.gradle\u002Fcaches\u002Fmodules-2\u002Ffiles-2.1 -path '*\u003Cartifact>*' -name '*.jar' | grep -v sources\n   ```\n\n   An empty result means the artifact never resolved into this cache, not that it\n   does not exist: force resolution (run the build, or\n   `.\u002Fgradlew \u003Cmodule>:dependencies --configuration runtimeClasspath`) and check\n   the Maven local repo (`~\u002F.m2\u002Frepository`, unless `~\u002F.m2\u002Fsettings.xml` moves it)\n   since mavenLocal and repo-local caches live outside the Gradle one.\n\n   A `-sources.jar` beside it is better than bytecode: read that and skip to step 5.\n   For a Gradle plugin, the jar under `\u003Cplugin-id>\u002F\u003Cversion>\u002F` holds the task classes.\n\n4. **Inspect.**\n\n   ```\n   unzip -o -q \u003Cjar> '\u003Cpkg>\u002F\u003CClass>*'\n   javap -p -c '\u003Cpkg>\u002F\u003CClass>.class'\n   ```\n\n   - **Defaults** live in `static {}` \u002F `\u003Cclinit>`, as the constant pushed before the\n     constructor call.\n   - **Kotlin default arguments** live in the `$default` synthetic bridge, not the\n     signature.\n   - **Serialization shape** lives in the generated `$Companion`; whether nulls are\n     written or omitted is set wherever the `Json {}` builder is configured, which\n     can sit outside that class, so search the `javap` output case-insensitively for\n     `explicitNulls` and `encodeDefaults` (kotlinx.serialization, whose JVM form is\n     `setExplicitNulls`) or `serializeNulls` (Moshi\u002FGson).\n   - **Which branch a task takes**: decompile the top-level `…Kt` class holding the\n     function, and read the conditional.\n\n5. **Report the evidence, not the conclusion.** Quote the constant or the instruction.\n   \"The default is strict\" is an assertion; `ThresholdValidator(0F)` at `\u003Cclinit>` is\n   a fact someone else can check.\n\n## Sharp edges\n\n- **A name is not a type.** A field called `*_percentage` may hold a fraction of 1; a\n  field called `*_count` may hold bytes. If a value's magnitude surprises you when you\n  first see real data, that is the signal.\n- **A no-op reads like a tightening.** Setting an option to a value that is already the\n  default advertises a guarantee nobody added, which is worse than leaving it alone.\n- **Version skew.** Decompile the version actually resolving in this build, not the\n  newest in the cache. `.\u002Fgradlew :app:dependencies` settles it.\n\n## When to STOP\n\n- **A version-matched sources jar, or the tagged source for that exact version,\n  exists.** Read it: bytecode is the fallback, not the goal.\n- **The claim does not change a decision.** Curiosity is not a trigger.\n- **It is first-party code.** Read the source.\n- **The class is obfuscated.** Say the claim is unverified rather than guessing from\n  mangled names.\n",{"name":5,"description":7},"main","9435f9fa04b69d2217f8cab3c817dd5c3c1d1021","plugins\u002Fverification\u002Fskills\u002Fverify-dependency-behaviour",0,"https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills","https:\u002F\u002Fgithub.com\u002Fdamson","http:\u002F\u002Fgoo.gl\u002F3UwFRt","2026-11-14 14:28:11",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add damson\u002Fhard-won-skills --skill verify-dependency-behaviour",{"tool":38,"command":39},"bunx","bunx skills add damson\u002Fhard-won-skills --skill verify-dependency-behaviour",{"tool":41,"command":42},"pnpm","pnpm dlx skills add damson\u002Fhard-won-skills --skill verify-dependency-behaviour","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fverification\u002Fskills\u002Fverify-dependency-behaviour\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"README.md","REFERENCE","参考文档",2390,"https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fverification\u002Fskills\u002Fverify-dependency-behaviour\u002FREADME.md",[53,60,66,71,76,81],{"skillNo":54,"name":55,"nameZh":6,"description":56,"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":19},"01M7BRCESR9BRFAH87J2ZQY5T2","skill-two","Fixture skill","https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fwrong_welcome_total\u002Fplugins\u002Falpha\u002Fskills\u002Fskill-two\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7BRCDPHEPZES71BYBRTZ1G3","skill-one","https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fwrong_welcome_total\u002Fplugins\u002Falpha\u002Fskills\u002Fskill-one\u002FSKILL.md",[],[],{"skillNo":67,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7BRCCHHB3Q07BR0QN339D3F","https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fwrong_table_count\u002Fplugins\u002Falpha\u002Fskills\u002Fskill-two\u002FSKILL.md",[],[],{"skillNo":72,"name":62,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7BRC9J97QKZHGKVXMER5ZEE","https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fwrong_table_count\u002Fplugins\u002Falpha\u002Fskills\u002Fskill-one\u002FSKILL.md",[],[],{"skillNo":77,"name":55,"nameZh":6,"description":56,"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":19},"01M7BRC8C39NM8VVAQ3TKP0CRS","https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fvalid_marketplace\u002Fplugins\u002Falpha\u002Fskills\u002Fskill-two\u002FSKILL.md",[],[],{"skillNo":82,"name":62,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7BRC75THG394KDGYV35ET19","https:\u002F\u002Fgithub.com\u002Fdamson\u002Fhard-won-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fvalid_marketplace\u002Fplugins\u002Falpha\u002Fskills\u002Fskill-one\u002FSKILL.md",[],[]]