Agent skill

Contribute

by mindfold-ai in mindfold-ai/Trellis

Guide for contributing to Trellis documentation and marketplace.

AGPL-3.0Auto-check passedDevelopment

Install Contribute

skills CLI
$ npx skills add mindfold-ai/Trellis --skill contribute -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mindfold-ai/Trellis contribute --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mindfold-ai/Trellis.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/contribute .claude/skills/contribute && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
contribute
GitHub stars
15k
Token cost
~2.7k tokens
SKILL.md length
611 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Guide for contributing to Trellis documentation and marketplace.

  • Works in 12 steps: Create template directory → Register in index.json → Create documentation pages (both… → …
  • Someone wants to add a new spec template
  • SKILL.md covers Docs Repo Structure, Trellis Main Repo Marketplace…, Understanding docs.json and Contributing a Spec Template, plus 7 more sections
  • Calls pnpm, git and npx; reaches github.com

What it does

Contribute is an agent skill from mindfold-ai/Trellis. Guide for contributing to Trellis documentation and marketplace. Covers adding spec templates, marketplace skills, documentation pages, and submitting PRs across both the Trellis main repo and docs repo. Use when someone wants to add a new spec template, add a new skill to the marketplace, add or update documentation pages, or submit a PR to this project.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: The best agent harness. The licence is AGPL-3.0.

When your agent uses it

  • Someone wants to add a new spec template
  • Add a new skill to the marketplace
  • Update documentation pages
  • Submit a PR to this project

Example prompts

  • “/contribute”

Requirements

  • Node.js

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. Create template directory
  2. Register in index.json
  3. Create documentation pages (both languages, in docs repo)
  4. Update navigation in docs.json
  5. Update the overview page
  6. Create skill directory
  7. Register in index.json
  8. Create documentation pages (in docs repo)
  9. Update navigation in docs.json
  10. Update the overview page
  11. Copy the template
  12. Fill in project details

What it can do on your machine

Read from SKILL.md and the folder at commit f089cb3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm
    • git
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    Also links to:

    • code.codex.com
    • mintlify.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Contribute loads about 2.7k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 611 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mindfold-ai/Trellis at commit f089cb3, republished under its AGPL-3.0 licence (© mindfold-ai). 611 words, ~2,700 tokens.

Download SKILL.mdSave it as .claude/skills/contribute/SKILL.md (or your agent's skills folder).
name
contribute
description
Guide for contributing to Trellis documentation and marketplace. Covers adding spec templates, marketplace skills, documentation pages, and submitting PRs across both the Trellis main repo and docs repo. Use when someone wants to add a new spec template, add a new skill to the marketplace, add or update documentation pages, or submit a PR to this project.

Contributing to Trellis

Contributions are split across two repos:

WhatRepoPurpose
Documentation pagesmindfold-ai/docsMintlify doc site
Skills + Spec templatesmindfold-ai/Trellismarketplace/ directory

Docs Repo Structure

docs/
├── docs.json              # Navigation config (MUST update for new pages)
│
├── index.mdx              # English homepage
├── quickstart.mdx         # English quickstart
├── zh/index.mdx           # Chinese homepage
├── zh/quickstart.mdx      # Chinese quickstart
│
├── guides/                # English guide pages
├── zh/guides/             # Chinese guide pages
│
├── templates/             # English template pages
├── zh/templates/          # Chinese template pages
│
├── skills-market/         # English skill marketplace pages
├── zh/skills-market/      # Chinese skill marketplace pages
│
├── blog/                  # English tech blog
├── zh/blog/               # Chinese tech blog
│
├── changelog/             # English changelog
├── zh/changelog/          # Chinese changelog
│
├── contribute/            # English contribution guide
├── zh/contribute/         # Chinese contribution guide
│
├── showcase/              # English showcase
└── zh/showcase/           # Chinese showcase

Trellis Main Repo Marketplace Structure

marketplace/
├── index.json             # Template registry (lists all available templates)
├── README.md              # Marketplace overview
├── specs/                 # Spec templates
│   └── electron-fullstack/
│       ├── README.md
│       ├── frontend/
│       ├── backend/
│       ├── guides/
│       └── shared/
└── skills/                # Skills
    └── trellis-meta/
        ├── SKILL.md
        └── references/

Understanding docs.json

The navigation uses a language-based structure:

json
{
  "navigation": {
    "languages": [
      {
        "language": "en",
        "groups": [
          {
            "group": "Getting started",
            "pages": ["index", "quickstart"]
          },
          {
            "group": "Guides",
            "pages": ["guides/specs", "guides/tasks", ...]
          },
          {
            "group": "Resource Marketplace",
            "pages": [
              {
                "group": "Skills",
                "expanded": false,
                "pages": ["skills-market/index", "skills-market/trellis-meta"]
              },
              {
                "group": "Spec Templates",
                "expanded": false,
                "pages": ["templates/specs-index", "templates/specs-electron"]
              }
            ]
          }
        ]
      },
      {
        "language": "zh",
        "groups": [
          // Same structure with zh/ prefix
        ]
      }
    ]
  }
}

Key points:

  • English pages: no prefix (e.g., guides/specs)
  • Chinese pages: zh/ prefix (e.g., zh/guides/specs)
  • Nested groups supported (e.g., Skills inside Resource Marketplace)
  • expanded: false keeps groups collapsed by default

Contributing a Spec Template

Spec templates live in the Trellis main repo at marketplace/specs/.

1. Create template directory
marketplace/specs/your-template-name/
├── README.md              # Template overview (required)
├── frontend/              # Frontend guidelines
│   ├── index.md
│   └── ...
├── backend/               # Backend guidelines
│   ├── index.md
│   └── ...
├── guides/                # Thinking guides
│   └── ...
└── shared/                # Cross-cutting concerns (optional)
    └── ...

Structure varies by stack. Include directories relevant to your template.

2. Register in index.json

Add your template to marketplace/index.json in the Trellis repo:

json
{
  "id": "your-template-id",
  "type": "spec",
  "name": "Your Template Name",
  "description": "Brief description of the template",
  "path": "marketplace/specs/your-template-name",
  "tags": ["relevant", "tags"]
}
3. Create documentation pages (both languages, in docs repo)

English: templates/specs-your-template.mdx Chinese: zh/templates/specs-your-template.mdx

Use this frontmatter:

yaml
---
title: 'Your Template Name'
description: 'Brief description'
---
4. Update navigation in docs.json

Find the Spec Templates nested group and add your page:

json
{
  "group": "Spec Templates",
  "expanded": false,
  "pages": ["templates/specs-index", "templates/specs-electron", "templates/specs-your-template"]
}

Do the same for Chinese under "language": "zh":

json
{
  "group": "Spec Templates",
  "expanded": false,
  "pages": [
    "zh/templates/specs-index",
    "zh/templates/specs-electron",
    "zh/templates/specs-your-template"
  ]
}
5. Update the overview page

Add your template to the table in:

  • templates/specs-index.mdx
  • zh/templates/specs-index.mdx

Contributing a Skill

Skills live in the Trellis main repo at marketplace/skills/.

1. Create skill directory
marketplace/skills/your-skill/
├── SKILL.md               # Skill definition (required)
└── references/            # Reference docs (optional)

See Codex Skills documentation for SKILL.md format.

2. Register in index.json

Add your skill to marketplace/index.json in the Trellis repo:

json
{
  "id": "your-skill-id",
  "type": "skill",
  "name": "Your Skill Name",
  "description": "Brief description",
  "path": "marketplace/skills/your-skill",
  "tags": ["relevant", "tags"]
}
3. Create documentation pages (in docs repo)

English: skills-market/your-skill.mdx Chinese: zh/skills-market/your-skill.mdx

4. Update navigation in docs.json

Find the Skills nested group and add your page to both languages.

5. Update the overview page

Add your skill to the table in:

  • skills-market/index.mdx
  • zh/skills-market/index.mdx
Installation

Users install skills via:

bash
npx skills add mindfold-ai/Trellis/marketplace -s your-skill

Contributing a Showcase Project

1. Copy the template
bash
cp showcase/template.mdx showcase/your-project.mdx
cp zh/showcase/template.mdx zh/showcase/your-project.mdx
2. Fill in project details
  • Update sidebarTitle with your project name
  • Add project description
  • Replace GitHub OG image URL with your repo
  • Describe how you used Trellis
3. Update navigation in docs.json

Find the Showcase / 项目展示 group and add your page:

json
{
  "group": "Showcase",
  "expanded": false,
  "pages": ["showcase/index", "showcase/open-typeless", "showcase/your-project"]
}

Do the same for Chinese.

4. Add Card to overview page

Add a Card component to display your project:

English (showcase/index.mdx):

mdx
<Card title="Project Name" icon="icon-name" href="/showcase/your-project">
  One-line description
</Card>

Chinese (zh/showcase/index.mdx):

mdx
<Card title="项目名" icon="icon-name" href="/zh/showcase/your-project">
  一句话描述
</Card>

Contributing Documentation

Adding a new guide
  1. Create the page in guides/your-guide.mdx
  2. Create Chinese version in zh/guides/your-guide.mdx
  3. Update docs.json - add to Guides group in both languages
Adding a blog post
  1. Create the page in blog/your-post.mdx
  2. Create Chinese version in zh/blog/your-post.mdx
  3. Update docs.json - add to Tech Blog group in both languages
Show full SKILL.md (238 more words)Show less
Updating existing pages
  1. Find the file in the appropriate directory
  2. Make your changes
  3. Ensure both language versions stay in sync

Bilingual Requirements

All user-facing content must have both English and Chinese versions.

Content TypeEnglish PathChinese Path
Homepageindex.mdxzh/index.mdx
Guidesguides/*.mdxzh/guides/*.mdx
Templatestemplates/*.mdxzh/templates/*.mdx
Skillsskills-market/*.mdxzh/skills-market/*.mdx
Showcaseshowcase/*.mdxzh/showcase/*.mdx
Blogblog/*.mdxzh/blog/*.mdx
Changelogchangelog/*.mdxzh/changelog/*.mdx

Development Setup

bash
# Install dependencies
pnpm install

# Start local dev server
pnpm dev

# Check markdown lint
pnpm lint:md

# Verify docs structure
pnpm verify

# Format files
pnpm format

Pre-commit hooks: The project uses husky with lint-staged. On commit:

  • Markdown files are auto-linted and formatted
  • verify-docs.py checks docs.json and frontmatter

MDX Components

Mintlify supports MDX components. Common ones:

mdx
<Card title="Title" icon="download" href="/path">
  Card content here
</Card>

<CardGroup cols={2}>
  <Card>...</Card>
  <Card>...</Card>
</CardGroup>

<Accordion title="Click to expand">Hidden content</Accordion>

<AccordionGroup>
  <Accordion>...</Accordion>
</AccordionGroup>

Inline HTML is allowed (MDX). See Mintlify docs for all components.

Submitting a PR

For documentation changes (docs repo):

  1. Fork: https://github.com/mindfold-ai/docs
  2. Clone: git clone https://github.com/YOUR_USERNAME/docs.git
  3. Install: pnpm install
  4. Branch: git checkout -b feat/your-contribution
  5. Make changes following this guide
  6. Test: pnpm dev
  7. Commit with conventional message (e.g., docs: add xxx template)
  8. Push and create PR

For skills/spec templates (Trellis repo):

  1. Fork: https://github.com/mindfold-ai/Trellis
  2. Clone: git clone https://github.com/YOUR_USERNAME/Trellis.git
  3. Add your skill/template under marketplace/
  4. Update marketplace/index.json
  5. Push and create PR

Checklist Before PR

  • Both EN and ZH versions created (for doc pages)
  • docs.json updated for both languages (for doc pages)
  • marketplace/index.json updated (for skills/templates)
  • Overview/index pages updated with new entries
  • Local preview tested (pnpm dev)
  • No broken links
  • Code blocks have correct language tags
  • Frontmatter includes title and description
  • Images placed in images/ directory (if any)

© mindfold-ai, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/contribute of mindfold-ai/Trellis.

Open the folder on GitHubat commit f089cb3

Compare with similar skills

Contribute next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Contribute compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Contribute this skillmindfold-ai/Trellis15k—~2.7kAutomated safety check: PassAGPL-3.0
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from mindfold-ai/Trellis

All 8 skills in this repo
  • Trellis Session Insight

    mindfold-ai/Trellis

    Reach into past AI conversation history through the trellis mem CLI.

    15k GitHub starsUsed in 4 repos~1.7k tokens
    Auto-check passed
  • First Principles Thinking

    mindfold-ai/Trellis

    Systematic first principles thinking for any problem domain.

    15k GitHub stars~4.1k tokensUpdated 10 days ago
    Auto-check passed
  • Trellis Channel

    mindfold-ai/Trellis

    Use Trellis channel for live multi-agent collaboration, spawned workers, cross-agent review, progress inspection, forum channels, and channel log debugging.

    15k GitHub starsUsed in 4 repos~1.2k tokens
    Auto-check passed
  • Trellis Meta

    mindfold-ai/Trellis

    Understand and customize the local Trellis architecture inside a user project.

    15k GitHub starsUsed in 4 repos~3.2k tokens
    Auto-check passed
  • Create Manifest

    mindfold-ai/Trellis

    Create a Trellis migration manifest and matching docs-site changelogs for a target release by analyzing commits since the previous release.

    15k GitHub stars~2.5k tokensUpdated 10 days ago
    Auto-check passed
  • Python Design

    mindfold-ai/Trellis

    Python design patterns for CLI scripts and utilities — type-first development, deep modules, complexity management, and red flags.

    15k GitHub stars~4k tokensUpdated 10 days ago
    Auto-check passed

Categories

Questions about Contribute

What does Contribute do?

Guide for contributing to Trellis documentation and marketplace. Contribute is an agent skill from mindfold-ai/Trellis. Guide for contributing to Trellis documentation and marketplace.

When should I use Contribute?

Contribute fits situations like: someone wants to add a new spec template; add a new skill to the marketplace; update documentation pages; submit a PR to this project.

How do I install Contribute in Claude Code?

Run `npx skills add mindfold-ai/Trellis --skill contribute -a claude-code`. Or copy the skill folder (.agents/skills/contribute in mindfold-ai/Trellis) into .claude/skills/contribute in your project. Claude Code loads it when a task matches its description.

How do I install Contribute in Codex?

Run `npx skills add mindfold-ai/Trellis --skill contribute -a codex`. Or copy the skill folder (.agents/skills/contribute in mindfold-ai/Trellis) into .agents/skills/contribute in your project. Codex loads it when a task matches its description.

Can I use Contribute in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mindfold-ai/Trellis --skill contribute -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/contribute, .gemini/skills/contribute, .github/skills/contribute and .opencode/skills/contribute in your project.

What does Contribute need to run?

Going by SKILL.md and its folder, Contribute needs the command-line tools its instructions call (pnpm, git and npx). Our summary lists: Node.js.

Does Contribute access the network?

SKILL.md names 3 domains. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. As links in the text: code.codex.com and mintlify.com. This is read from the text; nothing was executed.

Is Contribute safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Contribute use?

Contribute is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Contribute use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Contribute?

Skills that share tags, products or a category with Contribute: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Contribute?

mindfold-ai (a GitHub organization) maintains it in mindfold-ai/Trellis, which has 14,901 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 29, 2026.

Source: mindfold-ai/Trellis on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.