agentleFS
VochselVochsel/dump.page/.claude/skills/add-pro-feature/SKILL.md

add-pro-feature

Skill3 starsChanged 9 months agoMITView on GitHub

Add a new feature gated behind Pro Mode (dump-pro-mode localStorage preference).

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
  1. Very specific:

    Add a new feature gated behind Pro Mode (dump-pro-mode localStorage preference).

    line 1
  2. Very specific:

    Add a new entry to the features array with { icon: IconName, label: "Short name", desc: "One-line description" }

    line 12
  3. Distinctive:

    Import the lucide icon if not already imported

    line 13
  4. Very specific:

    Add a new entry to the PRO_FEATURES array with:

    line 16
  5. Distinctive:

    Import the icon from lucide-react if not already imported

    line 21
  6. Distinctive:

    Keep welcome dialog entries concise: label (2-4 words) + desc (under 60 chars)

    line 34
  7. Very specific:

    Always gate behind proMode — never show pro features by default

    line 36
  8. Very specific:

    Use existing patterns: useLocalStorage for reading the preference, lucide icons for UI

    line 37

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Add a new feature gated behind Pro Mode (dump-pro-mode localStorage preference).

Steps

  1. Implement the feature — gate it behind the proMode boolean:
    • 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 import import { PRO_MODE_STORAGE_KEY } from "@/lib/chat-providers"; and import { useLocalStorage } from "@/hooks/useLocalStorage";
    • Wrap the feature's UI with {proMode && ( ... )}
  2. Add to the welcome dialog in src/components/canvas/Canvas.tsx:
    • Find the Pro Mode Enabled dialog (search for proWelcomeOpen)
    • 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
  3. Document on the help page at src/app/help/pro-mode/page.tsx:
    • Add a new entry to the PRO_FEATURES array with:
      • icon: lucide-react icon component
      • title: feature name (2-4 words)
      • description: 1-2 sentences explaining the feature
      • color: one of blue, violet, green, orange, indigo, amber — pick one not already heavily used, or add a new color to COLOR_MAP
    • Import the icon from lucide-react if not already imported

Key files

  • src/lib/chat-providers.ts — PRO_MODE_STORAGE_KEY constant
  • src/components/canvas/Canvas.tsx — pro mode toggle, welcome dialog, canvas features
  • src/components/board/BoardSettings.tsx — board settings (context type, system prompt, RSS)
  • src/components/board/ChatButton.tsx — AI chat prompt dialog
  • src/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: useLocalStorage for reading the preference, lucide icons for UI

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.