Loading...
Loading...
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.
npx skill4agent add mindfold-ai/trellis contribute| What | Repo | Purpose |
|---|---|---|
| Documentation pages | mindfold-ai/docs | Mintlify doc site |
| Skills + Spec templates | mindfold-ai/Trellis | |
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 showcasemarketplace/
├── 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/{
"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
]
}
]
}
}guides/specszh/zh/guides/specsexpanded: falsemarketplace/specs/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)
└── ...marketplace/index.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"]
}templates/specs-your-template.mdxzh/templates/specs-your-template.mdx---
title: 'Your Template Name'
description: 'Brief description'
---Spec Templates{
"group": "Spec Templates",
"expanded": false,
"pages": ["templates/specs-index", "templates/specs-electron", "templates/specs-your-template"]
}"language": "zh"{
"group": "Spec Templates",
"expanded": false,
"pages": [
"zh/templates/specs-index",
"zh/templates/specs-electron",
"zh/templates/specs-your-template"
]
}templates/specs-index.mdxzh/templates/specs-index.mdxmarketplace/skills/marketplace/skills/your-skill/
├── SKILL.md # Skill definition (required)
└── references/ # Reference docs (optional)marketplace/index.json{
"id": "your-skill-id",
"type": "skill",
"name": "Your Skill Name",
"description": "Brief description",
"path": "marketplace/skills/your-skill",
"tags": ["relevant", "tags"]
}skills-market/your-skill.mdxzh/skills-market/your-skill.mdxSkillsskills-market/index.mdxzh/skills-market/index.mdxnpx skills add mindfold-ai/Trellis/marketplace -s your-skillcp showcase/template.mdx showcase/your-project.mdx
cp zh/showcase/template.mdx zh/showcase/your-project.mdxsidebarTitleShowcase项目展示{
"group": "Showcase",
"expanded": false,
"pages": ["showcase/index", "showcase/open-typeless", "showcase/your-project"]
}showcase/index.mdx<Card title="Project Name" icon="icon-name" href="/showcase/your-project">
One-line description
</Card>zh/showcase/index.mdx<Card title="项目名" icon="icon-name" href="/zh/showcase/your-project">
一句话描述
</Card>guides/your-guide.mdxzh/guides/your-guide.mdxdocs.jsonGuidesblog/your-post.mdxzh/blog/your-post.mdxdocs.jsonTech Blog| Content Type | English Path | Chinese Path |
|---|---|---|
| Homepage | | |
| Guides | | |
| Templates | | |
| Skills | | |
| Showcase | | |
| Blog | | |
| Changelog | | |
# Install dependencies
pnpm install
# Start local dev server
pnpm dev
# Check markdown lint
pnpm lint:md
# Verify docs structure
pnpm verify
# Format files
pnpm formatverify-docs.py<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>https://github.com/mindfold-ai/docsgit clone https://github.com/YOUR_USERNAME/docs.gitpnpm installgit checkout -b feat/your-contributionpnpm devdocs: add xxx templatehttps://github.com/mindfold-ai/Trellisgit clone https://github.com/YOUR_USERNAME/Trellis.gitmarketplace/marketplace/index.jsondocs.jsonmarketplace/index.jsonpnpm devimages/