@copado/agentia-cli 0.85.0-alpha.0 → 0.87.0-alpha.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.
Files changed (29) hide show
  1. package/README.md +315 -176
  2. package/dist/commands/cicd/notification/configure.d.ts +14 -0
  3. package/dist/commands/cicd/notification/configure.js +62 -0
  4. package/dist/commands/cicd/notification/configure.js.map +1 -0
  5. package/dist/commands/setup/skills/create.d.ts +15 -0
  6. package/dist/commands/setup/skills/create.js +64 -0
  7. package/dist/commands/setup/skills/create.js.map +1 -0
  8. package/dist/commands/setup/skills/update.d.ts +15 -0
  9. package/dist/commands/setup/skills/update.js +64 -0
  10. package/dist/commands/setup/skills/update.js.map +1 -0
  11. package/dist/lib/notifications-configure.d.ts +34 -0
  12. package/dist/lib/notifications-configure.js +101 -0
  13. package/dist/lib/notifications-configure.js.map +1 -0
  14. package/dist/lib/setup-skills.d.ts +67 -0
  15. package/dist/lib/setup-skills.js +251 -0
  16. package/dist/lib/setup-skills.js.map +1 -0
  17. package/oclif.manifest.json +367 -97
  18. package/package.json +11 -1
  19. package/templates/skills/agentia-ai/SKILL.md +34 -0
  20. package/templates/skills/agentia-ai/references/ai-agents.md +70 -0
  21. package/templates/skills/agentia-cicd/SKILL.md +41 -0
  22. package/templates/skills/agentia-cicd/references/data.md +65 -0
  23. package/templates/skills/agentia-cicd/references/environments-and-credentials.md +55 -0
  24. package/templates/skills/agentia-cicd/references/jobs.md +42 -0
  25. package/templates/skills/agentia-cicd/references/pipelines.md +63 -0
  26. package/templates/skills/agentia-cicd/references/promotions.md +58 -0
  27. package/templates/skills/agentia-cicd/references/work.md +84 -0
  28. package/templates/skills/agentia-testing/SKILL.md +34 -0
  29. package/templates/skills/agentia-testing/references/tests.md +65 -0
@@ -3255,6 +3255,118 @@
3255
3255
  "list.js"
3256
3256
  ]
3257
3257
  },
