Skip to content

CLAUDE.md duplicates SKILL.md — wastes context tokens #49

@NerdBase-by-Stark

Description

@NerdBase-by-Stark

Problem

The supabase-postgres-best-practices skill ships with CLAUDE.md and SKILL.md that are ~90% identical (both 65 lines, same content). Claude Code loads CLAUDE.md into every conversation context automatically. Since SKILL.md already contains the full guidelines and routing table to references/, the duplication wastes context window tokens on every session.

Current state

  • CLAUDE.md: 69 lines — full description, priority table, usage instructions, references
  • SKILL.md: 65 lines — nearly identical content
  • references/: 31 on-demand rule files (well-structured, no issue here)

Suggestion

Slim CLAUDE.md down to a short pointer:

# Supabase Postgres Best Practices

Postgres optimization skill from Supabase. See `SKILL.md` for full guidelines and `references/` for detailed rules (loaded on-demand).

This preserves discoverability while saving ~60 lines of duplicated context per conversation. The SKILL.md and references/ structure is already excellent — the issue is just the redundant CLAUDE.md.

Context

This matters because CLAUDE.md is injected into the context window at conversation start. For users with multiple skills installed, every duplicated line compounds. The Railway skill (railwayapp/railway-skills) handles this well — no CLAUDE.md at all, just a well-structured SKILL.md with on-demand references.


Filed after installing via npx skills add supabase/agent-skills@supabase-postgres-best-practices

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions