Trellis meta
Skill lifan-builds/context-harness/.agents/skills/trellis-meta
Lightweight durable context for AI coding agents: 4 files, 9 rules, companion skills, and scripts that let agents self-iterate inside your workflow.
npx -y skills add lifan-builds/context-harness --skill trellis-metaAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Understand and customize the local Trellis architecture inside a user project. Use when modifying .trellis plus platform hooks, settings, agents, skills, commands, prompts, workflows, the channel runtime (trellis channel), bundled runtime agents under .trellis/agents/, selectable workflow templates, registry-backed spec refresh, cross-session memory (trellis mem) generated by trellis init, or AI-facing bundled skills (trellis-channel, trellis-session-insight, trellis-spec-bootstrap) and bundled-skill auto-dispatch flow.
SKILL.md
12.3 KB, ~2.8k tokens by cl100k_base, as published. Nobody here has run it
Trellis Meta
This skill is for local Trellis users who have already run trellis init in a project. After reading it, an AI should understand the Trellis architecture, operating model, and customization entry points inside that user project, then modify the generated .trellis/ and platform directory files according to the user's request.
Trellis v0.6 adds three architectural surfaces on top of the pre-v0.6 workflow / persistence / platform model. First, a multi-agent collaboration runtime: trellis channel coordinates multiple AI worker processes through project-scoped JSONL event logs at ~/.trellis/channels/<project>/<channel>/events.jsonl, with worker OOM guard, forum/thread channels, durable idempotency keys, and bundled .trellis/agents/{check,implement}.md runtime definitions. Second, cross-session memory: trellis mem list | search | context | extract | projects reads raw Claude Code, Codex, and Pi Agent JSONL already on disk, slices by --phase brainstorm|implement|all, and never uploads anything. Third, a dual-package npm release: @mindfoldhq/trellis (CLI) and @mindfoldhq/trellis-core (SDK with /channel, /task, /mem, /testing subpaths) ship in lockstep on one version. Treat these as first-class customization surfaces alongside the per-platform integration files.
The default operating scope is local files in the user project:
.trellis/: workflow, config, tasks, spec, workspace, scripts, bundled runtime agents, and runtime state.- Platform directories:
.claude/,.codex/,.cursor/,.opencode/,.kiro/,.gemini/,.qoder/,.codebuddy/,.github/,.factory/,.pi/,.reasonix/,.kilocode/,.agent/,.devin/, and similar directories. Pi additionally exposes a nativetrellis_subagenttool withsingle/parallel/chaindispatch modes, throttled progress cards, andisTrellisAgent()validation on top of the file layout. Reasonix stores both workflow skills and subagent skills as.reasonix/skills/<name>/SKILL.md; subagent skills carryrunAs: subagentfrontmatter. - Shared skill layer:
.agents/skills/. - User-owned channel store outside the project tree:
~/.trellis/channels/<project>/<channel>/events.jsonl. - Raw platform conversation logs queryable via
trellis mem:~/.claude/projects/,~/.codex/sessions/, and~/.pi/agent/sessions/(OpenCode adapter degraded for the v0.6 line).
Do not assume the user has the Trellis source repository. Do not default to modifying the global npm install directory or node_modules — both @mindfoldhq/trellis and @mindfoldhq/trellis-core ship as published packages sharing one version and one git tag per release.
How To Use
- Read
references/local-architecture/overview.mdfirst to establish the local Trellis system model. - If the request involves a specific AI tool, read
references/platform-files/platform-map.mdand the relevant platform file notes. - If the request involves multi-agent dispatch or channel workers, read
references/local-architecture/multi-agent-channel.mdand the bundled.trellis/agents/files. - If the user wants to change behavior, read
references/customize-local/overview.md, then open the specific customization topic. - Before editing, read the actual files in the user project and treat local content as authoritative.
References
Local Architecture
references/local-architecture/overview.md: The layered local Trellis architecture (workflow / persistence / platform / channel runtime) and customization principles.references/local-architecture/generated-files.md: Files generated bytrellis initand their customization boundaries, including.trellis/agents/.references/local-architecture/workflow.md: Phases, routing, workflow-state blocks, and selectable workflow templates (native,tdd,channel-driven-subagent-dispatch, marketplace) in.trellis/workflow.md.references/local-architecture/task-system.md: Task directories, active task, JSONL context, parent/child task trees, and task runtime.references/local-architecture/spec-system.md: How.trellis/spec/is organized, injected, and refreshed from aregistry.specsource.references/local-architecture/workspace-memory.md:.trellis/workspace/journals plustrellis memcross-session recall and the@mindfoldhq/trellis-core/memSDK.references/local-architecture/context-injection.md: Hooks, sub-agent preludes, and channel-runtime worker inbox routing.references/local-architecture/multi-agent-channel.md:trellis channelsubcommands, project-scoped event store, forum/thread channels, worker OOM guard, durable idempotency, and bundled.trellis/agents/runtime agents.references/local-architecture/bundled-skills.md: Auto-dispatched bundled skills (trellis-meta,trellis-spec-bootstrap,trellis-session-insight) and howgetBundledSkillTemplates()ships them to every platform skill root.
Platform Files
references/platform-files/overview.md: How shared.trellis/files relate to platform directories and the four platform integration modes (hook-driven, agent prelude, main-session workflow, channel runtime).references/platform-files/platform-map.md: Platform directories and paths for skills, agents, hooks, and extensions across all 15 supported platforms including Reasonix and Pi's nativetrellis_subagentextension.references/platform-files/hooks-and-settings.md: How settings/config files, hooks, plugins, and extensions connect to Trellis; coverschannel.worker_guard.*andcodex.dispatch_mode.references/platform-files/agents.md: Per-platformtrellis-research/trellis-implement/trellis-checksub-agent files plus bundled.trellis/agents/{check,implement}.mdfor the channel runtime.references/platform-files/skills-and-commands.md: Differences between skills, commands, prompts, and workflows, plus how to change them.
Local Customization
references/customize-local/overview.md: Choose the right local customization entry point for the user's request.references/customize-local/change-workflow.md: Change phases, routing, next actions, workflow-state, and the selected workflow template.references/customize-local/change-task-lifecycle.md: Change task creation, status, archive behavior, parent/child links, archive slug collision handling, and lifecycle hooks.references/customize-local/change-context-loading.md: Change how tasks, specs, journals, hook context, channel inbox messages, andtrellis memrecall are loaded.references/customize-local/change-hooks.md: Change platform hooks, settings, task lifecycle hooks (hooks.after_*), and shell session bridges.references/customize-local/change-agents.md: Change research, implement, and check agent behavior across platform sub-agents, bundled channel runtime agents, and the Codexdispatch_modetoggle.references/customize-local/change-skills-or-commands.md: Add or modify local skills, commands, prompts, and workflows; covers upstream bundled-skill auto-dispatch.references/customize-local/change-spec-structure.md: Adjust the project spec structure under.trellis/spec/, including registry-backed sources.references/customize-local/add-project-local-conventions.md: Put team rules into project-local specs or local skills.
Current Rules
.trellis/workflow.mdis the local workflow source of truth; its initial content was selected from a workflow template (built-innative,tdd,channel-driven-subagent-dispatch, or a marketplace template) attrellis inittime and can be re-selected viatrellis workflow --template <id>. Missing.trellis/agents/<name>.mdfiles referenced by the active template trigger a non-blocking stderr warning pointing attrellis update..trellis/config.yamlis the project-level Trellis configuration entry point. It hosts task lifecycle hooks (hooks.after_create/after_start/after_finish/after_archive), journal shape (session_commit_message/max_journal_lines/session_auto_commit), channel worker guard (channel.worker_guard.idle_timeout/max_live_workers), Codex dispatch mode (codex.dispatch_mode: inline | sub-agent), and the spec registry block (registry.spec.source+registry.spec.template)..trellis/spec/stores the user's project-specific coding conventions and design constraints. Whenregistry.specis set, files are refreshed bytrellis update; local edits surface as "modified by user" conflicts in.trellis/.template-hashes.json..trellis/tasks/stores task PRDs, design notes, implement plans, research files, and JSONL context. Tasks form parent/child trees:task.py create --parent <slug>,task.py add-subtask <parent> <child>,task.py remove-subtask <parent> <child>, andtask.py list-context <task>.task.py createrejects a slug already present in.trellis/tasks/archive/**..trellis/workspace/stores deliberately written developer journals. Raw cross-session dialogue is not stored here — it lives on disk under~/.claude/projects/,~/.codex/sessions/, and~/.pi/agent/sessions/and is recovered viatrellis mem search|extract|context. The bundledtrellis-session-insightskill teaches when to reach formem..trellis/agents/{check,implement}.mdare bundled, platform-agnostic channel runtime agent definitions loaded bytrellis channel spawn --agent <name>. Editable;trellis updatebackfills missing ones. Editing the per-platformtrellis-implement.md/trellis-check.mddoes not change channel-runtime worker behavior.~/.trellis/channels/<project>/<channel>/events.jsonlis the channel runtime event log per project per channel. User-owned, file-locked sequence numbering, durableidempotencyKeysupport; never under.trellis/.- Bundled multi-file skills (
trellis-meta,trellis-spec-bootstrap,trellis-session-insight,trellis-channel) are auto-dispatched to every platform skill root bygetBundledSkillTemplates()inpackages/cli/src/templates/common/index.ts. Dropping a new directory underpackages/cli/src/templates/common/bundled-skills/(upstream) ships it to every platform on the nexttrellis update. - Platform settings/config files decide which hooks, agents, skills, commands, prompts, and workflows actually run. Reasonix has no settings file — behavior is encoded inside skill frontmatter.
.trellis/.template-hashes.jsonand.trellis/.runtime/are management/runtime state files. Confirm necessity before editing them.
Do Not
- Do not treat Trellis upstream source code as the default target for local customization.
- Do not modify the global npm install directory or
node_modules/@mindfoldhq/trellisornode_modules/@mindfoldhq/trellis-coreto implement project needs; both packages ship in lockstep. - Do not overwrite user-modified local files with default templates; check
.trellis/.template-hashes.jsonfirst and prefer.newsidecar files over destructive overwrites. - Do not put team-private project rules into any public bundled skill (
trellis-meta,trellis-spec-bootstrap,trellis-session-insight,trellis-channel); put project rules in.trellis/spec/, a project-local skill, the current task, or the workspace journal —trellis updatewill overwrite anything inside a bundled skill directory. - Do not hand-edit
~/.trellis/channels/<project>/<channel>/events.jsonl; sequence numbers are assigned under a file lock and replay-safe writes go through thetrellis channelCLI or the@mindfoldhq/trellis-core/channelSDK. - Do not edit
.claude/agents/trellis-implement.md(or any other per-platform sub-agent file) when the goal is to change channel runtime worker behavior — edit.trellis/agents/<name>.mdinstead. - Do not describe removed or never-shipped mechanisms as current Trellis behavior; cross-check against the local
.trellis/config.yamland the installed CLI'strellis --helpbefore claiming a knob exists.
What ships with it: 23 files
97.1 KB alongside SKILL.md
references/
- customize-local/add-project-local-conventions.md2.4 KB
- customize-local/change-agents.md2.6 KB
- customize-local/change-context-loading.md3.2 KB
- customize-local/change-hooks.md2.3 KB
- customize-local/change-skills-or-commands.md6.8 KB
- customize-local/change-spec-structure.md2.3 KB
- customize-local/change-task-lifecycle.md4.5 KB
- customize-local/change-workflow.md4.2 KB
- customize-local/overview.md2.8 KB
- local-architecture/bundled-skills.md11.4 KB
- local-architecture/context-injection.md4.0 KB
- local-architecture/generated-files.md3.8 KB
- local-architecture/multi-agent-channel.md6.6 KB
- local-architecture/overview.md3.7 KB
- local-architecture/spec-system.md3.4 KB
- local-architecture/task-system.md6.0 KB
- local-architecture/workflow.md3.7 KB
- local-architecture/workspace-memory.md2.7 KB
- platform-files/agents.md3.8 KB
- platform-files/hooks-and-settings.md4.0 KB
- platform-files/overview.md3.4 KB
- platform-files/platform-map.md5.7 KB
- platform-files/skills-and-commands.md3.8 KB
Gives 0 of the 12 instructions most project setup skills give in ~2.8k tokens
Counted across 999 of the 1,637 authors here whose files we hold, read 2026-08-07
- Ask one question at a timein 29 of 999, across 28 files
- Detect the package manager from lockfilesin 28 of 999, across 9 files
- Present findings to the userin 26 of 999, across 5 files
- Explore current repo statein 24 of 999, across 3 files
- Update the agent skills block in place if it existsin 24 of 999, across 3 files
- Install husky lint-staged and prettierin 23 of 999, across 4 files
- Create the lintstagedrc filein 22 of 999, across 3 files
- Commit all changed filesin 22 of 999, across 3 files
- Run lint-staged to verify it worksin 22 of 999, across 3 files
- Create the husky pre-commit filein 21 of 999, across 2 files
- Create a prettierrc file if missingin 21 of 999, across 2 files
- Initialize huskyin 21 of 999, across 2 files
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.