3258
+ "cicd:notification:configure": {
3259
+ "aliases": [],
3260
+ "args": {},
3261
+ "description": "Configure one Slack notification subscription for the current user on a pipeline",
3262
+ "examples": [
3263
+ "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --event Promotion_Failed --destination-type user --destination-id U0123ABCD --subscription user",
3264
+ "<%= config.bin %> <%= command.id %> -p <pipeline-id> --event Commit_Failed --destination-type channel --destination-id C0123ABCD --subscription all",
3265
+ "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --event \"Test_Not Started\" --destination-type user --destination-id @jane --subscription user --json"
3266
+ ],
3267
+ "flags": {
3268
+ "json": {
3269
+ "description": "Format output as json.",
3270
+ "helpGroup": "GLOBAL",
3271
+ "name": "json",
3272
+ "allowNo": false,
3273
+ "type": "boolean"
3274
+ },
3275
+ "destination-id": {
3276
+ "description": "Slack user or channel id or name",
3277
+ "name": "destination-id",
3278
+ "required": true,
3279
+ "hasDynamicHelp": false,
3280
+ "multiple": false,
3281
+ "type": "option"
3282
+ },
3283
+ "destination-type": {
3284
+ "description": "Slack destination type",
3285
+ "name": "destination-type",
3286
+ "required": true,
3287
+ "hasDynamicHelp": false,
3288
+ "multiple": false,
3289
+ "options": [
3290
+ "user",
3291
+ "channel"
3292
+ ],
3293
+ "type": "option"
3294
+ },
3295
+ "event": {
3296
+ "description": "Notification event",
3297
+ "name": "event",
3298
+ "required": true,
3299
+ "hasDynamicHelp": false,
3300
+ "multiple": false,
3301
+ "options": [
3302
+ "Promotion_Success",
3303
+ "Promotion_Failed",
3304
+ "Promotion_Conflict",
3305
+ "Failed_Promotion_Creation",
3306
+ "Deploy_Success",
3307
+ "Deploy_Failed",
3308
+ "Commit_Failed",
3309
+ "Successful_Snapshot",
3310
+ "Failed_Snapshot",
3311
+ "ManualTask_Assigned",
3312
+ "Test_Success",
3313
+ "Test_Failed",
3314
+ "Test_Cancelled",
3315
+ "Test_Not Started",
3316
+ "Quality_Gate_Success",
3317
+ "Quality_Gate_Failed",
3318
+ "Quality_Gate_Cancelled",
3319
+ "Quality_Gate_Not Started",
3320
+ "Create_Package_Success",
3321
+ "Create_Package_Failure",
3322
+ "Generate_Package_Version_Success",
3323
+ "Generate_Package_Version_Failure",
3324
+ "Import_Package_Success",
3325
+ "Import_Package_Failure",
3326
+ "Publish_Package_Success",
3327
+ "Publish_Package_Failure"
3328
+ ],
3329
+ "type": "option"
3330
+ },
3331
+ "pipeline-id": {
3332
+ "char": "p",
3333
+ "description": "Copado pipeline Salesforce Id",
3334
+ "name": "pipeline-id",
3335
+ "required": true,
3336
+ "hasDynamicHelp": false,
3337
+ "multiple": false,
3338
+ "type": "option"
3339
+ },
3340
+ "subscription": {
3341
+ "description": "Notification audience for this event",
3342
+ "name": "subscription",
3343
+ "required": true,
3344
+ "hasDynamicHelp": false,
3345
+ "multiple": false,
3346
+ "options": [
3347
+ "user",
3348
+ "all"
3349
+ ],
3350
+ "type": "option"
3351
+ }
3352
+ },
3353
+ "hasDynamicHelp": false,
3354
+ "hiddenAliases": [],
3355
+ "id": "cicd:notification:configure",
3356
+ "pluginAlias": "@copado/agentia-cli",
3357
+ "pluginName": "@copado/agentia-cli",
3358
+ "pluginType": "core",
3359
+ "strict": true,
3360
+ "enableJsonFlag": true,
3361
+ "isESM": true,
3362
+ "relativePath": [
3363
+ "dist",
3364
+ "commands",
3365
+ "cicd",
3366
+ "notification",
3367
+ "configure.js"
3368
+ ]
3369
+ },
3258
3370
  "cicd:pipeline:create": {
3259
3371
  "aliases": [],
3260
3372
  "args": {
@@ -6294,6 +6406,164 @@
6294
6406
  "update.js"
6295
6407
  ]
6296
6408
  },
