@forwardimpact/pathway 0.6.0 → 0.8.0

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.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Dick Olsson
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # @forwardimpact/pathway
2
+
3
+ Career progression web app and CLI for exploring roles and generating agents.
4
+
5
+ ## Role in the Vision
6
+
7
+ Pathway is the primary interface for interacting with engineering competency
8
+ data. It provides tools for browsing career paths, generating job descriptions,
9
+ creating AI agent profiles, and preparing interviews—all from a unified web
10
+ experience and command line.
11
+
12
+ ## What It Does
13
+
14
+ - **Web application** — Interactive browser for jobs, skills, and career paths
15
+ - **CLI tools** — Command-line access to all functionality
16
+ - **Agent generation** — Create VS Code Custom Agent profiles (`.agent.md`)
17
+ - **Skill generation** — Generate Agent Skills files (`SKILL.md`)
18
+ - **Interview prep** — Build interview question sets by role
19
+ - **Static site** — Export everything as a static site
20
+
21
+ ## Quick Start
22
+
23
+ ```sh
24
+ # Start the web app
25
+ npx fit-pathway serve
26
+
27
+ # Browse entities
28
+ npx fit-pathway skill --list
29
+ npx fit-pathway job software_engineering senior --track=platform
30
+
31
+ # Generate agent profiles
32
+ npx fit-pathway agent software_engineering --track=platform --output=./.github/agents
33
+ ```
34
+
35
+ ## CLI Commands
36
+
37
+ | Command | Description |
38
+ | ----------- | ---------------------------- |
39
+ | `serve` | Start web server |
40
+ | `site` | Generate static site |
41
+ | `init` | Create data directory |
42
+ | `skill` | Browse skills |
43
+ | `behaviour` | Browse behaviours |
44
+ | `job` | Generate job definitions |
45
+ | `agent` | Generate agent profiles |
46
+ | `interview` | Generate interview questions |
47
+ | `progress` | Analyze career progression |
48
+ | `questions` | Browse interview questions |
49
+
50
+ Use `--help` with any command for full options.
51
+
52
+ ## Web App Features
53
+
54
+ - **Job Builder** — Select discipline, track, and grade to explore roles
55
+ - **Skill Browser** — View all skills with level descriptions
56
+ - **Career Progression** — Compare grades and identify growth areas
57
+ - **Interview Prep** — Generate role-specific question sets
58
+ - **Agent Preview** — Preview generated agent profiles
59
+
60
+ ## Package Exports
61
+
62
+ ```javascript
63
+ import { formatSkillForMarkdown } from "@forwardimpact/pathway/formatters";
64
+ import { runCommand } from "@forwardimpact/pathway/commands";
65
+ ```
66
+
67
+ See the [documentation](../../docs/pathway/index.md) for usage details.
@@ -27,10 +27,6 @@
27
27
  * --list Output IDs only (for piping)
28
28
  * --json Output as JSON
29
29
  * --help Show help
30
- *
31
- * Validation (moved to fit-schema):
32
- * npx fit-schema validate
33
- * npx fit-schema generate-index
34
30
  */
35
31
 
36
32
  import { join, resolve } from "path";
@@ -78,76 +74,142 @@ Engineering Pathway CLI
78
74
  Usage:
79
75
  npx fit-pathway <command> [options]
80
76
 
81
- Validation (use fit-schema instead):
82
- npx fit-schema validate Run full data validation
83
- npx fit-schema generate-index Generate browser index files
77
+ Global Options:
78
+ --list Output IDs only (for piping to other commands)
79
+ --json Output as JSON
80
+ --data=PATH Path to data directory (default: ./data or examples/)
81
+ --help Show this help message
82
+
83
+ ────────────────────────────────────────────────────────────────────────────────
84
+ GETTING STARTED
85
+ ────────────────────────────────────────────────────────────────────────────────
84
86
 
85
- Getting Started:
86
87
  init Create ./data/ with example data
87
88
  serve [--port=PORT] Serve web app at http://localhost:3000
88
89
  site [--output=PATH] Generate static site to ./site/
89
90
 
