跳到正文
Skillpedia
智能体15k · #11024

trellis-before-dev

它能做什么

该技能在工作开始前加载项目中保存的编码规则和任务要求。适合把指南保存在 Trellis 项目文件夹中的团队。

适用场景

  • ✓当你开始一项新的编码任务,希望智能体遵循你的项目规则的时候。
  • ✓当你把智能体切换到代码库的另一部分的时候。
  • ✓当你希望智能体在编写代码之前刷新项目惯例的时候。

技能链接

https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-before-dev/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-before-dev/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“在你写任何东西之前,请先阅读我们的项目指南和这项任务的需求。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会阅读任务需求,找到它将要修改的包的指南文件,并阅读共享指南。对于较大的任务,它会在编写代码之前先说明改动的边界。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Read the relevant development guidelines before starting your task.

Execute these steps:

  1. Read current task artifacts:

    • prd.md for requirements and acceptance criteria
    • design.md if present for technical design
    • implement.md if present for execution order and validation plan
  2. Discover packages and their spec layers:

    python3 ./.trellis/scripts/get_context.py --mode packages
    
  3. Identify which specs apply to your task based on:

    • Which package you're modifying (e.g., cli/, docs-site/)
    • What type of work (backend, frontend, unit-test, docs, etc.)
    • Any spec/research paths referenced by the task artifacts
  4. Read the spec index for each relevant module:

    cat .trellis/spec/<package>/<layer>/index.md
    

    Follow the "Pre-Development Checklist" section in the index.

  5. Read the specific guideline files listed in the Pre-Development Checklist that are relevant to your task. The index is NOT the goal — it points you to the actual guideline files (e.g., error-handling.md, conventions.md, mock-strategies.md). Read those files to understand the coding standards and patterns.

  6. Always read shared guides:

    cat .trellis/spec/guides/index.md
    
  7. For a non-trivial task, state the change boundary before writing code. Non-trivial means it touches more than one file, crosses a layer, changes a public interface, or edits code you did not just write. Write down:

    • the smallest behavior gap between what happens now and what should happen
    • where that behavior actually lives (not where it is easiest to intercept)
    • which files you expect to change, and why each one is necessary
    • what you are explicitly not doing in this task
    • if a local refactor is needed, how you will show it did not change behavior

    A small, well-scoped change does not need this — do it directly.

    If the real scope turns out to be clearly larger than this, say so and why before continuing. Do not widen the change on your own.

  8. Understand the coding standards and patterns you need to follow, then proceed with your development plan.

This step is mandatory before writing any code.

常见问题

它会读取哪些文件?

任务需求、相关包的规格索引,以及 Trellis 规格文件夹中的共享指南。

它会编写代码吗?

不会。它通过加载指南来为智能体做准备,编码工作在之后进行。

切换包时可以使用它吗?

可以。当你转到另一个包时,它就是为了再次运行而设计的。

详情

作者的原始描述

Discovers and injects project-specific coding guidelines from .trellis/spec/ before implementation begins. Reads spec indexes, pre-development checklists, and shared thinking guides for the target package. Use when starting a new coding task, before writing any code, switching to a different package, or needing to refresh project conventions and standards.

repo: mindfold-ai/Trellis

热度

GitHub 星标
15k
排名
#11024
许可证
AGPL-3.0
更新时间
2026/9/29

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能