agentleFS
deevusdeevus/tea-skills/CLAUDE.md

tea-skills

CLAUDE.md8 starsChanged 7 months agoMITView on GitHub

A Claude Code plugin providing skills for Gitea/Forgejo workflows via the tea CLI. Installed with claude mcp add-plugin tea /path/to/tea-skills. There is no build system or package manager — this is markdown plus Python bundled actions. Each skill lives in its own directory with a single skills/<name>/SKILL.md file. Skills are action-specific (e.g., create-issue, merge-pull) rather than domain-broad, keeping each skill focused and readable. Issues domain: list-issues, create-issue, edit-issues, close-issues, issue-comments, issue-dependencies, issue-moderation Pulls domain: list-pulls, create-pull, review-pull, merge-pull, close-pulls Milestones…

  • In this repositoryOne other file it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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:

    Create skills/<name>/SKILL.md with YAML frontmatter (name, description, user-invokable: true) and command reference

    line 57
  2. Very specific:

    Prefer documenting tea CLI commands directly when tea supports the workflow

    line 58
  3. Very specific:

    Create an executable Python file under actions/<domain>/<action> with #!/usr/bin/env python3.

    line 64
  4. Very specific:

    Use actions/internal/tea_api.py for API access.

    line 65
  5. Very specific:

    Add or update the domain actions/<domain>/README.md with purpose, usage, arguments, and tea alternatives.

    line 66

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

What This Is

A Claude Code plugin providing skills for Gitea/Forgejo workflows via the tea CLI. Installed with claude mcp add-plugin tea /path/to/tea-skills. There is no build system or package manager — this is markdown plus Python bundled actions.

Architecture

Focused Single-File Skills

Each skill lives in its own directory with a single skills/<name>/SKILL.md file. Skills are action-specific (e.g., create-issue, merge-pull) rather than domain-broad, keeping each skill focused and readable.

Issues domain: list-issues, create-issue, edit-issues, close-issues, issue-comments, issue-dependencies, issue-moderation Pulls domain: list-pulls, create-pull, review-pull, merge-pull, close-pulls Milestones domain: milestones, milestone-issues Labels domain: labels, label-schemes

Skill Routing

Skills are user-invokable directly from skills/<name>/SKILL.md. There is currently no commands/ directory; keep any future command stubs thin and route behavior back to the corresponding skill.

Actions for API Gaps

actions/ contains bundled Python actions for Gitea/Forgejo features the tea CLI lacks. Skill docs refer to them as actions/<domain>/<action> following the bundled-resource convention: resolve that path relative to this installed plugin, then execute the absolute action path while keeping the working directory in the target repository. Do not require users to cd into the plugin root or put actions/ on PATH.

Actions are action-specific and organized by domain folders. Domain README files document normal tea CLI commands first and bundled actions second. Prefer tea wherever it supports the workflow.

Private HTTP support lives in actions/internal/tea_api.py. It is stdlib-only Python and is not a user-facing Interface.

Plugin Registration

  • .claude-plugin/plugin.json — Plugin metadata (name, version, author)
  • .claude-plugin/marketplace.json — Marketplace listing wrapper

Session Hooks

hooks/session-start.sh runs on every session start/resume/clear/compact. It checks:

  • Whether tea CLI is installed
  • Whether tea logins are configured
  • Whether we're in a git worktree (tea doesn't auto-detect logins there, so it advises appending --login <server>)

hooks/run-hook.cmd is a polyglot wrapper (batch + bash) for cross-platform hook execution.

Key Conventions

  • Skills prefer -o simple for listing output; --output json only when parsing is necessary
  • Issue dependencies use the semantic "A depends on B" (B blocks A), managed through bundled actions under actions/issues/ since tea CLI has no dependency support
  • In skill docs, actions/<domain>/<action> means the bundled plugin action path, not a path in the user's repo
  • Labels are referenced by name in tea issues but by ID in tea labels update/delete
  • Milestones are referenced by name in CLI but by ID in the API-backed milestone edit action
  • Repository-targeting behavior is origin-first: prefer origin unless the user states or requests another backend, login, remote, or repository. API-backed actions may accept explicit scope flags for non-origin targets.

Adding a New Skill

  1. Create skills/<name>/SKILL.md with YAML frontmatter (name, description, user-invokable: true) and command reference
  2. Prefer documenting tea CLI commands directly when tea supports the workflow
  3. Reference actions/<domain>/README.md for bundled action usage when the workflow is an API gap

Adding a New Action

  1. Confirm the workflow cannot be handled cleanly by tea; if tea supports it, document the tea command instead.
  2. Create an executable Python file under actions/<domain>/<action> with #!/usr/bin/env python3.
  3. Use actions/internal/tea_api.py for API access; do not shell out to external HTTP or JSON command-line tools.
  4. Add or update the domain actions/<domain>/README.md with purpose, usage, arguments, and tea alternatives.
  5. Make it executable: chmod +x actions/<domain>/<action>.

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.