6409
+ "setup:skills:create": {
6410
+ "aliases": [],
6411
+ "args": {},
6412
+ "description": "Create portable Markdown-only Agentia CLI skills in this project without overwriting managed files",
6413
+ "examples": [
6414
+ "<%= config.bin %> <%= command.id %>",
6415
+ "<%= config.bin %> <%= command.id %> --cicd --target agents --no-prompt",
6416
+ "<%= config.bin %> <%= command.id %> --testing --ai --target cursor --no-prompt",
6417
+ "<%= config.bin %> <%= command.id %> --json"
6418
+ ],
6419
+ "flags": {
6420
+ "json": {
6421
+ "description": "Format output as json.",
6422
+ "helpGroup": "GLOBAL",
6423
+ "name": "json",
6424
+ "allowNo": false,
6425
+ "type": "boolean"
6426
+ },
6427
+ "ai": {
6428
+ "description": "Create the Copado AI agent skill pack",
6429
+ "name": "ai",
6430
+ "allowNo": false,
6431
+ "type": "boolean"
6432
+ },
6433
+ "cicd": {
6434
+ "description": "Create the Copado CICD skill pack",
6435
+ "name": "cicd",
6436
+ "allowNo": false,
6437
+ "type": "boolean"
6438
+ },
6439
+ "force": {
6440
+ "description": "Replace conflicting unmanaged Agentia skill files",
6441
+ "name": "force",
6442
+ "allowNo": false,
6443
+ "type": "boolean"
6444
+ },
6445
+ "no-prompt": {
6446
+ "char": "n",
6447
+ "description": "Skip interactive prompts; defaults the target to .agents/skills when --target is omitted",
6448
+ "name": "no-prompt",
6449
+ "allowNo": false,
6450
+ "type": "boolean"
6451
+ },
6452
+ "target": {
6453
+ "description": "Project skill root to write",
6454
+ "name": "target",
6455
+ "hasDynamicHelp": false,
6456
+ "multiple": false,
6457
+ "options": [
6458
+ "agents",
6459
+ "cursor",
6460
+ "claude"
6461
+ ],
6462
+ "type": "option"
6463
+ },
6464
+ "testing": {
6465
+ "description": "Create the Copado Robotic Testing skill pack",
6466
+ "name": "testing",
6467
+ "allowNo": false,
6468
+ "type": "boolean"
6469
+ }
6470
+ },
6471
+ "hasDynamicHelp": false,
6472
+ "hiddenAliases": [],
6473
+ "id": "setup:skills:create",
6474
+ "pluginAlias": "@copado/agentia-cli",
6475
+ "pluginName": "@copado/agentia-cli",
6476
+ "pluginType": "core",
6477
+ "strict": true,
6478
+ "enableJsonFlag": true,
6479
+ "isESM": true,
6480
+ "relativePath": [
6481
+ "dist",
6482
+ "commands",
6483
+ "setup",
6484
+ "skills",
6485
+ "create.js"
6486
+ ]
6487
+ },
6488
+ "setup:skills:update": {
6489
+ "aliases": [],
6490
+ "args": {},
6491
+ "description": "Update Agentia-managed Markdown skill files and restore missing files in this project",
6492
+ "examples": [
6493
+ "<%= config.bin %> <%= command.id %>",
6494
+ "<%= config.bin %> <%= command.id %> --ai --target cursor --no-prompt",
6495
+ "<%= config.bin %> <%= command.id %> --cicd --testing --target agents --no-prompt",
6496
+ "<%= config.bin %> <%= command.id %> --force --json"
6497
+ ],
6498
+ "flags": {
6499
+ "json": {
6500
+ "description": "Format output as json.",
6501
+ "helpGroup": "GLOBAL",
6502
+ "name": "json",
6503
+ "allowNo": false,
6504
+ "type": "boolean"
6505
+ },
6506
+ "ai": {
6507
+ "description": "Update the Copado AI agent skill pack",
6508
+ "name": "ai",
6509
+ "allowNo": false,
6510
+ "type": "boolean"
6511
+ },
6512
+ "cicd": {
6513
+ "description": "Update the Copado CICD skill pack",
6514
+ "name": "cicd",
6515
+ "allowNo": false,
6516
+ "type": "boolean"
6517
+ },
6518
+ "force": {
6519
+ "description": "Replace conflicting unmanaged Agentia skill files",
6520
+ "name": "force",
6521
+ "allowNo": false,
6522
+ "type": "boolean"
6523
+ },
6524
+ "no-prompt": {
6525
+ "char": "n",
6526
+ "description": "Skip interactive prompts; defaults the target to .agents/skills when --target is omitted",
6527
+ "name": "no-prompt",
6528
+ "allowNo": false,
6529
+ "type": "boolean"
6530
+ },
6531
+ "target": {
6532
+ "description": "Project skill root to write",
6533
+ "name": "target",
6534
+ "hasDynamicHelp": false,
6535
+ "multiple": false,
6536
+ "options": [
6537
+ "agents",
6538
+ "cursor",
6539
+ "claude"
6540
+ ],
6541
+ "type": "option"
6542
+ },
6543
+ "testing": {
6544
+ "description": "Update the Copado Robotic Testing skill pack",
6545
+ "name": "testing",
6546
+ "allowNo": false,
6547
+ "type": "boolean"
6548
+ }
6549
+ },
6550
+ "hasDynamicHelp": false,
6551
+ "hiddenAliases": [],
6552
+ "id": "setup:skills:update",
6553
+ "pluginAlias": "@copado/agentia-cli",
6554
+ "pluginName": "@copado/agentia-cli",
6555
+ "pluginType": "core",
6556
+ "strict": true,
6557
+ "enableJsonFlag": true,
6558
+ "isESM": true,
6559
+ "relativePath": [
6560
+ "dist",
6561
+ "commands",
6562
+ "setup",
6563
+ "skills",
6564
+ "update.js"
6565
+ ]
6566
+ },
6297
6567
  "testing:build:abort": {
6298
6568
  "aliases": [],
6299
6569
  "args": {
@@ -9355,102 +9625,6 @@
9355
9625
  "list.js"
9356
9626
  ]
9357
9627
  },
