mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-18 18:04:26 +00:00
* fix(extension): replace server API with local content extraction Chrome Web Store rejected the extension because the core "Save page as Skill" feature called https://skillkit.sh/api/save-skill which is unreachable during review. This rewires page saving to work entirely locally using chrome.scripting.executeScript to extract page content (title, meta description, headings, body text) directly in the browser. - Remove API_URL and callSaveApi() server dependency - Add extractPageContent() via chrome.scripting.executeScript - Add detectTags() with weighted keyword scoring (URL/headings/body) - Add buildPageSkill() to generate SKILL.md with frontmatter locally - Add scripting permission to manifest - Pass tabId from popup to background for script injection targeting - Block chrome-extension:// and chromewebstore.google.com URLs - Add console.error logging in catch blocks for debuggability - Guard currentTabId validity in popup click handler - Update store listing to reflect fully local processing - Bump version to 1.20.0 * fix(extension): address code review findings for robustness - Extract RESTRICTED_PREFIXES and isRestricted() into shared constants.ts so popup and background use the same URL blocklist - Fix yamlEscape to quote YAML bare scalars (true/false/null/yes/no/on/off) and numeric strings that parsers would coerce to non-string types - Apply yamlEscape to skill name fields in both buildPageSkill and buildSelectionSkill to prevent YAML misinterpretation - Switch tag detection from substring matching to word-boundary regex to eliminate false positives (e.g. "js" matching "adjustments") - Check chrome.runtime.lastError in download callback and always revoke blob URL to prevent leaks on download failure
@skillkit/extension
Chrome extension to save any webpage as an AI agent skill. No server needed.
Install
pnpm --filter @skillkit/extension build
Then in Chrome:
- Open
chrome://extensions - Enable "Developer mode"
- Click "Load unpacked"
- Select
packages/extension/dist/
Usage
- Click the extension icon → Save as Skill
- Right-click any page → Save page as Skill
- Select text → right-click → Save selection as Skill
Skills download to Downloads/skillkit-skills/{name}/SKILL.md.
To make available to all 44 agents:
skillkit install ~/Downloads/skillkit-skills/my-skill
How It Works
Everything runs in the browser:
- Content script converts page HTML to markdown via Turndown
- Background worker generates SKILL.md with YAML frontmatter and auto-tags
- Downloads API saves the file — no server calls
Build
pnpm --filter @skillkit/extension build
Output: dist/ with manifest, JS bundles (IIFE), popup UI, and icons.