Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

contributecontribute 命令行

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

533

周安装

22

GitHub Stars

1

下载量

174
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:contribute(contribute 命令行)
来源仓库:https://github.com/mindfold-ai/docs
仓库路径:skills/contribute
安装命令:
npx skills add https://github.com/mindfold-ai/docs --skill contribute
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mindfold-ai/docs --skill contribute

简介

用于辅助文档、README、Markdown 和内容稿件的整理与改写。

  • 可提炼结构、补齐章节、统一术语或检查链接,适合内容创作场景。
  • 使用时应保留项目已有事实和路径,避免将未确认信息写成确定结论。
  • 涉及对外文案时需控制语气,防止过度营销或夸大能力。
  • 通过 GitHub 安装,支持 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

SKILL.md

Contributing to Trellis Docs

This skill guides you through contributing to the Trellis documentation project.

Project 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
│
├── plugins/               # Claude Code plugins (one plugin per skill)
│   └── trellis-meta/
│       ├── plugin.json
│       └── skills/trellis-meta/
│           └── SKILL.md
│
└── marketplace/           # Other downloadable assets
    └── specs/             # Spec template directories

Note: Plugin skills follow Claude Code plugin structure. Content in marketplace/ is excluded from Mintlify rendering.

Understanding docs.json

The navigation uses a language-based structure:

{
  "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

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. Create documentation pages (both languages)

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

Use this frontmatter:

---
title: 'Your Template Name'
description: 'Brief description'
---

3. Update navigation in docs.json

Find the Spec Templates nested group and add your page:

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

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

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

4. Update the overview page

Add your template to the table in:

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

Contributing a Skill

1. Create plugin directory

plugins/your-plugin/
├── plugin.json            # Plugin manifest
└── skills/
    └── your-skill/
        ├── SKILL.md       # Skill definition (required)
        └── references/    # Reference docs (optional)

2. Create plugin.json

{
  "name": "your-plugin",
  "version": "1.0.0",
  "description": "Your plugin description",
  "author": { "name": "Your Name" },
  "skills": ["./skills/"]
}

3. Register in marketplace.json

Add your plugin to .claude-plugin/marketplace.json:

{
  "plugins": [
    {
      "name": "your-plugin",
      "source": "./plugins/your-plugin",
      "description": "Your plugin description"
    }
  ]
}

4. Create documentation pages

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

5. Update navigation in docs.json

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

6. Update the overview page

Add your skill to the table in:

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

Contributing a Showcase Project

1. Copy the template

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:

{
  "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):

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

Chinese (zh/showcase/index.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

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

# 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:

<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

  1. Fork the repo on GitHub: https://github.com/mindfold-ai/docs
  2. Clone your fork: git clone https://github.com/YOUR_USERNAME/docs.git
  3. Install dependencies: pnpm install
  4. Create a branch: git checkout -b feat/your-contribution
  5. Make changes following this guide
  6. Test locally: pnpm dev
  7. Commit with conventional message (e.g., docs: add xxx template)
  8. Push to your fork and create PR to original repo's main branch

Checklist Before PR

  • Both EN and ZH versions created
  • docs.json updated for both languages
  • 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)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.74%
按下载量换算59

Claude

31.97%
按下载量换算56

Cursor

18.04%
按下载量换算31

Gemini CLI

9.45%
按下载量换算16

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills