Install
$ agentstack add skill-aws-samples-sample-ai-agent-skills-codeartifact-troubleshooting ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
CodeArtifact Diagnostics
When to use
Any CodeArtifact investigation where the console alone is insufficient — repository or domain configuration failures, authentication problems, package resolution issues, publishing errors, cross-account access, or CI/CD integration problems.
Investigation workflow
Step 1 — Collect and triage
aws codeartifact list-domains
aws codeartifact list-repositories
aws codeartifact describe-domain --domain
aws codeartifact describe-repository --domain --repository
aws codeartifact get-authorization-token --domain --query authorizationToken
Step 2 — Deep dive
aws codeartifact list-repositories-in-domain --domain
aws codeartifact get-domain-permissions-policy --domain
aws codeartifact get-repository-permissions-policy --domain --repository
aws codeartifact list-packages --domain --repository
aws codeartifact get-repository-endpoint --domain --repository --format
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=codeartifact.amazonaws.com --max-results 20
Read references/guardrails.md before concluding on any CodeArtifact issue.
Tool quick reference
| Tool / API | When to use | |------------|-------------| | codeartifact list-domains | List all domains | | codeartifact describe-domain | Domain details, encryption, status | | codeartifact list-repositories | List all repositories | | codeartifact describe-repository | Repository details, upstreams | | codeartifact get-authorization-token | Get auth token for package managers | | codeartifact get-domain-permissions-policy | Domain resource policy | | codeartifact get-repository-permissions-policy | Repository resource policy | | codeartifact list-packages | List packages in a repository | | codeartifact describe-package-version | Package version details | | codeartifact get-repository-endpoint | Package manager endpoint URL | | codeartifact list-package-versions | Version history for a package | | codeartifact login | Configure package manager auth |
Gotchas: CodeArtifact
- Auth tokens expire after 12 hours by default: Tokens from
get-authorization-tokendefault to 12 hours. Maximum is 12 hours. CI/CD pipelines must refresh tokens per job. - Upstream resolution is ordered: Packages are resolved from upstream repositories in the order they are listed. The first match wins. Reorder upstreams to prioritize internal packages over public.
- Domain is the billing and access boundary: All repositories in a domain share the same KMS key and domain policy. Cross-domain access is not supported — use cross-account domain access instead.
- Package versions are immutable: Once published, a package version cannot be overwritten. You must publish a new version or delete and re-publish. This prevents supply chain attacks.
- npm requires scope or registry configuration: npm must be configured to use the CodeArtifact registry either globally or per-scope. Without configuration, npm defaults to the public registry.
- pip requires index-url configuration: pip must be configured with
--index-urlpointing to the CodeArtifact PyPI endpoint. The--extra-index-urloption can cause dependency confusion attacks. - Maven requires settings.xml configuration: Maven needs server credentials and repository configuration in settings.xml. The auth token must be refreshed before builds.
- External connections count toward limits: Each repository can have one external connection (e.g., npmjs, pypi). The external connection counts as an upstream repository.
- Cross-account requires domain policy: Cross-account access requires a domain permissions policy granting access to the remote account, plus IAM permissions in the remote account.
Anti-hallucination rules
- Always cite specific domain names, repository names, or API responses as evidence.
- Auth tokens expire after 12 hours maximum — never claim longer validity.
- Package versions are immutable — never suggest overwriting an existing version.
- Cross-account requires domain policy — never suggest only IAM is sufficient.
- External connections are limited to one per repository — never suggest multiple.
- Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.
18 runbooks
| Category | IDs | Covers | |----------|-----|--------| | A — Repository | A1-A2 | Creation failures, upstream connections | | B — Auth | B1-B2 | Auth token issues, domain permissions | | C — Package | C1-C3 | npm issues, pip/PyPI issues, Maven issues | | D — Publishing | D1-D2 | Package publishing, version conflicts | | E — Domain | E1-E2 | Domain configuration, cross-account | | F — Integration | F1-F2 | CI/CD integration, build tools | | Z — Catch-All | Z1 | General CodeArtifact troubleshooting |
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: aws-samples
- Source: aws-samples/sample-ai-agent-skills
- License: MIT-0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.