[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79XDZGTYNQ506FNJXEEDPJD":3,"skill-same:01M79XDZGTYNQ506FNJXEEDPJD":64},{"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":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":57},"01M79XDZGTYNQ506FNJXEEDPJD","organize",null,"Repository structure only: directory layout, file placement, naming conventions, and where-does-this-belong decisions. Detects the project's convention, audits files against it, and executes move plans with import-path updates. Never changes code inside files beyond the import updates a move forces; in-file restructuring is \u002Frefactor.","mayankjain1815-commits\u002FCITADEL","mayankjain1815-commits","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234472344?v=4","01M79X9599EWEQTD62DMNTEG7X","Mayank jain","01M79X95AA0KDFTN1Z1A6DQTX1",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Forganize\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: organize\nlicense: MIT\ndescription: >-\n  Repository structure only: directory layout, file placement, naming\n  conventions, and where-does-this-belong decisions. Detects the project's\n  convention, audits files against it, and executes move plans with\n  import-path updates. Never changes code inside files beyond the import\n  updates a move forces; in-file restructuring is \u002Frefactor.\nuser-invocable: true\nauto-trigger: false\ntrigger_keywords:\n  - organize\n  - directory structure\n  - folder structure\n  - project structure\n  - file organization\n  - organize directories\n  - organize files\n  - cleanup directories\n  - directory convention\n  - where should this go\n  - messy project\nlast-updated: 2026-06-11\n---\n\n# \u002Forganize -- Repository Structure\n\n## Orientation\n\n**Use when:** Deciding where a file belongs, auditing file placement against the project's conventions, running a naming-convention sweep, or moving files so the tree matches the declared layout.\n\n**Don't use when:** You want a structural map of code relationships (use `\u002Fmap`), you want to change code inside files (use `\u002Frefactor`), you need disk or artifact cleanup (use `\u002Fhouseclean`), or you need a single known move executed (use `\u002Frefactor move`).\n\n## Boundary with \u002Frefactor\n\n\u002Forganize changes where files live and what they are named. Changing code structure within files (extract, inline, split functions or components, rename symbols) is \u002Frefactor. The only in-file edits \u002Forganize makes are import-path updates forced by a move or rename. If an audit reveals a file that should be split or merged, recommend \u002Frefactor; do not do it here.\n\n## Commands\n\n| Command | Behavior |\n|---|---|\n| `\u002Forganize` | Detect convention, audit placement, propose and execute a move plan |\n| `\u002Forganize --audit` | Check current files against the manifest, report violations only |\n| `\u002Forganize --show` | Display the current organization manifest |\n| `\u002Forganize --lock` | Set `locked: true` so the enforcement hook blocks violations |\n| `\u002Forganize --unlock` | Set `locked: false` so enforcement is advisory |\n| `\u002Forganize where does {file} go` | Single placement decision, no full audit |\n\n## Protocol\n\n### Step 1: CHECK\n\nRead `.claude\u002Fharness.json`. If an `organization` key exists, use its convention and placement rules; on bare `\u002Forganize`, ask whether to audit, adjust the rules, or reconfigure. If no key exists, continue to Step 2.\n\n### Step 2: DETECT\n\nUse the **Glob tool** (not `find` or `Get-ChildItem`) to discover directories. Filter out `node_modules`, `.git`, `.planning`, `.citadel`, `.claude`, `dist`, `build`, `__pycache__`, `.next`, `target`, `.venv`, `venv`. Cap at 200 directories; if larger, scan only the top 3 levels.\n\nConvention signals:\n- `src\u002Fcomponents\u002F`, `src\u002Fhooks\u002F`, `src\u002Futils\u002F` -> **layer-based**\n- `src\u002Ffeatures\u002Fauth\u002F`, `src\u002Ffeatures\u002Fdashboard\u002F` -> **feature-based**\n- `src\u002Fauth\u002Fcomponents\u002F`, `src\u002Fauth\u002Fhooks\u002F` -> **hybrid**\n- Flat `src\u002F` with no subdirectories -> **flat**\n- Mixed signals -> **custom** (ask the user which convention to adopt)\n\nRecord: convention, confidence (high\u002Fmedium\u002Flow), roots with purposes, anomalies.\n\n### Step 3: AUDIT\n\nCheck every source file against the placement rules (manifest if present, detected convention otherwise). Also check naming: files or directories that break the dominant casing or suffix pattern of their siblings.\n\n```\n=== Structure Audit: {project} ===\nConvention: {convention} ({confidence})\nCompliant: {N}\u002F{M} source files\nViolations:\n  {current_path} -> {expected_path} ({rule broken})\nNaming:\n  {path}: {issue}\n```\n\n### Step 4: PLAN\n\nFor each violation, build a move plan before touching anything: source path -> destination path, every importer whose import path must change, and barrel\u002Findex files that need re-exports updated. Moves and renames only; never delete files with content. Present the plan and wait for confirmation.\n\n### Step 5: APPLY\n\nExecute confirmed moves, update all import paths referencing moved files, update barrels, then run the project's typecheck command (from harness.json). Zero new errors allowed. If a move fails typecheck for reasons beyond import paths, revert that single move and flag the file instead of editing its code.\n\n### Step 6: CONFIGURE\n\nOn first run or reconfigure, write the `organization` key to harness.json. Read-modify-write: preserve all other keys, and preserve any existing `dynamic`\u002F`cleanupPolicy` entries this skill no longer manages.\n\n```json\n{\n  \"organization\": {\n    \"convention\": \"layer\",\n    \"roots\": { \"src\": { \"purpose\": \"application source\" } },\n    \"placement\": [\n      { \"glob\": \"*.test.{ts,tsx}\", \"rule\": \"colocated\", \"target\": null, \"reason\": \"tests live next to source\" }\n    ],\n    \"locked\": false\n  }\n}\n```\n\nRule types: `colocated`, `sibling-dir`, `root-dir`, `within-root`. Set `locked: false` initially; `\u002Forganize --lock` turns on blocking enforcement via the organize-enforce hook.\n\n## Fringe Cases\n\n- **No directories found \u002F empty project:** suggest flat convention; nothing to audit.\n- **Monorepo (multiple package.json):** scan each package root separately; ask whether rules are per-package or repo-wide.\n- **harness.json missing:** audit in advisory mode from the detected convention; offer to create the manifest.\n- **User changes convention:** warn with the number of files that would move. Never mass-move without explicit confirmation.\n- **Conflict with `protectedFiles`:** if protected files conflict with placement rules, warn and ask which takes precedence.\n\n## Contextual Gates\n\n**Disclosure:** \"Auditing repository structure. Moves execute only after you confirm the plan.\"\n**Reversibility:** amber -- file moves and import-path updates; undo with `git checkout -- .` before commit or `git revert` after.\n**Trust gates:** Any: detect and audit. Familiar (5+ sessions): confirmed move plans execute autonomously.\n\n## Quality Gates\n\n- [ ] Convention detected or read from the manifest before any audit verdicts\n- [ ] Every violation lists current path, expected path, and the rule it breaks\n- [ ] Move plan presented and confirmed before any file moves\n- [ ] No in-file code edits beyond import-path updates; split\u002Fextract needs are deferred to \u002Frefactor\n- [ ] Typecheck clean after moves (zero new errors)\n- [ ] harness.json write preserves all keys outside `organization`\n\n## Exit Protocol\n\n```\n---HANDOFF---\n- Structure: {convention}; {compliant}\u002F{total} files compliant after changes\n- Moves: {N} files moved, {M} import paths updated, 0 in-file refactors\n- Deferred to \u002Frefactor: {split\u002Fextract recommendations, or \"none\"}\n- Enforcement: {\"advisory (unlocked)\" | \"blocking (locked)\"}\n- Reversibility: amber -- undo moves with git checkout\u002Frevert\n---\n```\n","# \u002Forganize -- Repository Structure\n\n## Orientation\n\n**Use when:** Deciding where a file belongs, auditing file placement against the project's conventions, running a naming-convention sweep, or moving files so the tree matches the declared layout.\n\n**Don't use when:** You want a structural map of code relationships (use `\u002Fmap`), you want to change code inside files (use `\u002Frefactor`), you need disk or artifact cleanup (use `\u002Fhouseclean`), or you need a single known move executed (use `\u002Frefactor move`).\n\n## Boundary with \u002Frefactor\n\n\u002Forganize changes where files live and what they are named. Changing code structure within files (extract, inline, split functions or components, rename symbols) is \u002Frefactor. The only in-file edits \u002Forganize makes are import-path updates forced by a move or rename. If an audit reveals a file that should be split or merged, recommend \u002Frefactor; do not do it here.\n\n## Commands\n\n| Command | Behavior |\n|---|---|\n| `\u002Forganize` | Detect convention, audit placement, propose and execute a move plan |\n| `\u002Forganize --audit` | Check current files against the manifest, report violations only |\n| `\u002Forganize --show` | Display the current organization manifest |\n| `\u002Forganize --lock` | Set `locked: true` so the enforcement hook blocks violations |\n| `\u002Forganize --unlock` | Set `locked: false` so enforcement is advisory |\n| `\u002Forganize where does {file} go` | Single placement decision, no full audit |\n\n## Protocol\n\n### Step 1: CHECK\n\nRead `.claude\u002Fharness.json`. If an `organization` key exists, use its convention and placement rules; on bare `\u002Forganize`, ask whether to audit, adjust the rules, or reconfigure. If no key exists, continue to Step 2.\n\n### Step 2: DETECT\n\nUse the **Glob tool** (not `find` or `Get-ChildItem`) to discover directories. Filter out `node_modules`, `.git`, `.planning`, `.citadel`, `.claude`, `dist`, `build`, `__pycache__`, `.next`, `target`, `.venv`, `venv`. Cap at 200 directories; if larger, scan only the top 3 levels.\n\nConvention signals:\n- `src\u002Fcomponents\u002F`, `src\u002Fhooks\u002F`, `src\u002Futils\u002F` -> **layer-based**\n- `src\u002Ffeatures\u002Fauth\u002F`, `src\u002Ffeatures\u002Fdashboard\u002F` -> **feature-based**\n- `src\u002Fauth\u002Fcomponents\u002F`, `src\u002Fauth\u002Fhooks\u002F` -> **hybrid**\n- Flat `src\u002F` with no subdirectories -> **flat**\n- Mixed signals -> **custom** (ask the user which convention to adopt)\n\nRecord: convention, confidence (high\u002Fmedium\u002Flow), roots with purposes, anomalies.\n\n### Step 3: AUDIT\n\nCheck every source file against the placement rules (manifest if present, detected convention otherwise). Also check naming: files or directories that break the dominant casing or suffix pattern of their siblings.\n\n```\n=== Structure Audit: {project} ===\nConvention: {convention} ({confidence})\nCompliant: {N}\u002F{M} source files\nViolations:\n  {current_path} -> {expected_path} ({rule broken})\nNaming:\n  {path}: {issue}\n```\n\n### Step 4: PLAN\n\nFor each violation, build a move plan before touching anything: source path -> destination path, every importer whose import path must change, and barrel\u002Findex files that need re-exports updated. Moves and renames only; never delete files with content. Present the plan and wait for confirmation.\n\n### Step 5: APPLY\n\nExecute confirmed moves, update all import paths referencing moved files, update barrels, then run the project's typecheck command (from harness.json). Zero new errors allowed. If a move fails typecheck for reasons beyond import paths, revert that single move and flag the file instead of editing its code.\n\n### Step 6: CONFIGURE\n\nOn first run or reconfigure, write the `organization` key to harness.json. Read-modify-write: preserve all other keys, and preserve any existing `dynamic`\u002F`cleanupPolicy` entries this skill no longer manages.\n\n```json\n{\n  \"organization\": {\n    \"convention\": \"layer\",\n    \"roots\": { \"src\": { \"purpose\": \"application source\" } },\n    \"placement\": [\n      { \"glob\": \"*.test.{ts,tsx}\", \"rule\": \"colocated\", \"target\": null, \"reason\": \"tests live next to source\" }\n    ],\n    \"locked\": false\n  }\n}\n```\n\nRule types: `colocated`, `sibling-dir`, `root-dir`, `within-root`. Set `locked: false` initially; `\u002Forganize --lock` turns on blocking enforcement via the organize-enforce hook.\n\n## Fringe Cases\n\n- **No directories found \u002F empty project:** suggest flat convention; nothing to audit.\n- **Monorepo (multiple package.json):** scan each package root separately; ask whether rules are per-package or repo-wide.\n- **harness.json missing:** audit in advisory mode from the detected convention; offer to create the manifest.\n- **User changes convention:** warn with the number of files that would move. Never mass-move without explicit confirmation.\n- **Conflict with `protectedFiles`:** if protected files conflict with placement rules, warn and ask which takes precedence.\n\n## Contextual Gates\n\n**Disclosure:** \"Auditing repository structure. Moves execute only after you confirm the plan.\"\n**Reversibility:** amber -- file moves and import-path updates; undo with `git checkout -- .` before commit or `git revert` after.\n**Trust gates:** Any: detect and audit. Familiar (5+ sessions): confirmed move plans execute autonomously.\n\n## Quality Gates\n\n- [ ] Convention detected or read from the manifest before any audit verdicts\n- [ ] Every violation lists current path, expected path, and the rule it breaks\n- [ ] Move plan presented and confirmed before any file moves\n- [ ] No in-file code edits beyond import-path updates; split\u002Fextract needs are deferred to \u002Frefactor\n- [ ] Typecheck clean after moves (zero new errors)\n- [ ] harness.json write preserves all keys outside `organization`\n\n## Exit Protocol\n\n```\n---HANDOFF---\n- Structure: {convention}; {compliant}\u002F{total} files compliant after changes\n- Moves: {N} files moved, {M} import paths updated, 0 in-file refactors\n- Deferred to \u002Frefactor: {split\u002Fextract recommendations, or \"none\"}\n- Enforcement: {\"advisory (unlocked)\" | \"blocking (locked)\"}\n- Reversibility: amber -- undo moves with git checkout\u002Frevert\n---\n```\n",{"name":5,"license":15,"description":7,"auto-trigger":20,"last-updated":24,"user-invocable":25,"trigger_keywords":26},1781136000000,true,[5,27,28,29,30,31,32,33,34,35,36],"directory structure","folder structure","project structure","file organization","organize directories","organize files","cleanup directories","directory convention","where should this go","messy project","main","49119fa06efc769f502bede04ad99746ac20f021","skills\u002Forganize",0,"https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits","2nd-yr EEE 📍 Bangalore | Python, C, Java, C# | ML, NLP & Flask backends | Building AI tools that ship 🚀 | Open to hackathons & collabs","2026-11-14 14:46:28",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":25},[47,50,53],{"tool":48,"command":49},"npx","npx skills add mayankjain1815-commits\u002FCITADEL --skill organize",{"tool":51,"command":52},"bunx","bunx skills add mayankjain1815-commits\u002FCITADEL --skill organize",{"tool":54,"command":55},"pnpm","pnpm dlx skills add mayankjain1815-commits\u002FCITADEL --skill organize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Forganize\u002FSKILL.md",[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"__benchmarks__\u002Fmisplaced-files-move-plan.md","REFERENCE","参考文档",1550,"https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Forganize\u002F__benchmarks__\u002Fmisplaced-files-move-plan.md",[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79XH1DBMXQEF9N0Q6NW7Q5P","workspace","Multi-repo campaign coordinator. Same lifecycle as fleet -- scope claims, discovery relay, wave-based execution -- but the unit of work is a repo, not a file. Coordinates campaigns across repositories with shared context.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fworkspace\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79XGWJJHSKNTH78TNVX09VK","wiki","Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to ~400K words.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fwiki\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"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},"01M79XGNW2YTFHVMEZGZDEDN43","watch","File sentinel that monitors the working directory for changes and marker comments, then auto-triggers appropriate skills. Poll-based via git diff against the last scan commit. Writes intake items for batch processing and routes marker actions through \u002Fdo. Use for automatic reactions to file changes; do NOT use for one-off inspection or tasks needing human judgment per file.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fwatch\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M79XGHZ0028HDW7SDT186D6Q","verify","Self-test the Citadel hook pipeline from within a live session. Exercises real tool calls (Write, Edit, Bash, Read) and checks that hooks fired, telemetry accumulated, and no errors occurred. Reports HOOK HEALTH: PASS or HOOK HEALTH: FAIL with a per-hook breakdown.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79XGDKHMADJXC27T0FMQAN3","unharness","Remove Citadel from a project. Exports valuable state (campaigns, postmortems, research, backlog, discoveries) to docs\u002Fcitadel\u002F as human-readable markdown, then removes all harness files and hooks. The archive is detected by \u002Fdo setup on re-install and offered for restore.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Funharness\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M79XG81A3RHP2TKKBT5WYEY2","triage","GitHub issue and PR investigator. Pulls open issues\u002FPRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Use for investigating GitHub issues and reviewing PRs; do NOT use for general code review unrelated to GitHub issues.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Ftriage\u002FSKILL.md",[],[]]