@pennixrv/trellis 0.7.2-beta.21 → 0.7.2-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.7.2-beta.22",
3
+ "description": "Reduce resident project instructions and use approved analysis tools",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "Shorten the native AGENTS block while preserving startup/resume, workflow and Task CLI ownership, spec navigation and no-hook fallback. Remove default GitNexus recommendations and installation recipes from spec bootstrapping; use approved available analysis tools or current source and tests.",
7
+ "migrations": [],
8
+ "notes": "Update CLI, Core and the optional Paseo adapter together. Refresh initialized projects with native trellis update and review modified-file conflicts individually. Preserve manual text, other instruction owners and local configuration. This release does not remove unmanaged third-party instructions, install analysis tools or create indexes; project-specific retirement requires separate explicit authorization."
9
+ }
@@ -29,7 +29,7 @@ The set is discovered at runtime by listing directories under `templates/common/
29
29
  | `trellis-delivery-review-and-closeout` | Reviews the delivery candidate, unresolved items, acceptance conditions, and resource disposition. |
30
30
  | `trellis-meta` | This skill. Explains the local Trellis architecture and customization entry points to an AI working inside a user project. |
31
31
  | `trellis-session-insight` | Wraps the `trellis mem` CLI so an AI knows when and how to reach into past Claude Code / Codex / Pi Agent conversation logs. |
32
- | `trellis-spec-bootstrap` | Platform-neutral workflow for creating or refreshing `.trellis/spec/` from the real codebase (with optional GitNexus / ABCoder integration). |
32
+ | `trellis-spec-bootstrap` | Platform-neutral workflow for creating or refreshing `.trellis/spec/` from current source, tests, and approved available analysis tools. |
33
33
  | `trellis-teamwork` | Capability skill teaching an AI when to reach for `trellis teamwork` for multi-agent collaboration, forum/thread persistent boards, and dispatcher-wait patterns. |
34
34
 
35
35
  This inventory reflects the directories currently in the source tree. The CLI discovers them at runtime, so adding a directory under `bundled-skills/` makes it available to the shared loader (see "Adding a New Bundled Skill" below).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: trellis-spec-bootstrap
3
- description: "Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow. Use when creating or refreshing .trellis/spec guidelines, analyzing a codebase with GitNexus, ABCoder, or source inspection, decomposing package/layer spec work, and writing real codebase-backed spec docs without placeholder text."
3
+ description: "Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow. Use when creating or refreshing .trellis/spec guidelines, analyzing a codebase with approved available tools or source inspection, decomposing package/layer spec work, and writing real codebase-backed spec docs without placeholder text."
4
4
  ---
5
5
 
6
6
  # Trellis Spec Bootstrap
@@ -10,7 +10,7 @@ Use this skill to create or refresh `.trellis/spec/` guidelines from the real co
10
10
  ## Workflow
11
11
 
12
12
  1. Reuse the current task and authorization. Inspect the current `.trellis/spec/` tree, configured package keys and spec source before changing anything. This skill does not authorize initialization, installation or indexing.
13
- 2. Analyze the repository architecture with the best available tools: GitNexus, ABCoder, language tooling, and direct source reads.
13
+ 2. Analyze the repository with its approved, available code tools and usable indexes, language tooling, and direct source reads. Follow the host's current tool instructions; a tool name or existing index does not authorize installation or indexing.
14
14
  3. Decompose the spec work by package and layer only when that reflects the actual codebase.
15
15
  4. Classify pure placeholders, real conventions mixed into templates, and historical examples. Fill or reshape the authorized files with concrete project evidence; preserve real rules and historical task records.
16
16
  5. Verify root/package navigation, active references, applicable checks and placeholder removal. Report file preparation separately from verified conventions and remaining evidence gaps.
@@ -22,7 +22,7 @@ Use this skill to create or refresh `.trellis/spec/` guidelines from the real co
22
22
  | Repository architecture analysis | [references/repository-analysis.md](references/repository-analysis.md) |
23
23
  | Spec work decomposition and task planning | [references/spec-task-planning.md](references/spec-task-planning.md) |
24
24
  | Writing high-signal Trellis spec files | [references/spec-writing.md](references/spec-writing.md) |
25
- | GitNexus and ABCoder MCP setup | [references/mcp-setup.md](references/mcp-setup.md) |
25
+ | Approved analysis tool selection and setup boundaries | [references/mcp-setup.md](references/mcp-setup.md) |
26
26
 
27
27
  ## Operating Rules
28
28
 
@@ -1,92 +1,20 @@
1
- # MCP Setup
1
+ # Analysis Tool Setup Boundaries
2
2
 
3
- GitNexus and ABCoder are recommended when bootstrapping Trellis specs because they expose architecture and AST context to the agent. They are tool choices, not platform requirements. Configure them through whatever MCP mechanism your agent host provides.
3
+ Spec bootstrapping uses the tools already approved and available for the target project. It does not require a particular graph, AST, MCP server, or host.
4
4
 
5
- First discover the project's approved, available tools and existing indexes. Use source and tests directly when no suitable index is available; record that limit. Spec bootstrapping does not authorize installing tools, configuring MCP servers, downloading executables, or creating or refreshing indexes. The setup examples below apply only after those operations have separate authorization and the target repository is explicit. Prefer an already installed, pinned owner entry point over an unpinned download.
5
+ ## Select Existing Capabilities
6
6
 
7
- ## GitNexus
7
+ 1. Confirm the project root, current checkout, host-exposed tools, and any existing indexes.
8
+ 2. For an approved project with a usable CodeGraph index, follow its native MCP instructions or CLI help for source and call-path exploration. Use other approved graph, AST, or language tools when they fit the question.
9
+ 3. Verify the selected tool's project binding and freshness. An ancestor index, another worktree, or a known tool name does not establish permission or coverage for this checkout.
10
+ 4. Use current source and tests directly when suitable analysis tooling is unavailable; state the limitation without blocking source-backed spec work.
8
11
 
9
- GitNexus builds a code knowledge graph from the repository. Use it for module boundaries, execution flows, dependency relationships, blast radius, and graph queries.
12
+ ## Setup Requires Separate Authorization
10
13
 
11
- ### Install and Index
14
+ This skill does not authorize downloading executables, installing packages, changing MCP configuration, or creating or refreshing indexes. When preparation is explicitly authorized, use the component's existing native owner and the host's supported configuration interface. Do not add a second installer or copy tool protocols into project instructions.
12
15
 
13
- ```bash
14
- # Run from the repository root.
15
- npx gitnexus analyze
16
+ ## Verify the Selected Surface
16
17
 