90
- Entity Commands (summary by default, --list for IDs, <id> for detail):
91
- discipline [<id>] Browse disciplines
92
- grade [<id>] Browse grades
93
- track [<id>] Browse tracks
94
- behaviour [<id>] Browse behaviours
95
- skill [<id>] Browse skills
96
- --agent Output as agent SKILL.md format
97
- driver [<id>] Browse drivers
98
- stage [<id>] Browse lifecycle stages
99
- tool [<name>] Browse recommended tools
100
-
101
- Composite Commands:
102
- job [<discipline> <grade>] [--track=TRACK] Generate job definition
103
- interview <discipline> <grade> [--track=TRACK] [--type=TYPE]
104
- Generate interview questions
105
- progress <discipline> <grade> [--track=TRACK] [--compare=GRADE]
106
- Show career progression
107
- questions [filters] Browse interview questions
108
- agent <discipline> [--track=<track>] Generate AI coding agent
91
+ ────────────────────────────────────────────────────────────────────────────────
92
+ ENTITY COMMANDS
93
+ ────────────────────────────────────────────────────────────────────────────────
109
94
 
110
- Global Options:
111
- --list Output IDs only (for piping to other commands)
112
- --json Output as JSON
113
- --data=PATH Path to data directory (default: ./data or examples/)
114
- --help Show this help message
95
+ All entity commands support: summary (default), --list (IDs for piping), <id> (detail)
115
96
 
116
- Questions Filters:
117
- --level=LEVEL Filter by skill level
118
- --maturity=MAT Filter by behaviour maturity
119
- --skill=ID Filter to specific skill
120
- --behaviour=ID Filter to behaviour
121
- --capability=CAP Filter by capability
122
- --stats Show detailed statistics
123
- --format=FORMAT Output format: table, yaml, json
124
-
125
- Agent Options:
126
- --track=TRACK Track for the agent (e.g., platform, forward_deployed)
127
- --output=PATH Write files to directory (without this, outputs to console)
128
- --stage=STAGE Generate specific stage agent (plan, code, review)
129
- --all-stages Generate all stage agents (default)
97
+ discipline [<id>] Browse engineering disciplines
98
+ grade [<id>] Browse career grades/levels
99
+ track [<id>] Browse track specializations
100
+ behaviour [<id>] Browse professional behaviours
101
+ driver [<id>] Browse outcome drivers
102
+ stage [<id>] Browse lifecycle stages
130
103
 
131
- Examples:
132
- npx fit-pathway skill # Summary of all skills
133
- npx fit-pathway skill --list # Skill IDs for piping
134
- npx fit-pathway skill ai_evaluation # Detail view
135
- npx fit-pathway skill architecture_design --agent # Agent SKILL.md output
104
+ skill [<id>] Browse skills
105
+ --agent Output as agent SKILL.md format
106
+
107
+ tool [<name>] Browse recommended tools (aggregated from skills)
108
+
109
+ ────────────────────────────────────────────────────────────────────────────────
110
+ JOB COMMAND
111
+ ────────────────────────────────────────────────────────────────────────────────
136
112
 
137
- npx fit-pathway tool # Summary of all tools
138
- npx fit-pathway tool --list # Tool names for piping
139
- npx fit-pathway tool DuckDB # Tool detail with skill usages
113
+ Generate job definitions from discipline × grade × track combinations.
140
114
 
141
- npx fit-pathway job # Summary of valid combinations
142
- npx fit-pathway job --list # All combinations for piping
115
+ Usage:
116
+ npx fit-pathway job Summary with stats
117
+ npx fit-pathway job --list All valid combinations
118
+ npx fit-pathway job <discipline> <grade> Detail view (trackless)
119
+ npx fit-pathway job <d> <g> --track=<track> Detail view (with track)
120
+ npx fit-pathway job <d> <g> --skills Plain list of skill IDs
121
+ npx fit-pathway job <d> <g> --tools Plain list of tool names
122
+ npx fit-pathway job <d> <g> --checklist=<stage> Show handoff checklist
123
+
124
+ Options:
125
+ --track=TRACK Track specialization (e.g., platform, forward_deployed)
126
+ --skills Output plain list of skill IDs (for piping)
127
+ --tools Output plain list of tool names (for piping)
128
+ --checklist=STAGE Show checklist for stage handoff (plan, code)
129
+
130
+ Examples:
143
131
  npx fit-pathway job software_engineering L4