9358
- "cicd:data:commit:create": {
9359
- "aliases": [],
9360
- "args": {},
9361
- "description": "Create a data commit for a user story",
9362
- "examples": [
9363
- "<%= config.bin %> <%= command.id %> --file commit.json",
9364
- "<%= config.bin %> <%= command.id %> --stdin --json"
9365
- ],
9366
- "flags": {
9367
- "json": {
9368
- "description": "Format output as json.",
9369
- "helpGroup": "GLOBAL",
9370
- "name": "json",
9371
- "allowNo": false,
9372
- "type": "boolean"
9373
- },
9374
- "file": {
9375
- "char": "f",
9376
- "description": "Path to a JSON file body",
9377
- "exclusive": [
9378
- "stdin"
9379
- ],
9380
- "name": "file",
9381
- "hasDynamicHelp": false,
9382
- "multiple": false,
9383
- "type": "option"
9384
- },
9385
- "stdin": {
9386
- "description": "Read the JSON body from stdin",
9387
- "exclusive": [
9388
- "file"
9389
- ],
9390
- "name": "stdin",
9391
- "allowNo": false,
9392
- "type": "boolean"
9393
- }
9394
- },
9395
- "hasDynamicHelp": false,
9396
- "hiddenAliases": [],
9397
- "id": "cicd:data:commit:create",
9398
- "pluginAlias": "@copado/agentia-cli",
9399
- "pluginName": "@copado/agentia-cli",
9400
- "pluginType": "core",
9401
- "strict": true,
9402
- "enableJsonFlag": true,
9403
- "isESM": true,
9404
- "relativePath": [
9405
- "dist",
9406
- "commands",
9407
- "cicd",
9408
- "data",
9409
- "commit",
9410
- "create.js"
9411
- ]
9412
- },
9413
- "cicd:data:commit:list": {
9414
- "aliases": [],
9415
- "args": {
9416
- "userStoryId": {
9417
- "description": "User story Id",
9418
- "name": "userStoryId",
9419
- "required": true
9420
- }
9421
- },
9422
- "description": "List data commits for a user story",
9423
- "examples": [
9424
- "<%= config.bin %> <%= command.id %> a16P7000006AyU5IAK",
9425
- "<%= config.bin %> <%= command.id %> a16P7000006AyU5IAK --json"
9426
- ],
9427
- "flags": {
9428
- "json": {
9429
- "description": "Format output as json.",
9430
- "helpGroup": "GLOBAL",
9431
- "name": "json",
9432
- "allowNo": false,
9433
- "type": "boolean"
9434
- }
9435
- },
9436
- "hasDynamicHelp": false,
9437
- "hiddenAliases": [],
9438
- "id": "cicd:data:commit:list",
9439
- "pluginAlias": "@copado/agentia-cli",
9440
- "pluginName": "@copado/agentia-cli",
9441
- "pluginType": "core",
9442
- "strict": true,
9443
- "enableJsonFlag": true,
9444
- "isESM": true,
9445
- "relativePath": [
9446
- "dist",
9447
- "commands",
9448
- "cicd",
9449
- "data",
9450
- "commit",
9451
- "list.js"
9452
- ]
9453
- },
9454
9628
  "cicd:data:dataset-file:content": {
9455
9629
  "aliases": [],
9456
9630
  "args": {
@@ -12754,6 +12928,102 @@
12754
12928
  "unresolve.js"
12755
12929
  ]
12756
12930
  },