17
- # Check index status.
18
- npx gitnexus status
18
+ After an authorized setup change, confirm the actual host can discover and use the selected interface and that results identify the expected project. File existence or a successful setup command alone does not prove MCP connectivity, current indexing, or host loading.
19
19
 
20
- # Re-index only when explicitly authorized for this repository.
21
- npx gitnexus analyze
22
- ```
23
-
24
- The index is written to `.gitnexus/`. Keep embeddings only if the project already uses them; otherwise a normal index is enough for spec bootstrapping.
25
-
26
- ### MCP Server Command
27
-
28
- Use this server command in the host's MCP configuration:
29
-
30
- ```bash
31
- npx -y gitnexus mcp
32
- ```
33
-
34
- ### Useful Tools
35
-
36
- | Tool | Purpose |
37
- |------|---------|
38
- | `gitnexus_query` | Find execution flows and functional areas by concept |
39
- | `gitnexus_context` | Inspect callers, callees, references, and process participation for a symbol |
40
- | `gitnexus_impact` | Understand blast radius before changing a symbol |
41
- | `gitnexus_detect_changes` | Check changed symbols and affected flows before finishing |
42
- | `gitnexus_cypher` | Run direct graph queries |
43
- | `gitnexus_list_repos` | List indexed repositories |
44
-
45
- ## ABCoder
46
-
47
- ABCoder parses code into UniAST and gives precise package, file, and node-level structure. Use it for signatures, type shapes, implementations, dependencies, and reverse references.
48
-
49
- ### Install
50
-
51
- ```bash
52
- go install github.com/cloudwego/abcoder@latest
53
- abcoder --help
54
- ```
55
-
56
- ### Parse Repositories
57
-
58
- ```bash
59
- abcoder parse /absolute/path/to/package \
60
- --lang typescript \
61
- --name package-name \
62
- --output ~/abcoder-asts
63
- ```
64
-
65
- For monorepos, parse each package with a stable `--name` so task notes can reference the same repository names.
66
-
67
- ### MCP Server Command
68
-
69
- Use this server command in the host's MCP configuration:
70
-
71
- ```bash
72
- abcoder mcp ~/abcoder-asts
73
- ```
74
-
75
- ### Useful Tools
76
-
77
- | Tool | Layer | Purpose |
78
- |------|-------|---------|
79
- | `list_repos` | 1 | List parsed repositories |
80
- | `get_repo_structure` | 2 | Inspect packages and files |
81
- | `get_package_structure` | 3 | Inspect nodes within a package |
82
- | `get_file_structure` | 3 | Inspect functions, classes, types, and signatures in a file |
83
- | `get_ast_node` | 4 | Retrieve code, dependencies, references, and implementations |
84
-
85
- ## Verification
86
-
87
- After an authorized configuration change, verify the selected MCP server from the agent host and run a simple query. Neither server is mandatory; unavailable tooling does not block a source-backed spec pass.
88
-
89
- ```bash
90
- ls .gitnexus/meta.json
91
- ls ~/abcoder-asts/*.json
92
- ```
20
+ Keep setup evidence separate from architectural conclusions. Record missing capabilities and continue with bounded source inspection when the task permits it.
@@ -6,8 +6,8 @@ The goal is to discover the project's real architecture before writing rules. Do
6
6
 
7
7
  1. Read the existing `.trellis/spec/` tree and note which files are templates, outdated, or already project-specific.
8
8
  2. Inspect package manifests, build scripts, workspace config, and top-level documentation to identify packages and runtime layers.
9
- 3. Use GitNexus for execution flows, module clusters, dependency hubs, and impact-sensitive areas.
10
- 4. Use ABCoder or language-native tooling for exact signatures, types, class boundaries, and implementation examples.
9
+ 3. Use the project's approved code intelligence tools and usable indexes for execution flows, dependency hubs, and impact-sensitive areas. Check the returned project, checkout, and freshness before relying on relationships.
10
+ 4. Use available language tooling and current source for exact signatures, types, class boundaries, and implementation examples.
11
11
  5. Read representative source and test files directly before turning any finding into a spec rule.
12
12
 
13
13
  ## What To Capture
@@ -22,31 +22,11 @@ The goal is to discover the project's real architecture before writing rules. Do
22
22
  | Configuration | Where do defaults, environment config, generated files, and templates live? |
23
23
  | Tests | Which test styles are trusted examples for new work? |
24
24
 
25
- ## GitNexus Usage
25
+ ## Tool and Source Evidence
26
26
 
27
- Start broad, then inspect specific symbols:
27
+ Use the host's native discovery, MCP instructions, and CLI help for the selected tool's protocol. For an approved project with a usable CodeGraph index, its native exploration can identify source spans and call paths; other approved tools may serve the same purpose. No particular tool is required by this workflow.
28
28
 
29
- ```text
30
- gitnexus_query({query: "CLI command execution flow"})
31
- gitnexus_query({query: "template generation and migration"})
32
- gitnexus_context({name: "SymbolName"})
33
- gitnexus_cypher({query: "MATCH (n)-[r]->(m) RETURN n.name, type(r), m.name LIMIT 30"})
34
- ```
35
-
36
- Use GitNexus results to find important files and flows. Do not quote graph output as the final authority until you have checked the relevant source files.
37
-
38
- ## ABCoder Usage
39
-
40
- Use ABCoder when the spec needs exact code shapes:
41
-
42
- ```text
43
- list_repos()
44
- get_repo_structure({repo_name: "package-name"})
45
- get_file_structure({repo_name: "package-name", file_path: "src/example.ts"})
46
- get_ast_node({repo_name: "package-name", node_ids: [{mod_path: "...", pkg_path: "...", name: "SymbolName"}]})
47
- ```
48
-
49
- ABCoder is most valuable for documenting constructor patterns, function signatures, type contracts, and reference chains.
29
+ Start with package or symbol names, then inspect the relevant source and tests. Reuse current source spans already returned by a tool; verify omitted or stale material before making a rule. If an index is missing, stale, or bound to another checkout, record the limitation and use bounded source evidence. Do not install tools, create indexes, or query another project as a substitute for missing authorization.
50
30
 
51
31
  ## Analysis Notes
52
32
 
@@ -1,33 +1,16 @@
1
1
  <!-- TRELLIS:START -->
2
2
  # Trellis Instructions
3
3
 
4
- These instructions are for AI assistants working in this project.
5
-
6
- For a new session use `trellis-start`; for existing work use `trellis-continue`
7
- and resume the known unfinished action. Read `.trellis/workflow.md` for the
8
- native route and ownership rules. Task CLI owns task and phase state; specs
9
- describe engineering conventions, not implementation authorization.
4
+ Use `trellis-start` for a new session and `trellis-continue` to resume;
5
+ reuse already loaded context. Follow `.trellis/workflow.md`.
6
+ The Task CLI owns task and phase state.
10
7
 
8
+ Before editing, read the applicable `.trellis/spec/` guidelines.
11
9
  Without hook context, run `python3 ./.trellis/scripts/get_context.py --mode phase`
12
- and `python3 ./.trellis/scripts/task.py phase show <task>`, then explicitly read
13
- the applicable spec indexes and their referenced guidelines.
14
-
15
- This project is managed by Trellis. The working knowledge you need lives under `.trellis/`:
16
-
17
- - `.trellis/workflow.md` — development phases, when to create tasks, skill routing
18
- - `.trellis/spec/` — package- and layer-scoped coding guidelines (read before writing code in a given layer)
19
- - `.trellis/workspace/` — per-developer journals and session traces
20
- - `.trellis/tasks/` — task records and their planning, implementation, and review artifacts
21
-
22
- If a Trellis command is available on your platform (e.g. `/trellis:finish-work`, `/trellis:continue`), prefer it over manual steps. Not every platform exposes every command.
23
-
24
- Project-scoped helpers use these native owners:
25
- - `.agents/skills/` — reusable Trellis methods
26
- - `.trellis/agents/` — Teamwork role cards and Paseo node methods
27
-
28
- The main session owns task decisions and integration. Collaboration uses
29
- `trellis teamwork` or `paseo-based-parallelism` under the authorized contract.
10
+ and, when a task exists, `python3 ./.trellis/scripts/task.py phase show <task>`.
30
11
 
31
- Managed by Trellis. Edits outside this block are preserved; edits inside may be overwritten by a future `trellis update`.
12
+ Use the host's available Trellis skills or commands. If unavailable, read
13
+ `.trellis/workflow.md` for the native CLI route.
32
14
 
15
+ Managed by Trellis. Updates preserve content outside this block.
33
16
  <!-- TRELLIS:END -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pennixrv/trellis",
3
- "version": "0.7.2-beta.21",
3
+ "version": "0.7.2-beta.22",
4
4
  "description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "inquirer": "^9.3.7",
36
36
  "undici": "^6.21.0",
37
37
  "zod": "^4.4.2",
38
- "@pennixrv/trellis-core": "0.7.2-beta.21"
38
+ "@pennixrv/trellis-core": "0.7.2-beta.22"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@eslint/js": "^9.18.0",