agentleFS
johnrtiptonjohnrtipton/claude-code-toolkit/CLAUDE.md

claude-code-toolkit

CLAUDE.md4 starsChanged 14 months agoBSD-3-ClauseView on GitHub

This is a Claude Code plugin marketplace containing professional Django development skills. The repository follows the Claude Code plugin marketplace structure and distributes skills/plugins that can be installed by Claude Code users. This repository is a marketplace that contains plugins, which in turn contain skills: The .claude-plugin/marketplace.json file defines all plugins and their associated skills. The main skill in this repo provides Django multi-tenant architecture patterns: When making changes to skills:

The file

We split this CLAUDE.md into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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. Distinctive:

    Must match Claude Code's marketplace schema

    line 40
  2. Very specific:

    All models inherit from TenantBaseModel or TenantAwareModel

    line 53
  3. Very specific:

    Create SKILL.md with YAML frontmatter (name and description required)

    line 73
  4. Very specific:

    Add optional directories: scripts/, references/, assets/

    line 74
  5. Very specific:

    Add to existing plugin's skills array, OR

    line 76
  6. Distinctive:

    Create new plugin entry with the skill

    line 77
  7. Distinctive:

    When making changes to skills:

    line 94
  8. Distinctive:

    Test that YAML frontmatter is valid

    line 97
  9. Very specific:

    Update marketplace.json if adding/removing skills

    line 98
  10. Distinctive:

    Update README.md to reflect changes

    line 99
  11. Distinctive:

    Commit with descriptive message

    line 100
  12. Distinctive:

    No build/test commands - this is a documentation/template repository

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md 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
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Repository Overview

This is a Claude Code plugin marketplace containing professional Django development skills. The repository follows the Claude Code plugin marketplace structure and distributes skills/plugins that can be installed by Claude Code users.

Repository Structure

claude-code-toolkit/
├── .claude-plugin/
│   └── marketplace.json   # Marketplace metadata (defines plugins and skills)
├── skills/
│   └── django-best-practices/
│       ├── SKILL.md       # Main skill file with YAML frontmatter
│       ├── scripts/       # Code generation scripts (generate_model.py)
│       ├── references/    # Detailed documentation (multi-tenant, model, admin patterns)
│       └── assets/        # Templates (model_template.py, admin_template.py, test_template.py)
└── README.md

Plugin Marketplace Structure

This repository is a marketplace that contains plugins, which in turn contain skills:

  • Marketplace: claude-code-toolkit (this repo)
    • Plugin: django-skills (collection of Django-related skills)
      • Skill: django-best-practices (multi-tenant Django patterns)

The .claude-plugin/marketplace.json file defines all plugins and their associated skills.

Key Files

.claude-plugin/marketplace.json

  • Defines marketplace metadata (name, owner, description, version)
  • Lists all plugins available in this marketplace
  • Each plugin specifies its skills (paths to SKILL.md files)
  • Must match Claude Code's marketplace schema

skills/*/SKILL.md

  • Each skill requires a SKILL.md file with YAML frontmatter
  • Frontmatter must include: name and description
  • The description determines when Claude Code automatically activates the skill
  • Body contains the full skill instructions/documentation

Django Best Practices Skill

The main skill in this repo provides Django multi-tenant architecture patterns:

Core Concepts

  • All models inherit from TenantBaseModel or TenantAwareModel
  • Multi-tenant data isolation enforced at database and application layers
  • Tenant context set by middleware from authenticated user
  • QuerySets automatically filtered by current tenant
  • Indexes always put tenant field first in composite indexes
  • Unique constraints include tenant field

Quick Reference

  • Templates: skills/django-best-practices/assets/ - Copy-paste templates for models, admin, tests
  • References: skills/django-best-practices/references/ - Detailed pattern documentation
  • Generator: skills/django-best-practices/scripts/generate_model.py - Boilerplate code generation

Code Generation

python skills/django-best-practices/scripts/generate_model.py <app_name> <model_name> [--with-admin] [--with-tests]

Adding New Skills

  1. Create directory: skills/your-skill-name/
  2. Create SKILL.md with YAML frontmatter (name and description required)
  3. Add optional directories: scripts/, references/, assets/
  4. Update .claude-plugin/marketplace.json:
    • Add to existing plugin's skills array, OR
    • Create new plugin entry with the skill

Installation Commands (for users)

# Add marketplace
/plugin marketplace add https://github.com/johnrtipton/claude-code-toolkit

# List plugins
/plugin marketplace list claude-code-toolkit

# Install plugin
/plugin install django-skills

Development Workflow

When making changes to skills:

  1. Edit the SKILL.md file or add/update references
  2. Test that YAML frontmatter is valid
  3. Update marketplace.json if adding/removing skills
  4. Update README.md to reflect changes
  5. Commit with descriptive message
  6. Push to GitHub (users pull updates when they sync)

Important Notes

  • No build/test commands - this is a documentation/template repository
  • Skills are loaded directly by Claude Code when installed
  • Changes pushed to GitHub are picked up when users run /plugin update
  • The marketplace.json schema must match Claude Code's requirements
  • Each skill's description should clearly indicate when it applies (Claude uses this for auto-activation)

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.