add-pro-feature
Skill3 starsChanged 9 months agoMITView on GitHub
Add a new feature gated behind Pro Mode (dump-pro-mode localStorage preference).
In this repository2 other files it gives its agents.
- add-tipSkill
- release-versionSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 1
Add a new feature gated behind Pro Mode (dump-pro-mode localStorage preference).
- Very specific: line 12
Add a new entry to the features array with { icon: IconName, label: "Short name", desc: "One-line description" }
- Distinctive: line 13
Import the lucide icon if not already imported
- Very specific: line 16
Add a new entry to the PRO_FEATURES array with:
- Distinctive: line 21
Import the icon from lucide-react if not already imported
- Distinctive: line 34
Keep welcome dialog entries concise: label (2-4 words) + desc (under 60 chars)
- Very specific: line 36
Always gate behind proMode — never show pro features by default
- Very specific: line 37
Use existing patterns: useLocalStorage for reading the preference, lucide icons for UI
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add a new feature gated behind Pro Mode (dump-pro-mode localStorage preference).
Steps
- Implement the feature — gate it behind the
proModeboolean:- In Canvas.tsx:
const [proMode] = useLocalStorage(PRO_MODE_STORAGE_KEY, false);(already exists) - In other components:
const [proMode] = useLocalStorage(PRO_MODE_STORAGE_KEY, false);with importimport { PRO_MODE_STORAGE_KEY } from "@/lib/chat-providers";andimport { useLocalStorage } from "@/hooks/useLocalStorage"; - Wrap the feature's UI with
{proMode && ( ... )}
- In Canvas.tsx:
- Add to the welcome dialog in
src/components/canvas/Canvas.tsx:- Find the
Pro Mode Enableddialog (search forproWelcomeOpen) - Add a new entry to the features array with
{ icon: IconName, label: "Short name", desc: "One-line description" } - Import the lucide icon if not already imported
- Find the
- Document on the help page at
src/app/help/pro-mode/page.tsx:- Add a new entry to the
PRO_FEATURESarray with:icon: lucide-react icon componenttitle: feature name (2-4 words)description: 1-2 sentences explaining the featurecolor: one ofblue,violet,green,orange,indigo,amber— pick one not already heavily used, or add a new color toCOLOR_MAP
- Import the icon from lucide-react if not already imported
- Add a new entry to the
Key files
src/lib/chat-providers.ts—PRO_MODE_STORAGE_KEYconstantsrc/components/canvas/Canvas.tsx— pro mode toggle, welcome dialog, canvas featuressrc/components/board/BoardSettings.tsx— board settings (context type, system prompt, RSS)src/components/board/ChatButton.tsx— AI chat prompt dialogsrc/app/b/[boardId]/page.tsx— board page (view switcher)src/app/help/pro-mode/page.tsx— help page listing all pro features
Style guide
- Keep welcome dialog entries concise: label (2-4 words) + desc (under 60 chars)
- Help page descriptions: 1-2 full sentences explaining what the feature does
- Always gate behind
proMode— never show pro features by default - Use existing patterns:
useLocalStoragefor reading the preference, lucide icons for UI
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

