[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AGJSC2KR24NJHYCS1R80KP":3,"skill-same:01M7AGJSC2KR24NJHYCS1R80KP":57},{"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":29,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7AGJSC2KR24NJHYCS1R80KP","ck:preview",null,"View files\u002Fdirectories OR generate visual explanations, slides, diagrams.","manhvann\u002Fcodexkit","manhvann","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108862213?v=4","01M7AGBGXSB8Z8HXXR27QKX035","Manh Nguyen Van","01M7AGBGYDJPBR2EYEWJ0G1K8J",88,"MIT","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpreview\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ck:preview\ndescription: \"View files\u002Fdirectories OR generate visual explanations, slides, diagrams.\"\nargument-hint: \"[path] OR --explain|--slides|--diagram|--ascii [topic]\"\n---\n\n# Preview\n\nUniversal viewer + visual generator. View existing content OR generate new visual explanations.\n\n## Default (No Arguments)\n\nIf invoked without arguments, ask the user to choose available preview operations:\n\n| Operation | Description |\n|-----------|-------------|\n| `(view)` | View a file or directory |\n| `--explain` | Generate visual explanation |\n| `--slides` | Generate presentation slides |\n| `--diagram` | Generate architecture diagram |\n| `--ascii` | Terminal-friendly diagram |\n| `--stop` | Stop preview server |\n\nPresent options with header \"Preview Operation\", question \"What would you like to do?\".\n\n## Usage\n\n### View Mode\n- `$preview \u003Cfile.md>` - View markdown file in novel-reader UI\n- `$preview \u003Cdirectory\u002F>` - Browse directory contents\n- `$preview --stop` - Stop running server\n\n### Generation Mode\n- `$preview --explain \u003Ctopic>` - Generate visual explanation (ASCII + Mermaid + prose)\n- `$preview --slides \u003Ctopic>` - Generate presentation slides (one concept per slide)\n- `$preview --diagram \u003Ctopic>` - Generate focused diagram (ASCII + Mermaid)\n- `$preview --ascii \u003Ctopic>` - Generate ASCII-only diagram (terminal-friendly)\n\n## Argument Resolution\n\nWhen processing arguments, follow this priority order:\n\n1. **`--stop`** → Stop server (exit)\n2. **Generation flags** (`--explain`, `--slides`, `--diagram`, `--ascii`) → Generation mode. Load `references\u002Fgeneration-modes.md`\n3. **Resolve path from argument:**\n   - If argument is an explicit path → use directly\n   - If argument is a contextual reference → resolve from recent conversation context\n4. **Resolved path exists on filesystem** → View mode. Load `references\u002Fview-mode.md`\n5. **Path doesn't exist or can't resolve** → Ask user to clarify\n\n**Topic-to-slug conversion:**\n- Lowercase the topic\n- Replace spaces\u002Fspecial chars with hyphens\n- Remove non-alphanumeric except hyphens\n- Collapse multiple hyphens → single hyphen\n- Trim leading\u002Ftrailing hyphens\n- **Max 80 chars** - truncate at word boundary if longer\n\n**Multiple flags:** If multiple generation flags provided, use first one; remaining treated as topic.\n\n**Placeholder `{topic}`:** Replaced with original user input in title case (not the slug).\n\n## Error Handling\n\n| Error | Action |\n|-------|--------|\n| Invalid topic (empty) | Ask user to provide a topic |\n| Flag without topic | Ask user: \"Please provide a topic: `$preview --explain \u003Ctopic>`\" |\n| Topic becomes empty after sanitization | Ask for topic with alphanumeric characters |\n| File write failure | Report error, suggest checking permissions |\n| Server startup failure | Check if port in use, try `$preview --stop` first |\n| No generation flag + unresolvable reference | Ask user to clarify which file they meant |\n| Existing file at output path | Overwrite with new content (no prompt) |\n| Server already running | Reuse existing server instance, just open new URL |\n| Parent `plans\u002F` dir missing | Create directories recursively before write |\n","# Preview\n\nUniversal viewer + visual generator. View existing content OR generate new visual explanations.\n\n## Default (No Arguments)\n\nIf invoked without arguments, ask the user to choose available preview operations:\n\n| Operation | Description |\n|-----------|-------------|\n| `(view)` | View a file or directory |\n| `--explain` | Generate visual explanation |\n| `--slides` | Generate presentation slides |\n| `--diagram` | Generate architecture diagram |\n| `--ascii` | Terminal-friendly diagram |\n| `--stop` | Stop preview server |\n\nPresent options with header \"Preview Operation\", question \"What would you like to do?\".\n\n## Usage\n\n### View Mode\n- `$preview \u003Cfile.md>` - View markdown file in novel-reader UI\n- `$preview \u003Cdirectory\u002F>` - Browse directory contents\n- `$preview --stop` - Stop running server\n\n### Generation Mode\n- `$preview --explain \u003Ctopic>` - Generate visual explanation (ASCII + Mermaid + prose)\n- `$preview --slides \u003Ctopic>` - Generate presentation slides (one concept per slide)\n- `$preview --diagram \u003Ctopic>` - Generate focused diagram (ASCII + Mermaid)\n- `$preview --ascii \u003Ctopic>` - Generate ASCII-only diagram (terminal-friendly)\n\n## Argument Resolution\n\nWhen processing arguments, follow this priority order:\n\n1. **`--stop`** → Stop server (exit)\n2. **Generation flags** (`--explain`, `--slides`, `--diagram`, `--ascii`) → Generation mode. Load `references\u002Fgeneration-modes.md`\n3. **Resolve path from argument:**\n   - If argument is an explicit path → use directly\n   - If argument is a contextual reference → resolve from recent conversation context\n4. **Resolved path exists on filesystem** → View mode. Load `references\u002Fview-mode.md`\n5. **Path doesn't exist or can't resolve** → Ask user to clarify\n\n**Topic-to-slug conversion:**\n- Lowercase the topic\n- Replace spaces\u002Fspecial chars with hyphens\n- Remove non-alphanumeric except hyphens\n- Collapse multiple hyphens → single hyphen\n- Trim leading\u002Ftrailing hyphens\n- **Max 80 chars** - truncate at word boundary if longer\n\n**Multiple flags:** If multiple generation flags provided, use first one; remaining treated as topic.\n\n**Placeholder `{topic}`:** Replaced with original user input in title case (not the slug).\n\n## Error Handling\n\n| Error | Action |\n|-------|--------|\n| Invalid topic (empty) | Ask user to provide a topic |\n| Flag without topic | Ask user: \"Please provide a topic: `$preview --explain \u003Ctopic>`\" |\n| Topic becomes empty after sanitization | Ask for topic with alphanumeric characters |\n| File write failure | Report error, suggest checking permissions |\n| Server startup failure | Check if port in use, try `$preview --stop` first |\n| No generation flag + unresolvable reference | Ask user to clarify which file they meant |\n| Existing file at output path | Overwrite with new content (no prompt) |\n| Server already running | Reuse existing server instance, just open new URL |\n| Parent `plans\u002F` dir missing | Create directories recursively before write |\n",{"name":5,"description":7,"argument-hint":24},"[path] OR --explain|--slides|--diagram|--ascii [topic]","main","f4f392e3e6ac09daca9d7c44c3afb20945435e36",".agents\u002Fskills\u002Fpreview",79,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit","https:\u002F\u002Fgithub.com\u002Fmanhvann","Backend Engineer passionate about building reliable systems and contributing to open source.","2026-08-29 12:03:10",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add manhvann\u002Fcodexkit --skill \"ck:preview\"",{"tool":39,"command":40},"bunx","bunx skills add manhvann\u002Fcodexkit --skill \"ck:preview\"",{"tool":42,"command":43},"pnpm","pnpm dlx skills add manhvann\u002Fcodexkit --skill \"ck:preview\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpreview\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fgeneration-modes.md","REFERENCE","参考文档",2061,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpreview\u002Freferences\u002Fgeneration-modes.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fview-mode.md",1228,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpreview\u002Freferences\u002Fview-mode.md",[58,65,73,80,87,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7AGNE44ZPV7VVMCZCDQ0X55","ck:worktree","Create isolated git worktree for parallel development in monorepos.","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworktree\u002FSKILL.md",[],[],{"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":69,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7AGNB7EGT5ZKNRAF5M1V6D0","ck:web-testing","Web testing with Playwright, Vitest, k6. E2E\u002Funit\u002Fintegration\u002Fload\u002Fsecurity\u002Fvisual\u002Fa11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-testing\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7AGN7W938QCYZ70A8B0X70G","ck:web-frameworks","Build with Next.js (App Router, RSC, SSR, ISR), Turborepo monorepos. Use for React apps, server rendering, build optimization, caching strategies, shared dependencies.","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-frameworks\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7AGN5HKJM49Z49N6XFDQB82","ck:web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7AGN4D60DGGYM2YGZ80NT2A","ck:watzup","Review recent changes and wrap up the current work session.","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwatzup\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7AGN308V7338SEEX8A6DZ53","ck:use-mcp","Utilize MCP server tools with intelligent discovery and execution.","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fuse-mcp\u002FSKILL.md",[],[]]