12931
+ "cicd:data:commit:create": {
12932
+ "aliases": [],
12933
+ "args": {},
12934
+ "description": "Create a data commit for a user story",
12935
+ "examples": [
12936
+ "<%= config.bin %> <%= command.id %> --file commit.json",
12937
+ "<%= config.bin %> <%= command.id %> --stdin --json"
12938
+ ],
12939
+ "flags": {
12940
+ "json": {
12941
+ "description": "Format output as json.",
12942
+ "helpGroup": "GLOBAL",
12943
+ "name": "json",
12944
+ "allowNo": false,
12945
+ "type": "boolean"
12946
+ },
12947
+ "file": {
12948
+ "char": "f",
12949
+ "description": "Path to a JSON file body",
12950
+ "exclusive": [
12951
+ "stdin"
12952
+ ],
12953
+ "name": "file",
12954
+ "hasDynamicHelp": false,
12955
+ "multiple": false,
12956
+ "type": "option"
12957
+ },
12958
+ "stdin": {
12959
+ "description": "Read the JSON body from stdin",
12960
+ "exclusive": [
12961
+ "file"
12962
+ ],
12963
+ "name": "stdin",
12964
+ "allowNo": false,
12965
+ "type": "boolean"
12966
+ }
12967
+ },
12968
+ "hasDynamicHelp": false,
12969
+ "hiddenAliases": [],
12970
+ "id": "cicd:data:commit:create",
12971
+ "pluginAlias": "@copado/agentia-cli",
12972
+ "pluginName": "@copado/agentia-cli",
12973
+ "pluginType": "core",
12974
+ "strict": true,
12975
+ "enableJsonFlag": true,
12976
+ "isESM": true,
12977
+ "relativePath": [
12978
+ "dist",
12979
+ "commands",
12980
+ "cicd",
12981
+ "data",
12982
+ "commit",
12983
+ "create.js"
12984
+ ]
12985
+ },
12986
+ "cicd:data:commit:list": {
12987
+ "aliases": [],
12988
+ "args": {
12989
+ "userStoryId": {
12990
+ "description": "User story Id",
12991
+ "name": "userStoryId",
12992
+ "required": true
12993
+ }
12994
+ },
12995
+ "description": "List data commits for a user story",
12996
+ "examples": [
12997
+ "<%= config.bin %> <%= command.id %> a16P7000006AyU5IAK",
12998
+ "<%= config.bin %> <%= command.id %> a16P7000006AyU5IAK --json"
12999
+ ],
13000
+ "flags": {
13001
+ "json": {
13002
+ "description": "Format output as json.",
13003
+ "helpGroup": "GLOBAL",
13004
+ "name": "json",
13005
+ "allowNo": false,
13006
+ "type": "boolean"
13007
+ }
13008
+ },
13009
+ "hasDynamicHelp": false,
13010
+ "hiddenAliases": [],
13011
+ "id": "cicd:data:commit:list",
13012
+ "pluginAlias": "@copado/agentia-cli",
13013
+ "pluginName": "@copado/agentia-cli",
13014
+ "pluginType": "core",
13015
+ "strict": true,
13016
+ "enableJsonFlag": true,
13017
+ "isESM": true,
13018
+ "relativePath": [
13019
+ "dist",
13020
+ "commands",
13021
+ "cicd",
13022
+ "data",
13023
+ "commit",
13024
+ "list.js"
13025
+ ]
13026
+ },
12757
13027
  "cicd:work:deployment-step:create": {
12758
13028
  "aliases": [],
12759
13029
  "args": {},
@@ -13470,5 +13740,5 @@
13470
13740
  ]
13471
13741
  }
13472
13742
  },
13473
- "version": "0.85.0-alpha.0"
13743
+ "version": "0.87.0-alpha.0"
13474
13744
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@copado/agentia-cli",
3
3
  "description": "Command-line interface for Agentia",
4
- "version": "0.85.0-alpha.0",
4
+ "version": "0.87.0-alpha.0",
5
5
  "author": "Copado Solutions",
6
6
  "bin": {
7
7
  "agentia": "./bin/run.js"
@@ -44,6 +44,7 @@
44
44
  "./bin",
45
45
  "./dist",
46
46
  "./oclif.manifest.json",
47
+ "./templates",
47
48
  "./vendor/java"
48
49
  ],
49
50
  "homepage": "https://github.com/Copado/agentia-cli",
@@ -180,9 +181,18 @@
180
181
  "cicd:promotion:conflict": {
181
182
  "description": "Manage Copado promotion conflicts"
182
183
  },
184
+ "cicd:notification": {
185
+ "description": "Configure Copado notification subscriptions"
186
+ },
183
187
  "mcp": {
184
188
  "description": "Start a local Model Context Protocol server for MCP-compatible clients"
185
189
  },
