create-agentic-starter 0.1.6 → 0.1.7
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/dist/index.js +22 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{mkdir as
|
|
2
|
+
import{mkdir as I,rm as A,writeFile as E}from"fs/promises";import u from"path";import{readFile as R,writeFile as l}from"fs/promises";import b from"path";function g(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function q(e,t,o,r){let n=new RegExp(`${g(o)}[\\s\\S]*?${g(r)}\\n?`,"m");if(n.test(e))return e.replace(n,`${t}
|
|
3
3
|
`);let s=e.endsWith(`
|
|
4
4
|
`)?`
|
|
5
5
|
`:`
|
|
6
6
|
|
|
7
7
|
`;return`${e}${s}${t}
|
|
8
|
-
`}async function
|
|
8
|
+
`}async function a(e,t,o,r,n){let s=b.join(e,t);try{let i=await R(s,"utf8"),j=q(i,o,r,n);await l(s,j,"utf8")}catch(i){if(i.code!=="ENOENT")throw i;await l(s,`${o}
|
|
9
9
|
`,"utf8")}}var f="AGENTS.md",h=".gitignore",c="<!-- from create-agentic-starter:agents:start -->",m="<!-- from create-agentic-starter:agents:end -->",d="# from create-agentic-starter:start",p="# from create-agentic-starter:end",w=`${c}
|
|
10
10
|
# Agentic Starter Guide
|
|
11
11
|
|
|
@@ -98,7 +98,8 @@ You are starting a fresh AI session inside this project. Your job is to quickly
|
|
|
98
98
|
8. Write drafts even from partial information.
|
|
99
99
|
9. Clearly separate confirmed facts, assumptions, and open questions.
|
|
100
100
|
10. Do not route immediately just because the workspace is empty. Do useful synthesis or ask focused questions first.
|
|
101
|
-
11.
|
|
101
|
+
11. If important project basics are still missing, continue asking focused questions and keep updating the memory files instead of routing forward yet.
|
|
102
|
+
12. Only when you have done enough useful intake work to create a solid initial understanding, end with:
|
|
102
103
|
|
|
103
104
|
\`Next type @.agentic/commands/project-requirements.md\`
|
|
104
105
|
`,".agentic/context.md":`# Context
|
|
@@ -180,9 +181,10 @@ Read:
|
|
|
180
181
|
- \`.agentic/workspace/memory/open-questions.md\`
|
|
181
182
|
7. Capture assumptions separately from confirmed facts.
|
|
182
183
|
8. Reduce open questions where possible before handing off to architecture.
|
|
183
|
-
9.
|
|
184
|
+
9. If the requirement understanding is still weak or important gaps remain, continue asking focused project questions and keep updating the memory files.
|
|
185
|
+
10. Only ask for missing details that block useful requirement understanding.
|
|
184
186
|
|
|
185
|
-
When
|
|
187
|
+
When the requirements are strong enough for architecture work, tell the user:
|
|
186
188
|
|
|
187
189
|
\`Next type @.agentic/commands/architecture.md\`
|
|
188
190
|
`,".agentic/commands/architecture.md":`# Architecture
|
|
@@ -203,9 +205,10 @@ Read:
|
|
|
203
205
|
4. Add a diagram description or mermaid diagram when supported.
|
|
204
206
|
5. Mention draw.io MCP only as an optional tool if available in the user's environment.
|
|
205
207
|
6. If relevant screenshots, notes, or references are found outside \`.agentic/workspace/project/\`, move or organize them into the workspace by default unless the user explicitly says not to.
|
|
206
|
-
7.
|
|
208
|
+
7. If architecture-critical information is still missing, ask architecture-specific questions and keep updating \`.agentic/workspace/memory/architecture.md\` instead of routing yet.
|
|
209
|
+
8. Ask only the minimum blocking questions.
|
|
207
210
|
|
|
208
|
-
When
|
|
211
|
+
When the architecture is strong enough for BRD drafting, tell the user:
|
|
209
212
|
|
|
210
213
|
\`Next type @.agentic/commands/create-brd.md\`
|
|
211
214
|
`,".agentic/commands/create-brd.md":`# Create BRD
|
|
@@ -224,9 +227,9 @@ Read:
|
|
|
224
227
|
2. Produce a polished markdown Business Requirements Document.
|
|
225
228
|
3. Use confirmed facts first and clearly label assumptions where needed.
|
|
226
229
|
4. If relevant source material is outside \`.agentic/workspace/project/\`, move or organize it into the workspace by default unless the user explicitly says not to.
|
|
227
|
-
5. If critical information is missing, ask only the minimum blocking questions
|
|
230
|
+
5. If critical information is missing, ask only the minimum blocking questions and keep improving the BRD draft instead of routing yet.
|
|
228
231
|
|
|
229
|
-
When
|
|
232
|
+
When the BRD is solid enough to define functional requirements, tell the user:
|
|
230
233
|
|
|
231
234
|
\`Next type @.agentic/commands/create-frd.md\`
|
|
232
235
|
`,".agentic/commands/create-frd.md":`# Create FRD
|
|
@@ -246,9 +249,10 @@ Read:
|
|
|
246
249
|
2. Produce a polished markdown Functional Requirements Document.
|
|
247
250
|
3. Cover modules, flows, validations, roles, and edge cases where relevant.
|
|
248
251
|
4. If relevant source material is outside \`.agentic/workspace/project/\`, move or organize it into the workspace by default unless the user explicitly says not to.
|
|
249
|
-
5.
|
|
252
|
+
5. If important functional details are still missing, ask focused follow-up questions and keep improving the FRD instead of routing yet.
|
|
253
|
+
6. Ask only the minimum blocking questions.
|
|
250
254
|
|
|
251
|
-
When
|
|
255
|
+
When the FRD is strong enough for estimation, tell the user:
|
|
252
256
|
|
|
253
257
|
\`Next type @.agentic/commands/create-estimate.md\`
|
|
254
258
|
`,".agentic/commands/create-estimate.md":`# Create Estimate
|
|
@@ -268,9 +272,10 @@ Read:
|
|
|
268
272
|
2. Produce a markdown estimate with effort breakdown, assumptions, dependencies, and risks.
|
|
269
273
|
3. Keep the estimate aligned with the known scope and clearly state uncertainty.
|
|
270
274
|
4. If relevant source material is outside \`.agentic/workspace/project/\`, move or organize it into the workspace by default unless the user explicitly says not to.
|
|
271
|
-
5.
|
|
275
|
+
5. If the estimate is too uncertain because key delivery information is missing, ask focused follow-up questions and keep refining the estimate instead of routing yet.
|
|
276
|
+
6. Ask only the minimum blocking questions.
|
|
272
277
|
|
|
273
|
-
When
|
|
278
|
+
When the estimate is strong enough for proposal drafting, tell the user:
|
|
274
279
|
|
|
275
280
|
\`Next type @.agentic/commands/create-proposal.md\`
|
|
276
281
|
`,".agentic/commands/create-proposal.md":`# Create Proposal
|
|
@@ -291,7 +296,8 @@ Read:
|
|
|
291
296
|
2. Produce a polished markdown proposal using the known scope, architecture direction, and estimate.
|
|
292
297
|
3. Make gaps explicit instead of inventing details.
|
|
293
298
|
4. If relevant screenshots, decks, notes, or references are found outside \`.agentic/workspace/project/\`, move or organize them into the workspace by default unless the user explicitly says not to.
|
|
294
|
-
5.
|
|
299
|
+
5. If key proposal inputs are still missing, ask focused questions and keep improving the proposal instead of prematurely declaring completion.
|
|
300
|
+
6. Ask only the minimum blocking questions.
|
|
295
301
|
|
|
296
|
-
When
|
|
297
|
-
`});async function T(e){await Promise.all(y.map(t=>
|
|
302
|
+
When the proposal is complete enough for handoff, tell the user the v1 workflow is complete and list the generated files.
|
|
303
|
+
`});async function T(e){await Promise.all(y.map(t=>A(u.join(e,t),{recursive:!0,force:!0})))}async function S(e){await Promise.all(x.map(t=>I(u.join(e,t),{recursive:!0})))}async function N(e){let t=v();await Promise.all(Object.entries(t).map(([o,r])=>E(u.join(e,o),r,"utf8")))}async function D(){let e=process.cwd();await T(e),await S(e),await N(e),await a(e,f,w,c,m),await a(e,h,k,d,p),console.log(""),console.log("create-agentic-starter: scaffold created successfully."),console.log(`Project folder: ${e}`),console.log(""),console.log("Next steps:"),console.log("1. Open your AI tool in this folder."),console.log("2. Start a new chat with @.agentic/init.md"),console.log("")}D().catch(e=>{let t=e instanceof Error?e.message:String(e);console.error(`create-agentic-starter: failed to scaffold project. ${t}`),process.exitCode=1});
|