144
132
  npx fit-pathway job software_engineering L4 --track=platform
145
- npx fit-pathway job se L3 --track=platform --checklist=code
133
+ npx fit-pathway job se L3 --track=platform --skills
134
+ npx fit-pathway job se L3 --track=platform --tools
135
+
136
+ ────────────────────────────────────────────────────────────────────────────────
137
+ AGENT COMMAND
138
+ ────────────────────────────────────────────────────────────────────────────────
139
+
140
+ Generate AI coding agent configurations from discipline × track × stage.
146
141
 
142
+ Usage:
143
+ npx fit-pathway agent Summary with stats
144
+ npx fit-pathway agent --list All valid combinations
145
+ npx fit-pathway agent <discipline> --track=<track> Generate all stage agents
146
+ npx fit-pathway agent <d> --track=<t> --stage=<s> Generate single stage agent
147
+ npx fit-pathway agent <d> --track=<t> --skills Plain list of skill IDs
148
+ npx fit-pathway agent <d> --track=<t> --tools Plain list of tool names
149
+
150
+ Options:
151
+ --track=TRACK Track for the agent (required for generation)
152
+ --stage=STAGE Generate specific stage agent (plan, code, review)
153
+ --output=PATH Write files to directory (without this, outputs to console)
154
+ --skills Output plain list of skill IDs (for piping)
155
+ --tools Output plain list of tool names (for piping)
156
+
157
+ Examples:
158
+ npx fit-pathway agent software_engineering --track=platform
159
+ npx fit-pathway agent software_engineering --track=platform --stage=plan
160
+ npx fit-pathway agent software_engineering --track=platform --output=./agents
161
+ npx fit-pathway agent software_engineering --track=platform --skills
162
+
163
+ ────────────────────────────────────────────────────────────────────────────────
164
+ INTERVIEW COMMAND
165
+ ────────────────────────────────────────────────────────────────────────────────
166
+
167
+ Generate interview question sets based on job requirements.
168
+
169
+ Usage:
170
+ npx fit-pathway interview <discipline> <grade>
171
+ npx fit-pathway interview <d> <g> --track=<track>
172
+ npx fit-pathway interview <d> <g> --type=<type>
173
+
174
+ Options:
175
+ --track=TRACK Track specialization
176
+ --type=TYPE Interview type: full (default), short
177
+
178
+ ────────────────────────────────────────────────────────────────────────────────
179
+ PROGRESS COMMAND
180
+ ────────────────────────────────────────────────────────────────────────────────
181
+
182
+ Analyze career progression between grades.
183
+
184
+ Usage:
185
+ npx fit-pathway progress <discipline> <grade>
186
+ npx fit-pathway progress <d> <g> --track=<track>
187
+ npx fit-pathway progress <d> <g> --compare=<to_grade>
188
+
189
+ Options:
190
+ --track=TRACK Track specialization
191
+ --compare=GRADE Compare to specific grade
192
+
193
+ ────────────────────────────────────────────────────────────────────────────────
194
+ QUESTIONS COMMAND
195
+ ────────────────────────────────────────────────────────────────────────────────
196
+
197
+ Browse and filter interview questions.
198
+
199
+ Usage:
200
+ npx fit-pathway questions
147
201
  npx fit-pathway questions --level=practitioner
202
+ npx fit-pathway questions --skill=architecture_design
148
203
  npx fit-pathway questions --stats
149
204
 
