skills/local-ref/SKILL.md
Local docs cache for the project. Always check docs/reference/ before fetching externally. Use for init (set up cache), update (refresh docs), lookup (local-first search), and save (persist fetched docs). If external docs are fetched (Context7/web), save a tailored topic file to docs/reference/ and add a verbal pointer in AGENTS.md.
npx skillsauth add aivokone/ak-skills local-refInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Cache library documentation locally so every session reads from disk instead of re-fetching from external sources. Local docs load via Read tool (free, instant) instead of API calls (tokens + latency).
Fetch documentation from any of these, in order of preference:
references/context7-api.md.--help outputlocal-ref initSet up local documentation cache for a project.
Detect project technologies from these sources:
package.json (JS/Node dependencies)composer.json (PHP dependencies)AGENTS.md / CLAUDE.md (mentioned frameworks)requirements.txt / pyproject.toml (Python)Gemfile (Ruby)go.mod (Go)Confirm with user which technologies to cache. Suggest the top 3-5 most relevant. Skip generic/obvious ones (e.g., don't cache "JavaScript" docs for a JS project).
For each technology: a. Scan project code to identify which APIs/patterns are actually used b. Fetch documentation from best available source (see Sources above) c. Filter fetched content to patterns relevant to this project
Write project-specific docs to docs/reference/<topic>.md:
lib/acf.php")Update AGENTS.md — add a ## Local Reference Documentation section with verbal references (NOT @-references) to the docs:
## Local Reference Documentation
The `docs/reference/` directory contains project-specific API references.
Check these files before using external documentation tools:
- `docs/reference/<file>.md` — <brief description>
local-ref updateRefresh existing local docs.
docs/reference/ to find existing doc files<!-- source="..." --> header to determine source type and parameters (libraryId/query for context7, url for webfetch)context7 — re-fetch using libraryId and querywebfetch — re-fetch from urlmanual — skip (flag for user review if stale)<!-- cached="..." --> datelocal-ref lookup <topic>Find documentation, local-first.
docs/reference/ for a matching file (grep for topic keywords)local-ref save (opportunistic, mid-project)When working on a project and you fetch documentation from an external source (Context7, WebFetch, etc.) that would be useful across sessions:
docs/reference/?"docs/reference/<topic>.md with the standard header (see File Header Format)## Local Reference Documentation bullet list so future sessions discover itThis keeps docs growing organically as the project evolves, without requiring explicit init or update runs.
The init command adds a ## Local Reference Documentation section to AGENTS.md. This section loads every session (~80 tokens) and tells Claude to check docs/reference/ before external lookups. This passive guidance works without loading the skill itself.
Every cached doc file MUST start with this machine-readable header. The update command depends on it.
# Vite Asset Pipeline — Project Reference
<!-- source="context7" libraryId="/vitejs/vite" query="build manifest plugin configuration" -->
<!-- cached="2026-02-16" -->
Content here...
Header fields:
| Field | Required | Values |
|-------|----------|--------|
| source | yes | context7, webfetch, manual |
| libraryId | if context7 | Context7 library ID |
| url | if webfetch | Source URL |
| query | if applicable | Query used to fetch content |
| cached | yes | ISO date (YYYY-MM-DD) of last fetch |
For manually created docs, use source="manual":
# Internal Auth API — Project Reference
<!-- source="manual" cached="2026-02-16" -->
Skip local caching when:
When in doubt, cache. Stale docs are better than no docs — update can refresh context7 and webfetch sources automatically (manual sources are flagged for review).
@docs/reference/... to AGENTS.md (would bloat system prompt). Use plain text descriptions so Claude reads files on-demand.lib/assets.php for implementation").init command above.Use descriptive kebab-case names:
docs/reference/
├── acf-patterns.md
├── vite-asset-pipeline.md
├── wordpress-cpt-taxonomy.md
├── bootstrap-grid-components.md
└── react-hooks-patterns.md
See references/context7-api.md for Context7 API endpoints and common library IDs.
tools
Create, edit, and debug SwiftBar menu bar plugins for macOS. ALWAYS use this skill when the user wants to put anything in the macOS menu bar — whether they say "menu bar plugin", "status bar widget", "menu bar item", or just want to show live data, counters, status indicators, or monitoring info in the macOS top bar. Also triggers for SwiftBar, BitBar, xbar by name, editing or debugging existing menu bar plugin scripts (.sh/.py with | parameters and --- separators), or any request to build a script that outputs formatted lines for a menu bar app. This is the go-to skill whenever macOS menu bar customization is involved, even if the user doesn't mention SwiftBar specifically — if they want a script-based menu bar item on macOS, this skill applies.
tools
Use this skill FIRST for any Seravo-hosted WordPress task. Trigger when the user mentions Seravo, production/shadow, deploy, Git-based deploys, SSH, DDEV, DB sync/import/export, or Seravo custom wp-* commands (wp-backup*, wp-purge-cache, wp-list-env). Start by identifying the environment (production vs shadow vs local) and enforce safety: agents must not run destructive or state-changing commands on production. When production write is needed, provide exact copy-paste commands for the user. Use Seravo-specific CLI and workflows instead of generic WP guidance to avoid wrong commands and risky prod changes.
development
Systematic PR fix loop — checks feedback from all channels (conversation, inline, reviews), fixes code, posts fix reports, and loops until no new feedback remains. All operations through provided scripts.
tools
Query any Google Ads account via GAQL. Use when the user asks about Google Ads campaigns, conversions, keywords, ad performance, or bidding. Triggered by: Google Ads, campaign, conversion, PPC, CPC, keyword, click, impression, ROAS, CPA.