[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74MPYMWNKSFE6MBBT09V5B5":3,"skill-same:01M74MPYMWNKSFE6MBBT09V5B5":53},{"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":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M74MPYMWNKSFE6MBBT09V5B5","karpathy-coding-rules",null,"Andrej Karpathy's field notes (CLAUDE.md, v260626) on getting a language model to write code you will NOT have to rewrite — ten earned rules covering read-before-write, think-before-code, simplicity, minimal\u002Fsurgical diffs, verification, goal-driven execution, debugging, dependency hygiene, communication, and the common failure modes. Read and apply these BEFORE starting ANY coding task: writing new code, editing or refactoring existing code, fixing a bug, adding a feature, implementing from a spec, reviewing a diff, or scaffolding a project — even when the user does not explicitly ask for \"best practices\" or \"clean code.\" Whenever the task is to produce or change source code, consult this skill first so the rules shape how you read, plan, write, verify, and report.","pengqianhan\u002FAI-Human-Research-OS","pengqianhan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4286531?v=4","01M74M3DT9HNZ6HPAK8TX69EX9","PengqianHan","01M74M3DTVSN2GXW0JH2W396FK",3,"MIT","https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS\u002Fblob\u002Fmain\u002Fresearch-skills-hub\u002Fopen-paper-skills\u002Fkarpathy-coding-rules\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: karpathy-coding-rules\ndescription: >-\n  Andrej Karpathy's field notes (CLAUDE.md, v260626) on getting a language model\n  to write code you will NOT have to rewrite — ten earned rules covering\n  read-before-write, think-before-code, simplicity, minimal\u002Fsurgical diffs,\n  verification, goal-driven execution, debugging, dependency hygiene,\n  communication, and the common failure modes. Read and apply these BEFORE\n  starting ANY coding task: writing new code, editing or refactoring existing\n  code, fixing a bug, adding a feature, implementing from a spec, reviewing a\n  diff, or scaffolding a project — even when the user does not explicitly ask for\n  \"best practices\" or \"clean code.\" Whenever the task is to produce or change\n  source code, consult this skill first so the rules shape how you read, plan,\n  write, verify, and report.\n---\n\n### I. READ BEFORE YOU WRITE\nThe biggest source of bad model-written code is writing before reading the codebase. Read the files you are about to touch; read, not skim. Copy the patterns that already exist, and check the imports to see what the project actually depends on, so you do not reach for axios where everything is fetch. When you cannot find a pattern, ask instead of guessing.\n\n### II. THINK BEFORE YOU CODE\nFigure out what you are doing before you type. State your assumptions (\"add authentication\" is five different things, so name the one you picked) and name the tradeoffs. If something is genuinely confusing, stop and ask rather than filling the gap with plausible-looking code; that is exactly the code that passes a casual review and fails when it matters.\n\n### III. SIMPLICITY\nWrite the minimum code that solves the problem in front of you now, not the minimum that could solve every future version of it. Resist premature abstraction, skip error handling for errors that cannot occur, and hardcode values until there is a real reason to configure them. The test: if the only reason something is abstracted is \"in case we need to,\" you have over-built it.\n\n### IV. SURGICAL CHANGES\nYour diff should be as small as the task allows. Do not touch what you were not asked to touch, match the existing style, and do not reformat; a formatter pass buries the three lines that matter inside three hundred that do not. The test is whether you can justify every changed line by the task. If a line is there because \"while I was in there,\" revert it.\n\n### V. VERIFICATION\nThe gap between code that works and code you think works is testing. When fixing a bug, write the failing test first, watch it fail, then fix it; that is the only proof you fixed the cause and not the symptom. Test behavior that can actually break, not that a constructor sets a field. If something is hard to test, that is information about the design, not permission to skip it.\n\n### VI. GOAL-DRIVEN EXECUTION\nEvery task needs a success criterion before code is written. \"Add validation\" becomes \"reject a missing or malformed email, return 400 with a clear message, and test both cases.\" For anything multi-step, state the plan first so the user can catch a wrong approach before you spend an hour building it.\n\n### VII. DEBUGGING\nWhen something breaks, investigate; do not guess. Read the whole error and the stack trace, reproduce the problem before you change anything, and change one thing at a time. Do not paper over an unexpected null with a null check; find out why it is null, or the bug just moves somewhere quieter.\n\n### VIII. DEPENDENCIES\nEvery dependency is permanent code you do not control. Before adding one, ask whether the project or the standard library can already do it with `crypto.randomUUID()` over a uuid package. When you do add one, say why, so the choice is visible rather than smuggled into the manifest.\n\n### IX. COMMUNICATION\nSay what you did and why, not just a block of code. Flag concerns even when you did exactly what was asked, and be precise about uncertainty: \"I am not sure this library supports streaming\" tells the user what to verify; \"I think this should work\" does not.\n\n### X. COMMON FAILURE MODES\nA few patterns recur often enough to name: the *Kitchen Sink* (restructuring half the codebase while you are at it), the *Wrong Abstraction* (copy-paste twice before you abstract), the *Optimistic Path* (the happy path handled and the 500 ignored), and the *Runaway Refactor* (a fix that cascades across files). Catch yourself in any of these and the right move is to stop, not to push through.\n\n---\nSkill packaging, trigger design, and operating workflow are original to this\nrepository. Full reference notes — abstract, index terms, attribution, license,\nand source — are in\n[references\u002FA_Karpathy_claude_share.md](references\u002FA_Karpathy_claude_share.md)\n(Andrej Karpathy, *CLAUDE.md* v260626; source:\nhttps:\u002F\u002Fx.com\u002FRaytar\u002Fstatus\u002F2070577723089768500).\n","### I. READ BEFORE YOU WRITE\nThe biggest source of bad model-written code is writing before reading the codebase. Read the files you are about to touch; read, not skim. Copy the patterns that already exist, and check the imports to see what the project actually depends on, so you do not reach for axios where everything is fetch. When you cannot find a pattern, ask instead of guessing.\n\n### II. THINK BEFORE YOU CODE\nFigure out what you are doing before you type. State your assumptions (\"add authentication\" is five different things, so name the one you picked) and name the tradeoffs. If something is genuinely confusing, stop and ask rather than filling the gap with plausible-looking code; that is exactly the code that passes a casual review and fails when it matters.\n\n### III. SIMPLICITY\nWrite the minimum code that solves the problem in front of you now, not the minimum that could solve every future version of it. Resist premature abstraction, skip error handling for errors that cannot occur, and hardcode values until there is a real reason to configure them. The test: if the only reason something is abstracted is \"in case we need to,\" you have over-built it.\n\n### IV. SURGICAL CHANGES\nYour diff should be as small as the task allows. Do not touch what you were not asked to touch, match the existing style, and do not reformat; a formatter pass buries the three lines that matter inside three hundred that do not. The test is whether you can justify every changed line by the task. If a line is there because \"while I was in there,\" revert it.\n\n### V. VERIFICATION\nThe gap between code that works and code you think works is testing. When fixing a bug, write the failing test first, watch it fail, then fix it; that is the only proof you fixed the cause and not the symptom. Test behavior that can actually break, not that a constructor sets a field. If something is hard to test, that is information about the design, not permission to skip it.\n\n### VI. GOAL-DRIVEN EXECUTION\nEvery task needs a success criterion before code is written. \"Add validation\" becomes \"reject a missing or malformed email, return 400 with a clear message, and test both cases.\" For anything multi-step, state the plan first so the user can catch a wrong approach before you spend an hour building it.\n\n### VII. DEBUGGING\nWhen something breaks, investigate; do not guess. Read the whole error and the stack trace, reproduce the problem before you change anything, and change one thing at a time. Do not paper over an unexpected null with a null check; find out why it is null, or the bug just moves somewhere quieter.\n\n### VIII. DEPENDENCIES\nEvery dependency is permanent code you do not control. Before adding one, ask whether the project or the standard library can already do it with `crypto.randomUUID()` over a uuid package. When you do add one, say why, so the choice is visible rather than smuggled into the manifest.\n\n### IX. COMMUNICATION\nSay what you did and why, not just a block of code. Flag concerns even when you did exactly what was asked, and be precise about uncertainty: \"I am not sure this library supports streaming\" tells the user what to verify; \"I think this should work\" does not.\n\n### X. COMMON FAILURE MODES\nA few patterns recur often enough to name: the *Kitchen Sink* (restructuring half the codebase while you are at it), the *Wrong Abstraction* (copy-paste twice before you abstract), the *Optimistic Path* (the happy path handled and the 500 ignored), and the *Runaway Refactor* (a fix that cascades across files). Catch yourself in any of these and the right move is to stop, not to push through.\n\n---\nSkill packaging, trigger design, and operating workflow are original to this\nrepository. Full reference notes — abstract, index terms, attribution, license,\nand source — are in\n[references\u002FA_Karpathy_claude_share.md](references\u002FA_Karpathy_claude_share.md)\n(Andrej Karpathy, *CLAUDE.md* v260626; source:\nhttps:\u002F\u002Fx.com\u002FRaytar\u002Fstatus\u002F2070577723089768500).\n",{"name":5,"description":7},"main","e71245365df78e06cd166602744bf2491f79910e","research-skills-hub\u002Fopen-paper-skills\u002Fkarpathy-coding-rules",0,"https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS","https:\u002F\u002Fpengqianhan.github.io\u002FAI-Human-Research-OS\u002F","https:\u002F\u002Fgithub.com\u002Fpengqianhan","Ph.D. candidate of The University of Auckland, New Zealand","2026-11-14 18:08:16",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add pengqianhan\u002FAI-Human-Research-OS --skill karpathy-coding-rules",{"tool":39,"command":40},"bunx","bunx skills add pengqianhan\u002FAI-Human-Research-OS --skill karpathy-coding-rules",{"tool":42,"command":43},"pnpm","pnpm dlx skills add pengqianhan\u002FAI-Human-Research-OS --skill karpathy-coding-rules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS\u002Fblob\u002Fmain\u002Fresearch-skills-hub\u002Fopen-paper-skills\u002Fkarpathy-coding-rules\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002FA_Karpathy_claude_share.md","REFERENCE","参考文档",4764,"https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS\u002Fblob\u002Fmain\u002Fresearch-skills-hub\u002Fopen-paper-skills\u002Fkarpathy-coding-rules\u002Freferences\u002FA_Karpathy_claude_share.md",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M74MWYTHT498SVMN823896T7","workflow-skill-creator","Distills a completed user workflow or interaction into a reusable agent skill. Use when the user asks to turn their workflow, interaction, or multi-step process into a skill, or when they say \"make this a skill\", \"create a skill from what we just did\", \"package this workflow\" or similar. Do not use for creating skills from scratch without an existing workflow (use a generic skill-creator for that).","https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS\u002Fblob\u002Fmain\u002Fresearch-skills-hub\u002Fscience-skills\u002Fworkflow_skill_creator\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M74MWWVCFZ8HQS8840F1V1FT","uv","Checks whether the uv Python package manager is installed and installs it if missing. Ensures uv is on PATH. Use when another skill requires uv as a prerequisite.","https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS\u002Fblob\u002Fmain\u002Fresearch-skills-hub\u002Fscience-skills\u002Fuv\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M74MWRH5BTSWZ2C5PCTD5FV9","uniprot-database","Access protein metadata, function, taxonomy, and sequences across UniProtKB, UniParc, and UniRef. Use when searching for proteins, mapping identifiers, or retrieving functional annotations and publications. Don't use for sequence alignment, protein folding, or sequence similarity search (use specialized skills for those tasks).","https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS\u002Fblob\u002Fmain\u002Fresearch-skills-hub\u002Fscience-skills\u002Funiprot_database\u002FSKILL.md",[],[],{"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},"01M74MWN1D3ER9F1FZPWH8HQC1","unibind-database","Queries the UniBind database for experimentally validated transcription factor (TF) binding sites. Use when retrieving direct TF-DNA interaction datasets, downloading binding site coordinates (BED\u002FFASTA) for local analysis, or listing available datasets by species, cell line, or TF name. Don't use to query specific intervals, locations, genes, motif models or expression data.","https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS\u002Fblob\u002Fmain\u002Fresearch-skills-hub\u002Fscience-skills\u002Funibind_database\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},"01M74MWHHB5QZY3NR2FYA1EK4N","ucsc-conservation-and-tfbs","Fetch Evolutionary Conservation scores (phyloP, phastCons) and Transcription Factor Binding Sites (TFBS) from the UCSC Genome Browser. Use when analyzing whether genomic variants or regions are evolutionarily conserved, functionally important, or bounded by TF regulators across major projects (ENCODE, JASPAR, ReMap).","https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS\u002Fblob\u002Fmain\u002Fresearch-skills-hub\u002Fscience-skills\u002Fucsc_conservation_and_tfbs\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},"01M74MWERYHSY87P21FDMVE6BA","string-database","Query the STRING database for protein-protein interactions (PPIs), functional enrichment, and homology. Use when the user asks about interactions between specific proteins, interaction evidence, confidence scores, protein interaction partners, or pathway enrichments.","https:\u002F\u002Fgithub.com\u002Fpengqianhan\u002FAI-Human-Research-OS\u002Fblob\u002Fmain\u002Fresearch-skills-hub\u002Fscience-skills\u002Fstring_database\u002FSKILL.md",[],[]]