You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: abca-plugin/skills/onboard-repo/SKILL.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ You are guiding the user through onboarding a new GitHub repository to ABCA. Rep
16
16
Use AskUserQuestion to collect:
17
17
-**Repository**: GitHub `owner/repo` format
18
18
-**Compute type**: `agentcore` (default) or `ecs`
19
-
-**Model preference**: Claude Sonnet 4 (default), Claude Opus 4 (complex repos), or Claude Haiku (lightweight)
19
+
-**Model preference**: Claude Sonnet 4 (default), Claude Opus 4 (complex repos), or Claude Haiku (lightweight). **Important:** Models must be specified using their cross-region inference profile ID (e.g. `us.anthropic.claude-opus-4-20250514-v1:0`), not the raw foundation model ID. On-demand invocation of raw model IDs is not supported for most models.
20
20
-**Max turns**: Default 100 (range: 1-500)
21
21
-**Max budget**: USD cost ceiling per task (optional)
22
22
-**Custom GitHub PAT**: If this repo needs a different token than the platform default
@@ -44,7 +44,7 @@ new Blueprint(this, 'MyRepoBlueprint', {
@@ -54,6 +54,30 @@ new Blueprint(this, 'MyRepoBlueprint', {
54
54
55
55
Use a descriptive construct ID derived from the repo name.
56
56
57
+
### Model ID and IAM Permissions
58
+
59
+
When specifying a non-default model via `agent.modelId`, two things are required:
60
+
61
+
1.**Use the inference profile ID, not the raw model ID.** Bedrock does not support on-demand invocation of raw foundation model IDs for most models. Use the cross-region inference profile ID instead:
- Opus 4: `us.anthropic.claude-opus-4-20250514-v1:0`
64
+
- Haiku 4.5: `us.anthropic.claude-haiku-4-5-20251001-v1:0` (on-demand works for Haiku)
65
+
66
+
2.**Grant the runtime IAM permissions for the model.** The Blueprint construct does not automatically grant `bedrock:InvokeModel*` — this is by design (least privilege). You must add a `grantInvoke` block in the stack for each model used:
After adding the Blueprint, the stack must be redeployed:
@@ -100,4 +124,6 @@ Task-level parameters override Blueprint defaults. If neither specifies a value,
100
124
## Common Issues
101
125
102
126
-**422 "Repository not onboarded"** — Blueprint hasn't been deployed yet. Add the construct and redeploy.
103
-
-**Preflight failures after onboarding** — GitHub PAT may lack permissions for the new repo. Check the PAT's fine-grained access includes the target repository.
127
+
-**Preflight failures after onboarding** — GitHub PAT may lack permissions for the new repo. Check the PAT's fine-grained access includes the target repository with Contents (read/write) and Pull requests (read/write) permissions.
128
+
-**400 "Invocation with on-demand throughput isn't supported"** — The Blueprint `modelId` is using a raw foundation model ID instead of an inference profile ID. Change e.g. `anthropic.claude-opus-4-20250514-v1:0` to `us.anthropic.claude-opus-4-20250514-v1:0`.
129
+
-**403 "not authorized to perform bedrock:InvokeModelWithResponseStream"** — The runtime IAM role lacks permissions for the model specified in the Blueprint. Add `grantInvoke` for both the model and its cross-region inference profile in `agent.ts`.
0 commit comments