[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CPA9AZ9G1SF6EE11T08C92":3,"skill-same:01M7CPA9AZ9G1SF6EE11T08C92":57},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":13,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M7CPA9AZ9G1SF6EE11T08C92","explore",null,"markosAMO\u002FAlfred","markosAMO","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F51459843?v=4","01M7CP9J22V3QPXPRGE3MJZ091","Markos Moscoso Ocampo","01M7CP9J33G8P7T5TBN51PST9G",0,"MIT","https:\u002F\u002Fgithub.com\u002FmarkosAMO\u002FAlfred\u002Fblob\u002Fmain\u002Fskills\u002Fexplore\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: explore\nmode: auto\nruns_when: repository_has_existing_code\nscope: area_under_change\nreads: [code, tests, architecture, memory]\nwrites: [architecture, conventions, master_specs]\nnext: []\n---\n\n# explore\n\nDerive what the code already says, and write it down where the pipeline can read it.\n\nThis phase changes no code.\n\n## Two scopes\n\n```\nrepository   once, when Alfred is added to an existing codebase\n             derives architecture and conventions\n\narea         whenever spec needs a requirement that was never written down\n             derives the master specification for that area only\n```\n\nThe area scope is the one that runs most. A codebase documents itself as it is worked on,\nand deriving specifications for two hundred untouched features costs hours and produces\ndocuments nobody reads.\n\n## Reading budget\n\nMost of what this phase records lives in a handful of small files. Reading the\nimplementation to find it is the expensive way to learn what a manifest states outright.\n\nRead in tiers, and stop at the tier that answers the question.\n\n**Tier 1 — read in full. Small, dense, and usually enough.**\n\n```\ndependency manifests    Gemfile, Gemfile.lock, package.json, go.mod, pyproject.toml\nconfiguration           config\u002F, initializers, settings, .env.example\ncontainers and CI       Dockerfile, compose files, pipeline definitions\nschema                  migrations directory listing, schema dump\nlayout                  the directory tree, two or three levels, names only\nexisting documentation  README, docs\u002F, architecture notes already written\n```\n\nA Rails repository's internal gems, its authorization approach, its background job runner\nand its database all appear here, in files measured in kilobytes.\n\n**Tier 2 — sample, never sweep.** One representative per layer or pattern, plus its tests.\nThree controllers that agree tell you the convention; the fourth tells you nothing new.\n\n**Tier 3 — targeted search only.** For a question the first two tiers left open, search for\nthe term rather than reading the files that might contain it.\n\n## Stopping\n\nStop when reading stops changing the document.\n\nEach file read either adds something to the architecture or confirms what is already\nwritten. Once a tier produces only confirmations, the next file in it will too, and the\ntier is finished.\n\nA large repository does not need a proportionally larger exploration. This document exists\nso `design` does not contradict what is already true; it is not an inventory of the\ncodebase. Whatever it leaves out is derived on demand, scoped to the area under change, the\nfirst time a change depends on it.\n\n## Deriving architecture\n\nWhat it records: the stack, the layers and their boundaries, where persistence lives, which\nexternal services are reached, and the patterns the code actually follows.\n\nDistinguish what the code does from what it intended. A boundary crossed in three places is\na boundary with three violations, not an absent boundary. Record it as the boundary plus\nthe exceptions, so `review` can enforce it.\n\n## Deriving conventions\n\nRead the test configuration and one test file per layer. The runner, the naming, what is\nmocked and what coverage is expected are most of `docs\u002Fcode_conventions.md`, and they come\nfrom configuration plus a sample, not from the suite.\n\nThen naming, file layout, error handling and linter configuration, from the linter config\nfirst and the code only where the config is silent.\n\nWhere the codebase is inconsistent, record the dominant pattern and note the exception\nrather than picking silently. A convention derived from the minority becomes a review\nfinding on every future change.\n\n## Deriving a master specification\n\nFor an area under change, reconstruct what the system currently does, in the shape of\n`skills\u002F_shared\u002Fdocument-style.md`: requirements with scenarios.\n\n```\ntests           the scenarios that already exist, named\ncode paths      the branches no test covers\nerror handling  the failure behaviour, which is usually undocumented\n```\n\nBehaviour with no test is still behaviour, and still gets a requirement. Mark it\n`unverified`, so `spec` knows it was read from the code rather than confirmed by a test,\nand `verify` does not treat it as an established guarantee.\n\n## Confirmation\n\nDerived documents are presented before being written. Inference from code is a reading, and\na wrong reading recorded as architecture constrains every change after it.\n\n## Completion\n\nFollow `skills\u002F_shared\u002Fphase-protocol.md`: write the documents, index them, notify\n`phase_completed`.\n\n```\nexplored: auth area, 4 requirements derived, 2 unverified\n```\n","# explore\n\nDerive what the code already says, and write it down where the pipeline can read it.\n\nThis phase changes no code.\n\n## Two scopes\n\n```\nrepository   once, when Alfred is added to an existing codebase\n             derives architecture and conventions\n\narea         whenever spec needs a requirement that was never written down\n             derives the master specification for that area only\n```\n\nThe area scope is the one that runs most. A codebase documents itself as it is worked on,\nand deriving specifications for two hundred untouched features costs hours and produces\ndocuments nobody reads.\n\n## Reading budget\n\nMost of what this phase records lives in a handful of small files. Reading the\nimplementation to find it is the expensive way to learn what a manifest states outright.\n\nRead in tiers, and stop at the tier that answers the question.\n\n**Tier 1 — read in full. Small, dense, and usually enough.**\n\n```\ndependency manifests    Gemfile, Gemfile.lock, package.json, go.mod, pyproject.toml\nconfiguration           config\u002F, initializers, settings, .env.example\ncontainers and CI       Dockerfile, compose files, pipeline definitions\nschema                  migrations directory listing, schema dump\nlayout                  the directory tree, two or three levels, names only\nexisting documentation  README, docs\u002F, architecture notes already written\n```\n\nA Rails repository's internal gems, its authorization approach, its background job runner\nand its database all appear here, in files measured in kilobytes.\n\n**Tier 2 — sample, never sweep.** One representative per layer or pattern, plus its tests.\nThree controllers that agree tell you the convention; the fourth tells you nothing new.\n\n**Tier 3 — targeted search only.** For a question the first two tiers left open, search for\nthe term rather than reading the files that might contain it.\n\n## Stopping\n\nStop when reading stops changing the document.\n\nEach file read either adds something to the architecture or confirms what is already\nwritten. Once a tier produces only confirmations, the next file in it will too, and the\ntier is finished.\n\nA large repository does not need a proportionally larger exploration. This document exists\nso `design` does not contradict what is already true; it is not an inventory of the\ncodebase. Whatever it leaves out is derived on demand, scoped to the area under change, the\nfirst time a change depends on it.\n\n## Deriving architecture\n\nWhat it records: the stack, the layers and their boundaries, where persistence lives, which\nexternal services are reached, and the patterns the code actually follows.\n\nDistinguish what the code does from what it intended. A boundary crossed in three places is\na boundary with three violations, not an absent boundary. Record it as the boundary plus\nthe exceptions, so `review` can enforce it.\n\n## Deriving conventions\n\nRead the test configuration and one test file per layer. The runner, the naming, what is\nmocked and what coverage is expected are most of `docs\u002Fcode_conventions.md`, and they come\nfrom configuration plus a sample, not from the suite.\n\nThen naming, file layout, error handling and linter configuration, from the linter config\nfirst and the code only where the config is silent.\n\nWhere the codebase is inconsistent, record the dominant pattern and note the exception\nrather than picking silently. A convention derived from the minority becomes a review\nfinding on every future change.\n\n## Deriving a master specification\n\nFor an area under change, reconstruct what the system currently does, in the shape of\n`skills\u002F_shared\u002Fdocument-style.md`: requirements with scenarios.\n\n```\ntests           the scenarios that already exist, named\ncode paths      the branches no test covers\nerror handling  the failure behaviour, which is usually undocumented\n```\n\nBehaviour with no test is still behaviour, and still gets a requirement. Mark it\n`unverified`, so `spec` knows it was read from the code rather than confirmed by a test,\nand `verify` does not treat it as an established guarantee.\n\n## Confirmation\n\nDerived documents are presented before being written. Inference from code is a reading, and\na wrong reading recorded as architecture constrains every change after it.\n\n## Completion\n\nFollow `skills\u002F_shared\u002Fphase-protocol.md`: write the documents, index them, notify\n`phase_completed`.\n\n```\nexplored: auth area, 4 requirements derived, 2 unverified\n```\n",{"mode":23,"name":5,"next":24,"reads":25,"scope":30,"writes":31,"runs_when":34},"auto",[],[26,27,28,29],"code","tests","architecture","memory","area_under_change",[28,32,33],"conventions","master_specs","repository_has_existing_code","main","e68ffe68ac604c91a9738f0ce2acc1c7585f88f2","skills\u002Fexplore","https:\u002F\u002Fgithub.com\u002FmarkosAMO\u002FAlfred","https:\u002F\u002Fgithub.com\u002FmarkosAMO","marmoscoso1@gmail.com","Dev","2026-10-13 14:30:03",{"source":7,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add markosAMO\u002FAlfred --skill explore",{"tool":49,"command":50},"bunx","bunx skills add markosAMO\u002FAlfred --skill explore",{"tool":52,"command":53},"pnpm","pnpm dlx skills add markosAMO\u002FAlfred --skill explore","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FmarkosAMO\u002FAlfred\u002Fblob\u002Fmain\u002Fskills\u002Fexplore\u002FSKILL.md",true,[],[58,64,70,76,82,88],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M7CPAPB4796E8W31MQFMTC9N","{phase=null}","https:\u002F\u002Fgithub.com\u002FmarkosAMO\u002FAlfred\u002Fblob\u002Fmain\u002Ftemplates\u002Fworkflow\u002Fskills\u002Fexample\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M7CPAMS85JH7H8X17G9PM3YB","verify","https:\u002F\u002Fgithub.com\u002FmarkosAMO\u002FAlfred\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7CPAK5CR387ZSMVAH47CRW4","tasks","https:\u002F\u002Fgithub.com\u002FmarkosAMO\u002FAlfred\u002Fblob\u002Fmain\u002Fskills\u002Ftasks\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7CPAHZ9ZD1DNM3S5PS2RS9E","spec","https:\u002F\u002Fgithub.com\u002FmarkosAMO\u002FAlfred\u002Fblob\u002Fmain\u002Fskills\u002Fspec\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7CPAGF0MDNQKSCE61F5QJ6C","review","https:\u002F\u002Fgithub.com\u002FmarkosAMO\u002FAlfred\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7CPAF9ETJMQVXT4Q4TJQ2HN","research","https:\u002F\u002Fgithub.com\u002FmarkosAMO\u002FAlfred\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002FSKILL.md",[],[]]