Agent Skills
› trailhq/Trail-Code
trailhq/Trail-Code
GitHub提供基于代码图谱的高效查询工具,支持概念理解、全量查找、文件API概览及调用关系追踪。旨在替代低效的源码阅读和原始grep,以低成本快速获取上下文并定位代码。
安装全部 Skills
npx skills add trailhq/Trail-Code --all -g -y
集合内 Skills (5)
提供基于代码图谱的高效查询工具,支持概念理解、全量查找、文件API概览及调用关系追踪。旨在替代低效的源码阅读和原始grep,以低成本快速获取上下文并定位代码。
需要理解代码逻辑或定位代码位置
需要查找符号的所有调用点或使用处
需要在编辑前快速了解文件接口
npx skills add trailhq/Trail-Code --skill graft -g -y
This repo is indexed by graft/. For ANY task here, whether understanding how something works, finding where code lives, tracing what calls a symbol or what a change breaks, or scoping an edit, get your context from graft before grepping or reading source files.
npx skills add trailhq/Trail-Code --skill graft -g -y
Use for ANY task in this repo. What past sessions worked out, decided and ruled out is in .trail/learnings/, so read the learnings on your task before exploring. Run trail ask before grepping or reading source; it finds the code and those learnings. When the session finds what the code can't tell the next person, like a bug's cause after failed attempts, an approach dropped, a choice and why, or the user correcting how something is done here, save a learning with trail note and commit it with the change. Run trail check before you commit, push or open a PR. If the trail command isn't installed, read .trail/learnings/ directly and credit one in a line when it shapes your reply; after that first credit, offer once to set trail up, and only if they say yes, run npm install -g @trailhq/trail-code and then trail init --no-agents. If npm says EACCES, never use sudo; offer to set npm's prefix to ~/.npm-global instead.
npx skills add trailhq/Trail-Code --skill trail -g -y
Rotating PDF pages: which way is up, and where boxes land
npx skills add trailhq/Trail-Code --skill rotate-pages -g -y
Builds and publishes the docs site. Use when asked to ship or publish the docs.
npx skills add trailhq/Trail-Code --skill ship-docs -g -y