190
+ "setup": {
191
+ "description": "Prepare Agentia local project assets"
192
+ },
193
+ "setup:skills": {
194
+ "description": "Create and update Agentia Agent Skills"
195
+ },
186
196
  "testing": {
187
197
  "description": "Manage Copado Robotic Testing projects, tests, runs, logs, and variables"
188
198
  }
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: agentia-ai
3
+ description: Use this skill when prompting Copado AI agents through the Agentia CLI or MCP, including `agentia ai agent ask`, `agentia ai agent chat`, Plan, Build, Test, Release, Operate, Knowledge, workspace, dialogue, user story, Salesforce org, and component context.
4
+ ---
5
+
6
+ <!-- Agentia managed skill file: agentia setup skills -->
7
+
8
+ # Agentia AI
9
+
10
+ Use this skill to ask Copado AI agents through Agentia with the right agent selector, workspace context, and output mode.
11
+
12
+ Prefer the `agentia_ai_ask` MCP tool when it is available for single-turn prompts. Use CLI examples as the fallback. Use `agentia ai agent chat` only for interactive terminal sessions.
13
+
14
+ ## Start Here
15
+
16
+ 1. Confirm AI auth with `agentia auth get --ai --json`, or provide `--pat`, `--domain`, `--org`, and optional `--gateway-url`.
17
+ 2. Choose exactly one agent selector for `ask`: `--plan`, `--build`, `--test`, `--release`, `--operate`, or `--knowledge`.
18
+ 3. Add useful context flags when available: `--workspace`, `--dialogue`, `--user-story`, `--sf-org`, and `--component`.
19
+ 4. Use `--json` for automation. Use `--no-stream` when the caller needs a buffered response.
20
+
21
+ ## Reference
22
+
23
+ - Copado AI agent prompts, chat sessions, workspace context, MCP parity, and gotchas: [references/ai-agents.md](references/ai-agents.md)
24
+
25
+ ## General Rules
26
+
27
+ - Keep prompts specific and include IDs or names read from Copado or the local project.
28
+ - Use the Knowledge agent for Copado AI Knowledge grounding and product questions.
29
+ - Use the Plan, Build, Test, Release, and Operate agents according to the lifecycle intent.
30
+ - Do not paste PATs or secrets into prompts.
31
+
32
+ ## Report Back
33
+
34
+ Report the selected AI agent, workspace/dialogue identifiers when returned, whether the response was streamed or buffered, and any follow-up action. Do not include secrets.
@@ -0,0 +1,70 @@
1
+ <!-- Agentia managed skill file: agentia setup skills -->
2
+
3
+ # AI Agents Reference
4
+
5
+ Use this reference for `agentia ai agent ask`, `agentia ai agent chat`, and the matching `agentia_ai_ask` MCP tool.
6
+
7
+ ## Authentication And Context
8
+
9
+ Configure AI once:
10
+
11
+ ```sh
12
+ agentia auth set --ai --ai-domain <domain> --ai-org <organization-id> --ai-workspace <workspace-id>
13
+ agentia auth get --ai --json
14
+ ```
15
+
16
+ Per-command overrides include `--pat`, `--domain`, `--org`, `--workspace`, `--gateway-url`, and `--timeout`. Do not print PAT values.
17
+
18
+ ## Agent Selectors
19
+
20
+ | Selector | Use For |
21
+ | --- | --- |
22
+ | `--plan` | Break requirements into delivery plans and acceptance criteria. |
23
+ | `--build` | Implementation guidance, code-level questions, and construction tasks. |
24
+ | `--test` | Test strategy, regression selection, and test troubleshooting. |
25
+ | `--release` | Release, promotion, packaging, and deployment questions. |
26
+ | `--operate` | Operational diagnostics, monitoring, and runbook style questions. |
27
+ | `--knowledge` | Copado AI Knowledge grounding, product documentation, personas, and troubleshooting. |
28
+ | `--orchestrate` | Chat-only orchestration mode for interactive sessions. |
29
+
30
+ Choose one selector that matches the user's intent. `ask` requires a prompt with `-p` or `--prompt`; `chat` is TTY-only and prompts interactively.
31
+
32
+ ## Single-Turn Ask
33
+
34
+ Use `ask` for automation and agent-to-agent workflows:
35
+
36
+ ```sh
37
+ agentia ai agent ask --plan -p "Break this user story into implementation steps" --json
38
+ agentia ai agent ask --knowledge -p "Summarize Copado guidance for data template sync" --no-stream --json
39
+ agentia ai agent ask --build --user-story US-1042 --component AccountService -p "Review the implementation approach" --json
40
+ ```
41
+
42
+ MCP `agentia_ai_ask` mirrors the buffered JSON-safe ask flow. It does not provide interactive chat.
43
+
44
+ ## Interactive Chat
45
+
46
+ Use `chat` only when a human is present in a terminal:
47
+
48
+ ```sh
49
+ agentia ai agent chat --build --user-story US-1042
50
+ agentia ai agent chat --orchestrate --workspace <workspace-id>
51
+ ```
52
+
53
+ Chat creates or reuses one dialogue for the session and supports session slash commands. It is not suitable for headless JSON workflows.
54
+
55
+ ## Workspace And Quota Helpers
56
+
57
+ Use these adjacent commands when the prompt workflow needs context setup:
58
+
59
+ | Command | Use For |
60
+ | --- | --- |
61
+ | `ai workspace list|get|create|update` | Inspect or manage Copado AI workspaces. |
62
+ | `ai workspace member list|invite` | Inspect or invite workspace members. |
63
+ | `ai quota get` | Check organization quota before large AI activity. |
64
+
65
+ ## Gotchas
66
+
67
+ - `--workspace` selects the workspace; `--dialogue` reuses a conversation inside that workspace.
68
+ - `--user-story`, `--sf-org`, and `--component` enrich prompt context but do not replace a clear prompt.
69
+ - Streaming is human-friendly. For tools, CI, or follow-up parsing, use `--json` and consider `--no-stream`.
70
+ - `chat` has no MCP equivalent and should not be used in non-interactive shells.
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: agentia-cicd
3
+ description: Use this skill when managing Copado CICD work with the Agentia CLI or Agentia MCP tools: user stories, work commit/push/submit/done, promotion runs and conflicts, job executions, environments, credentials, pipelines, stages, and release data templates. Use it whenever the user asks an agent to operate Copado CICD from a terminal, IDE, or headless workflow.
4
+ ---
5
+
6
+ <!-- Agentia managed skill file: agentia setup skills -->
7
+
8
+ # Agentia CICD
9
+
10
+ Use this skill to operate Copado CICD through Agentia without guessing command order, IDs, or JSON fields.
11
+
12
+ Prefer Agentia MCP tools when they are available and match the task. Use CLI examples as the fallback, and add `--json` whenever the result will be parsed or reused.
13
+
14
+ ## Start Here
15
+
16
+ 1. Confirm `agentia auth get --cicd --json` is configured, or that the current process supplies `AGENTIA_CICD_API_KEY` and `AGENTIA_CICD_BASE_URL`.
17
+ 2. Identify the domain below and read only the matching reference file.
18
+ 3. Before mutating data, read the target record first with the matching `get`, `list`, or `status` command.
19
+ 4. Never print credentials, PATs, OAuth signatures, or unmasked environment variables.
20
+
21
+ ## References
22
+
23
+ - User stories, local commits, cloud commits, push, submit, done, quality gates, and deployment steps: [references/work.md](references/work.md)
24
+ - Promotion lookup, run, resume, merge conflicts, and story-centric promotion: [references/promotions.md](references/promotions.md)
25
+ - Copado JobExecution lookup, actions, logs, and monitoring: [references/jobs.md](references/jobs.md)
26
+ - Copado environments, environment credentials, and browser authentication: [references/environments-and-credentials.md](references/environments-and-credentials.md)
27
+ - Pipelines, environment connections, stages, and stage connections: [references/pipelines.md](references/pipelines.md)
28
+ - Release data templates, records, matching, sync, dataset files, and data commits: [references/data.md](references/data.md)
29
+
30
+ ## General Rules
31
+
32
+ - Use Salesforce record IDs or generated names read from Copado. Do not invent story names, promotion IDs, job IDs, credential IDs, or pipeline IDs.
33
+ - Keep human output off stdout in JSON workflows. Prefer `--json`, then parse the result object.
34
+ - For local project work, keep the tracked working tree clean before commands that require it: `work set`, `work push`, `work submit`, and `work done`.
35
+ - Treat `cicd job` as Copado CICD JobExecution. It is different from CRT `testing job`.
36
+ - Treat `cicd work test --local` as local quality gates. It is different from CRT `testing test run`.
37
+ - Treat `auth` credentials as keychain/API credentials and `cicd credential` records as Copado environment credentials.
38
+
39
+ ## Report Back
40
+
41
+ When you finish a CICD operation, report the command path used, target IDs or names, final status, whether JSON was used, and any remaining manual action. Do not include secrets.