150
- npx fit-pathway agent software_engineering --track=platform --output=./agents
205
+ Options:
206
+ --level=LEVEL Filter by skill level
207
+ --maturity=MATURITY Filter by behaviour maturity
208
+ --skill=ID Filter to specific skill
209
+ --behaviour=ID Filter to specific behaviour
210
+ --capability=CAP Filter by capability
211
+ --stats Show detailed statistics
212
+ --format=FORMAT Output format: table, yaml, json
151
213
  `;
152
214
 
153
215
  /**
@@ -177,6 +239,8 @@ function parseArgs(args) {
177
239
  stats: false,
178
240
  // Job command options
179
241
  checklist: null,
242
+ skills: false,
243
+ tools: false,
180
244
  // Agent command options
181
245
  output: null,
182
246
  stage: null,
@@ -233,6 +297,10 @@ function parseArgs(args) {
233
297
  result.agent = true;
234
298
  } else if (arg.startsWith("--checklist=")) {
235
299
  result.checklist = arg.slice(12);
300
+ } else if (arg === "--skills") {
301
+ result.skills = true;
302
+ } else if (arg === "--tools") {
303
+ result.tools = true;
236
304
  } else if (arg.startsWith("--port=")) {
237
305
  result.port = parseInt(arg.slice(7), 10);
238
306
  } else if (arg.startsWith("--path=")) {
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@forwardimpact/pathway",
3
- "version": "0.6.0",
4
- "description": "Engineering Pathway CLI and web app",
3
+ "version": "0.8.0",
4
+ "description": "Career progression web app and CLI for exploring roles and generating agents",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/forwardimpact/pathway",
8
+ "url": "https://github.com/forwardimpact/monorepo",
9
9
  "directory": "apps/pathway"
10
10
  },
11
+ "homepage": "https://www.forwardimpact.team/pathway",
11
12
  "keywords": [
12
13
  "career",
13
14
  "competency",
@@ -39,8 +40,8 @@
39
40
  "./commands": "./src/commands/index.js"
40
41
  },
41
42
  "dependencies": {
42
- "@forwardimpact/schema": "^0.1.0",
43
- "@forwardimpact/model": "^0.1.0",
43
+ "@forwardimpact/schema": "^0.3.0",
44
+ "@forwardimpact/model": "^0.3.0",
44
45
  "mustache": "^4.2.0",
45
46
  "simple-icons": "^16.7.0",
46
47
  "yaml": "^2.3.4"
@@ -13,6 +13,8 @@
13
13
  * npx pathway agent <discipline> [--track=<track>]
14
14
  * npx pathway agent <discipline> --track=<track> --stage=plan
15
15
  * npx pathway agent <discipline> --track=<track> --output=./agents
16
+ * npx pathway agent <discipline> [--track=<track>] --skills # Plain list of skill IDs
17
+ * npx pathway agent <discipline> [--track=<track>] --tools # Plain list of tool names
16
18
  * npx pathway agent --list
17
19
  *
18
20
  * Examples:
@@ -36,7 +38,9 @@ import {
36
38
  deriveReferenceGrade,
37
39
  deriveAgentSkills,
38
40
  generateSkillMd,
39
- } from "@forwardimpact/model/agent";
41
+ deriveToolkit,
42
+ buildAgentIndex,
43
+ } from "@forwardimpact/model";
40
44
  import { formatAgentProfile } from "../formatters/agent/profile.js";
41
45
  import { formatAgentSkill } from "../formatters/agent/skill.js";
42
46
  import { formatError, formatSuccess } from "../lib/cli-output.js";
@@ -44,6 +48,7 @@ import {
44
48
  loadAgentTemplate,
45
49
  loadSkillTemplate,
46
50
  } from "../lib/template-loader.js";
51
+ import { toolkitToPlainList } from "../formatters/toolkit/markdown.js";
47
52
 
48
53
  /**
49
54
  * Ensure directory exists for a file path
@@ -372,8 +377,47 @@ export async function runAgentCommand({ data, args, options, dataDir }) {
372
377
  // Get reference grade for derivation
373
378
  const grade = deriveReferenceGrade(data.grades);
374
379
 
380
+ // --skills: Output plain list of skill IDs (for piping)
381
+ if (options.skills) {
382
+ const derivedSkills = deriveAgentSkills({
383
+ discipline: humanDiscipline,
384
+ track: humanTrack,
385
+ grade,
386
+ skills: skillsWithAgent,
387
+ });
388
+ for (const skill of derivedSkills) {
389
+ console.log(skill.skillId);
390
+ }
391
+ return;
392
+ }
393
+
394
+ // --tools: Output plain list of tool names (for piping)
395
+ if (options.tools) {
396
+ const derivedSkills = deriveAgentSkills({
397
+ discipline: humanDiscipline,
398
+ track: humanTrack,
399
+ grade,
400
+ skills: skillsWithAgent,
401
+ });
402
+ const toolkit = deriveToolkit({
403
+ skillMatrix: derivedSkills,
404
+ skills: skillsWithAgent,
405
+ });
406
+ console.log(toolkitToPlainList(toolkit));
407
+ return;
408
+ }
409
+
375
410
  const baseDir = options.output || ".";
376
411
 
412
+ // Build agent index for all valid combinations
413
+ const agentIndex = buildAgentIndex({
414
+ disciplines: data.disciplines,
415
+ tracks: data.tracks,
416
+ stages: data.stages,
417
+ agentDisciplines: agentData.disciplines,
418
+ agentTracks: agentData.tracks,
419
+ });
420
+
377
421
  // Common params for stage-based generation
378
422
  const stageParams = {
379
423
  discipline: humanDiscipline,
@@ -386,6 +430,7 @@ export async function runAgentCommand({ data, args, options, dataDir }) {
386
430
  agentTrack,
387
431
  capabilities: data.capabilities,
388
432
  stages: data.stages,
433
+ agentIndex,
389
434
  };
390
435
 
391
436
  // Handle --stage flag for single stage agent
@@ -8,6 +8,8 @@
8
8
  * npx pathway job --list # All valid combinations (for piping)
9
9
  * npx pathway job <discipline> <grade> # Detail view (trackless)
10
10
  * npx pathway job <discipline> <grade> --track=<track> # Detail view (with track)
11
+ * npx pathway job <d> <g> [--track=<t>] --skills # Plain list of skill IDs
12
+ * npx pathway job <d> <g> [--track=<t>] --tools # Plain list of tool names
11
13
  * npx pathway job se L3 --track=platform --checklist=code # Show checklist for handoff
12
14
  * npx pathway job --validate # Validation checks
13
15
  */
@@ -21,6 +23,7 @@ import {
21
23
  formatChecklistMarkdown,
22
24
  } from "@forwardimpact/model/checklist";
23
25
  import { loadJobTemplate } from "../lib/template-loader.js";
26
+ import { toolkitToPlainList } from "../formatters/toolkit/markdown.js";
24
27
 
25
28
  /**
26
29
  * Format job output
@@ -132,10 +135,38 @@ export async function runJobCommand({ data, args, options, dataDir }) {
132
135
  });
133
136
 
134
137
  if (!view) {
135
- console.error("Failed to generate job output.");
138
+ const combo = track
139
+ ? `${discipline.id} × ${grade.id} × ${track.id}`
140
+ : `${discipline.id} × ${grade.id}`;
141
+ console.error(`Invalid combination: ${combo}`);
142
+ if (track) {
143
+ const validTracks =
144
+ discipline.validTracks?.filter((t) => t !== null) || [];
145
+ if (validTracks.length > 0) {
146
+ console.error(
147
+ `Valid tracks for ${discipline.id}: ${validTracks.join(", ")}`,
148
+ );
149
+ } else {
150
+ console.error(`${discipline.id} does not support tracks`);
151
+ }
152
+ }
136
153
  process.exit(1);
137
154
  }
138
155
 
156
+ // --skills: Output plain list of skill IDs (for piping)
157
+ if (options.skills) {
158
+ for (const skill of view.skillMatrix) {
159
+ console.log(skill.skillId);
160
+ }
161
+ return;
162
+ }
163
+
164
+ // --tools: Output plain list of tool names (for piping)
165
+ if (options.tools) {
166
+ console.log(toolkitToPlainList(view.toolkit));
167
+ return;
168
+ }
169
+
139
170
  if (options.json) {
140
171
  console.log(JSON.stringify(view, null, 2));
141
172
  return;