[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EWGAKQRKQVFH97MYZ93BAV":3,"skill-same:01M7EWGAKQRKQVFH97MYZ93BAV":47},{"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":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EWGAKQRKQVFH97MYZ93BAV","zsh-pro",null,"Zsh guidance — interactive shell mastery, completion, prompt themes, plugins, and scripting differences from bash.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-zsh-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: zsh-pro\ndescription: Zsh guidance — interactive shell mastery, completion, prompt themes, plugins, and scripting differences from bash.\ncategory: development\n---\n\n## Overview\n\nZsh is the interactive shell of choice for most developers: best-in-class completion, powerful globbing, shared history, spelling correction, and a prompt system that shows git state, exit codes, and timing at a glance. It's the default on macOS and the upgrade most Linux users make within a week.\n\nZsh's power comes with configuration surface — plugins, frameworks, and options that can slow startup to a crawl if unmanaged. This skill covers interactive mastery (completion, history, prompt), sane plugin management, and the scripting differences from bash that bite when scripts assume one or the other.\n\n## When to use\n\n- Setting up or tuning an interactive zsh environment.\n- Fixing slow shell startup.\n- Writing zsh completion or customizing completion behavior.\n- Choosing a prompt theme or plugin manager.\n- Writing scripts that must run under zsh vs bash.\n- Debugging quoting\u002Fglobbing differences from bash.\n\n## Core concepts\n\n- **Completion system.** `compinit` + `zstyle` — context-aware completion for commands, flags, files, git branches, and hosts. More powerful than bash's; configure matchers (case-insensitive, substring) via zstyle. Slow `compinit` (dumping on every start) is a classic startup drag — cache the dump.\n- **Prompt.** `PROMPT`\u002F`RPROMPT` with `%` escapes, or frameworks (Powerlevel10k, Starship). Show: cwd, git branch\u002Fstatus, exit code of last command, background jobs. Instant prompt (p10k) eliminates theme render lag.\n- **History.** Shared across sessions (`SHARE_HISTORY`), huge sizes (`HISTSIZE=100000`), deduplication (`HIST_IGNORE_ALL_DUPS`), timestamps (`EXTENDED_HISTORY`). Your history is a knowledge base — make it searchable (Ctrl-R with fzf).\n- **Globbing.** Extended glob (`setopt EXTENDED_GLOB`): `**\u002F` recursive, `*(.)` plain files, `*(\u002F)` directories, `^` negation, `**\u002F*(.Lm+10)` files over 10MB. Glob qualifiers replace many `find` invocations interactively.\n- **ZLE (line editor).** The readline equivalent: custom widgets, keybindings (`bindkey`), vi-mode (`bindkey -v`) or emacs-mode. Bind fzf to Ctrl-R\u002FCtrl-T\u002FAlt-C for fuzzy history\u002Ffile\u002Fdirectory search.\n- **Options (`setopt`).** Hundreds of toggles: `AUTO_CD` (type a directory to cd), `CORRECT` (spelling correction), `EXTENDED_GLOB`, `NO_BEEP`, `INTERACTIVE_COMMENTS`. `emulate -L zsh` in functions for predictable option scope.\n- **Arrays are 1-indexed.** `$arr[1]` is the first element (unlike bash's 0). `${arr[@]}` still expands all. This bites in every ported script.\n- **No word splitting by default.** Unquoted `$var` does NOT split in zsh (unlike bash) — safer interactively, but `${=var}` forces splitting when needed. Scripts relying on bash splitting break silently.\n- **Plugin managers.** Antidote, zplug, sheldon (fast, declarative) vs Oh My Zsh (huge, slow without care). Lazy-load heavy plugins (nvm, pyenv, docker) — load them on first use, not at startup.\n- **Startup files.** `.zshenv` (always) → `.zprofile` (login) → `.zshrc` (interactive) → `.zlogin` (login, after zshrc). Put env in `.zshenv`, interactive config in `.zshrc`; keep login shells' PATH setup in `.zprofile`.\n- **Profiling startup.** `zprof` module or `time zsh -i -c exit` — measure before optimizing; the usual culprits are nvm\u002Fpyenv\u002Frbenv init and compinit dumps.\n- **fzf integration.** The multiplier: fuzzy history, file, directory, and process search bound to keys. Install once, use hundreds of times daily.\n- **Directory navigation.** `AUTO_CD` (type a dirname to cd), `AUTO_PUSHD` + `DIRSTACKSIZE` (every cd pushed; `dirs -v`, `cd -3` to jump back) — a directory stack replacing cd-history plugins.\n\n## Practical workflow\n\n1. **Profile first.** Time your startup; anything over ~200ms deserves investigation:\n   ```zsh\n   time zsh -i -c exit          # total startup time\n   zmodload zsh\u002Fzprof && zprof  # per-function breakdown (add at top\u002Fbottom of .zshrc)\n   ```\n2. **Lazy-load version managers.** The classic fix — nvm\u002Fpyenv shims on PATH, full init on first use:\n   ```zsh\n   # instead of: eval \"$(pyenv init -)\"  (slow every shell)\n   # use a lazy loader or a fast manager; measure the difference\n   ```\n3. **Configure completion.** Case-insensitive, substring matching, cached dump:\n   ```zsh\n   autoload -Uz compinit\n   compinit -C  # -C skips the security check for speed (safe on single-user machines)\n   zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'\n   ```\n4. **Set up history.** Large, shared, deduplicated, timestamped:\n   ```zsh\n   HISTSIZE=100000; SAVEHIST=100000; HISTFILE=~\u002F.zsh_history\n   setopt SHARE_HISTORY HIST_IGNORE_ALL_DUPS EXTENDED_HISTORY HIST_REDUCE_BLANKS\n   ```\n5. **Pick a fast prompt.** Powerlevel10k with instant prompt, or Starship (cross-shell). Show git status, exit codes, and async segments that never block typing.\n6. **Bind fzf.** Ctrl-R (history), Ctrl-T (files), Alt-C (cd), plus custom widgets (kill process, checkout branch, ssh host).\n7. **Learn the globs.** `ls **\u002F*.test.ts`, `rm *(.)` (files only), `cd **\u002Ftarget` — extended globbing replaces pipelines interactively.\n8. **Keep scripting portable.** For scripts, either target bash explicitly (`#!\u002Fusr\u002Fbin\u002Fenv bash`) or write zsh-aware code (`emulate -L zsh`, 1-indexed arrays, `${=}` for splitting). Don't let interactive conveniences leak into scripts.\n\n## Common pitfalls\n\n- **Slow startup accepted** — 2s shells every new terminal; profile and lazy-load.\n- **Oh My Zsh plugin sprawl** — dozens of plugins each adding milliseconds; audit ruthlessly.\n- **`compinit` without `-C`** — security check on every start; cache it.\n- **Bash-isms in zsh scripts** — 0-indexed arrays, word splitting assumptions; test scripts under the right shell.\n- **Zsh-isms in bash scripts** — `#!\u002Fbin\u002Fsh` with zsh-only syntax; match shebang to features used.\n- **Prompt blocking on git** — slow prompts in huge repos; async segments or simplified git status.\n- **No shared history** — each terminal an island; `SHARE_HISTORY` unites them.\n- **Overwriting `.zshenv`** — env vars in `.zshrc` invisible to non-interactive tools; understand the file order.\n- **Correction annoyance** — `CORRECT` \"correcting\" intentional commands; tune or disable per-command with `nocorrect`.\n- **Unquoted globs failing** — `setopt NOMATCH` making `scp host:*` error; quote remote patterns or set `NO_NOMATCH`.\n- **Plugin manager lock-in** — framework-specific config; prefer plain zsh + a fast declarative manager.\n- **Ignoring `emulate -L zsh`** — functions inheriting caller's options; scope options in functions.\n- **Starship\u002Fp10k misconfigured** — transient prompt losing scrollback context; configure deliberately.\n","## Overview\n\nZsh is the interactive shell of choice for most developers: best-in-class completion, powerful globbing, shared history, spelling correction, and a prompt system that shows git state, exit codes, and timing at a glance. It's the default on macOS and the upgrade most Linux users make within a week.\n\nZsh's power comes with configuration surface — plugins, frameworks, and options that can slow startup to a crawl if unmanaged. This skill covers interactive mastery (completion, history, prompt), sane plugin management, and the scripting differences from bash that bite when scripts assume one or the other.\n\n## When to use\n\n- Setting up or tuning an interactive zsh environment.\n- Fixing slow shell startup.\n- Writing zsh completion or customizing completion behavior.\n- Choosing a prompt theme or plugin manager.\n- Writing scripts that must run under zsh vs bash.\n- Debugging quoting\u002Fglobbing differences from bash.\n\n## Core concepts\n\n- **Completion system.** `compinit` + `zstyle` — context-aware completion for commands, flags, files, git branches, and hosts. More powerful than bash's; configure matchers (case-insensitive, substring) via zstyle. Slow `compinit` (dumping on every start) is a classic startup drag — cache the dump.\n- **Prompt.** `PROMPT`\u002F`RPROMPT` with `%` escapes, or frameworks (Powerlevel10k, Starship). Show: cwd, git branch\u002Fstatus, exit code of last command, background jobs. Instant prompt (p10k) eliminates theme render lag.\n- **History.** Shared across sessions (`SHARE_HISTORY`), huge sizes (`HISTSIZE=100000`), deduplication (`HIST_IGNORE_ALL_DUPS`), timestamps (`EXTENDED_HISTORY`). Your history is a knowledge base — make it searchable (Ctrl-R with fzf).\n- **Globbing.** Extended glob (`setopt EXTENDED_GLOB`): `**\u002F` recursive, `*(.)` plain files, `*(\u002F)` directories, `^` negation, `**\u002F*(.Lm+10)` files over 10MB. Glob qualifiers replace many `find` invocations interactively.\n- **ZLE (line editor).** The readline equivalent: custom widgets, keybindings (`bindkey`), vi-mode (`bindkey -v`) or emacs-mode. Bind fzf to Ctrl-R\u002FCtrl-T\u002FAlt-C for fuzzy history\u002Ffile\u002Fdirectory search.\n- **Options (`setopt`).** Hundreds of toggles: `AUTO_CD` (type a directory to cd), `CORRECT` (spelling correction), `EXTENDED_GLOB`, `NO_BEEP`, `INTERACTIVE_COMMENTS`. `emulate -L zsh` in functions for predictable option scope.\n- **Arrays are 1-indexed.** `$arr[1]` is the first element (unlike bash's 0). `${arr[@]}` still expands all. This bites in every ported script.\n- **No word splitting by default.** Unquoted `$var` does NOT split in zsh (unlike bash) — safer interactively, but `${=var}` forces splitting when needed. Scripts relying on bash splitting break silently.\n- **Plugin managers.** Antidote, zplug, sheldon (fast, declarative) vs Oh My Zsh (huge, slow without care). Lazy-load heavy plugins (nvm, pyenv, docker) — load them on first use, not at startup.\n- **Startup files.** `.zshenv` (always) → `.zprofile` (login) → `.zshrc` (interactive) → `.zlogin` (login, after zshrc). Put env in `.zshenv`, interactive config in `.zshrc`; keep login shells' PATH setup in `.zprofile`.\n- **Profiling startup.** `zprof` module or `time zsh -i -c exit` — measure before optimizing; the usual culprits are nvm\u002Fpyenv\u002Frbenv init and compinit dumps.\n- **fzf integration.** The multiplier: fuzzy history, file, directory, and process search bound to keys. Install once, use hundreds of times daily.\n- **Directory navigation.** `AUTO_CD` (type a dirname to cd), `AUTO_PUSHD` + `DIRSTACKSIZE` (every cd pushed; `dirs -v`, `cd -3` to jump back) — a directory stack replacing cd-history plugins.\n\n## Practical workflow\n\n1. **Profile first.** Time your startup; anything over ~200ms deserves investigation:\n   ```zsh\n   time zsh -i -c exit          # total startup time\n   zmodload zsh\u002Fzprof && zprof  # per-function breakdown (add at top\u002Fbottom of .zshrc)\n   ```\n2. **Lazy-load version managers.** The classic fix — nvm\u002Fpyenv shims on PATH, full init on first use:\n   ```zsh\n   # instead of: eval \"$(pyenv init -)\"  (slow every shell)\n   # use a lazy loader or a fast manager; measure the difference\n   ```\n3. **Configure completion.** Case-insensitive, substring matching, cached dump:\n   ```zsh\n   autoload -Uz compinit\n   compinit -C  # -C skips the security check for speed (safe on single-user machines)\n   zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'\n   ```\n4. **Set up history.** Large, shared, deduplicated, timestamped:\n   ```zsh\n   HISTSIZE=100000; SAVEHIST=100000; HISTFILE=~\u002F.zsh_history\n   setopt SHARE_HISTORY HIST_IGNORE_ALL_DUPS EXTENDED_HISTORY HIST_REDUCE_BLANKS\n   ```\n5. **Pick a fast prompt.** Powerlevel10k with instant prompt, or Starship (cross-shell). Show git status, exit codes, and async segments that never block typing.\n6. **Bind fzf.** Ctrl-R (history), Ctrl-T (files), Alt-C (cd), plus custom widgets (kill process, checkout branch, ssh host).\n7. **Learn the globs.** `ls **\u002F*.test.ts`, `rm *(.)` (files only), `cd **\u002Ftarget` — extended globbing replaces pipelines interactively.\n8. **Keep scripting portable.** For scripts, either target bash explicitly (`#!\u002Fusr\u002Fbin\u002Fenv bash`) or write zsh-aware code (`emulate -L zsh`, 1-indexed arrays, `${=}` for splitting). Don't let interactive conveniences leak into scripts.\n\n## Common pitfalls\n\n- **Slow startup accepted** — 2s shells every new terminal; profile and lazy-load.\n- **Oh My Zsh plugin sprawl** — dozens of plugins each adding milliseconds; audit ruthlessly.\n- **`compinit` without `-C`** — security check on every start; cache it.\n- **Bash-isms in zsh scripts** — 0-indexed arrays, word splitting assumptions; test scripts under the right shell.\n- **Zsh-isms in bash scripts** — `#!\u002Fbin\u002Fsh` with zsh-only syntax; match shebang to features used.\n- **Prompt blocking on git** — slow prompts in huge repos; async segments or simplified git status.\n- **No shared history** — each terminal an island; `SHARE_HISTORY` unites them.\n- **Overwriting `.zshenv`** — env vars in `.zshrc` invisible to non-interactive tools; understand the file order.\n- **Correction annoyance** — `CORRECT` \"correcting\" intentional commands; tune or disable per-command with `nocorrect`.\n- **Unquoted globs failing** — `setopt NOMATCH` making `scp host:*` error; quote remote patterns or set `NO_NOMATCH`.\n- **Plugin manager lock-in** — framework-specific config; prefer plain zsh + a fast declarative manager.\n- **Ignoring `emulate -L zsh`** — functions inheriting caller's options; scope options in functions.\n- **Starship\u002Fp10k misconfigured** — transient prompt losing scrollback context; configure deliberately.\n",{"name":5,"category":24,"description":7},"development","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-zsh-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill zsh-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill zsh-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill zsh-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-zsh-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]