third-party-dependency-evaluation
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
How to evaluate and propose third-party dependencies for human approval. Consult when SA, BE Dev, or FE Dev is about to introduce a new third-party dependency that hasn't been approved in a prior ADR for this project.
In this repository61 other files it gives its agents.
- rules/CLAUDE.mdCLAUDE.md
- acceptance-criteria-authorSkill
- adr-authorSkill
- api-contract-authorSkill
- backend-logging-traceabilitySkill
- ba-design-completenessSkill
- ba-ingestion-pipelineSkill
- ba-iteration-planningSkill
- ba-mode-augmentSkill
- ba-mode-external-sourceSkill
- ba-mode-multi-docSkill
- ba-mode-requirements-folderSkill
- ba-mode-reverse-engineerSkill
- ba-mode-single-docSkill
- ba-post-implementationSkill
- be-framework-coding-standardSkill
- c4-authorSkill
- codebase-inventorySkill
- data-lifecycle-contractsSkill
- design-system-authorSkill
- docker-deploymentSkill
- external-integration-adequacySkill
- fe-framework-coding-standardSkill
- figma-canvas-layoutSkill
- figma-design-handoffSkill
- figma-requirements-extractionSkill
- figma-srs-mappingSkill
- flutter-implementationSkill
- flutter-performanceSkill
- flutter-platform-integrationSkill
- format-boundary-contractsSkill
- git-commitSkill
- incident-debuggingSkill
- intent-archaeologySkill
- kubernetes-deploymentSkill
- local-deploymentSkill
- migration-safetySkill
- observability-readinessSkill
- playwright-authorSkill
- qa-author-by-taskSkill
- qa-author-by-usSkill
- qa-execution-runnerSkill
- react-native-implementationSkill
- react-native-performanceSkill
- react-native-platform-integrationSkill
- release-readinessSkill
- rollback-readinessSkill
- sa-architecture-designSkill
- sa-brownfield-extractSkill
- secrets-config-auditSkill
- security-compliance-checklistSkill
- solution-defaultsSkill
- ssh-remote-operationsSkill
- staging-deploymentSkill
- task-sizingSkill
- <kebab-case-name-matching-folder>Skill
- test-case-authorSkill
- ui-test-executionSkill
- ui-ux-page-scopingSkill
- user-story-authorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
If in doubt, ask via NEEDS_CONTEXT.
- Very specific: line 49
When you're deviating, the proposal must cite the default explicitly: "Default is X per .claude/skills/solution-defaults/.
- Distinctive: line 52
Determine whether a dependency is genuinely needed: Document the requirement that drives the need (SRS § Non-functional, integration scope, …
- Distinctive: line 54
Generate 2–4 options: Always include a "do without / build in-house" option if technically feasible, even when it looks unattractive — the …
- Very specific: line 58
Resume work after the user picks: Write the architecture changes and an ADR recording the choice.
- Very specific: line 62
When the dependency is complex enough to warrant a written proposal (managed service, payment provider, identity provider), write a …
- Distinctive: line 82
After the human picks, write the ADR.
- Distinctive: line 91
When a subsequent ADR depends on the same vendor, cite the prior ADR rather than re-approving:
- Very specific: line 99
Never include a new third-party dependency in docs/architecture.md, docs/decisions/, or implementation code without prior ADR + human …
- Very specific: line 100
Never approve your own dependency choice.
- Distinctive: line 101
Never present a single option as a faux choice.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Third-Party Dependency Evaluation
When to use
You are SA producing architecture, or a Dev about to add a new library / managed service / external API. You are about to introduce a dependency that is third-party and has not been approved in a prior ADR for this project. Per CLAUDE.md §10 hard rule, you must NOT include the dependency in your output (architecture, code, contracts) without explicit human approval first.
This skill defines: what counts as third-party, what's exempt, how to propose alternatives, what dimensions to weigh per category, and what the NEEDS_CONTEXT prompt should look like for the Orchestrator to relay to the Designated Dependency Approver.
What counts as "third-party" (approval required)
A dependency is third-party when both are true:
- It is not in-org (the central identity provider, storefront, launcher, etc. — your organization's own services are pre-approved at the org level).
- It has not been approved in a prior ADR for this project. Cite the prior ADR (
Refs: ADR-NNNN approves use of Vendor X) and no new approval is needed.
This includes:
- Paid SaaS / hosted services: Stripe, Auth0, Sentry, Datadog, Cloudflare paid tier, etc.
- Managed cloud services creating lock-in: DynamoDB, Bedrock, Cloud Run, Cloud Pub/Sub, Redis Cloud, MongoDB Atlas, etc.
- External partner APIs: game publishers, payment providers, identity providers, KYC providers
- OSS frameworks and libraries: npm/PyPI/Maven/Go-module packages — yes, including these. Supply-chain risk, license review, and maintenance-status check are real engineering risks
- Self-hosted vendor tools (first-time inclusion only): PostgreSQL, Redis, RabbitMQ, etc. — first time adopted on a project needs approval; subsequent ADRs cite the original
What is exempt (no approval needed)
- Standards: HTTP, REST, JSON, SQL, gRPC, OpenAPI, OAuth, JWT (the specs, not specific libraries implementing them)
- Languages and their standard libraries: Node stdlib, Go stdlib, Python stdlib, Java stdlib, etc. (third-party packages from npm/PyPI/etc. are NOT exempt — they are OSS dependencies)
- Generic platform: Linux, POSIX, Docker, Kubernetes runtime (specific managed K8s like GKE/EKS is NOT exempt — that's a cloud-managed service)
- In-org services: the central identity provider, storefront, launcher, promotion engine, analytics, etc.
If in doubt, ask via NEEDS_CONTEXT. "It feels like it should be exempt" is not exempt.
Procedure
Step 0 — Check .claude/skills/solution-defaults/ first. Before going through the evaluation below, check if the dependency category has an org-level default. If yes and you'll use the default, no NEEDS_CONTEXT is needed — write an ADR citing .claude/skills/solution-defaults/ as the Approver source. Only run the full evaluation below when:
- The category has no default in
solution-defaults, OR - The category has a default but the row's
Deviate whencondition applies to your case.
When you're deviating, the proposal must cite the default explicitly: "Default is X per .claude/skills/solution-defaults/; we deviate because Y."
- Determine whether a dependency is genuinely needed. Document the requirement that drives the need (SRS § Non-functional, integration scope, etc.). Often "build in-house" or "do without" is a viable option worth presenting.
- Check for prior approval. Scan
docs/decisions/for an ADR approving this vendor for this project. If found, cite it; no new approval needed — proceed with the existing approval. - Generate 2–4 options. Always include a "do without / build in-house" option if technically feasible, even when it looks unattractive — the trade-off shape matters and reviewers need to see it. Use
references/options-template.md. - Evaluate each option per the dimensions in
references/dimensions.md. Use the dimensions relevant to the dependency's category (paid SaaS / OSS / managed cloud / external API / self-hosted vendor tool). - Halt and return
NEEDS_CONTEXTto the Orchestrator with the multi-choice prompt (format below). Recommend one option with confidence and what-would-change-my-mind. - The Orchestrator relays to the Designated Dependency Approver (named in SRS header per CLAUDE.md §2). The Approver picks.
- Resume work after the user picks. Write the architecture changes and an ADR recording the choice. The ADR's
Approver:field carries the human's name;Approval-Date:is the ISO-8601 timestamp.
NEEDS_CONTEXT prompt format
When the dependency is complex enough to warrant a written proposal (managed service, payment provider, identity provider), write a research-report-style doc at docs/research-reports/<dependency-slug>.md and reference it in the prompt:
Status: NEEDS_CONTEXT
Reason: New third-party dependency required: <short description>
Question: <natural-language form, e.g., "Which approach for real-time spectator pub/sub?">
Options:
[a] <Vendor X> — <one-line trade-off summary>
[b] <Vendor Y> — <one-line trade-off summary>
[c] <Self-host / in-house> — <one-line trade-off summary>
Recommended: a
Confidence: medium
Approver: <Designated Dependency Approver from SRS header>
Detailed proposal: docs/research-reports/<slug>.md (when complex)For trivial decisions (Day.js vs date-fns: both MIT, both well-maintained, both small bundle), the inline multi-choice is enough — no separate doc needed.
Approver and ADR
After the human picks, write the ADR. The ADR template gains two fields:
Approver: <human name, the Designated Dependency Approver>
Approval-Date: <ISO-8601>These are required for any ADR that introduces a third-party dependency. They are absent (and need not be present) for ADRs that document non-dependency choices (e.g., "use event sourcing for the audit log").
When a subsequent ADR depends on the same vendor, cite the prior ADR rather than re-approving:
Refs: ADR-0007 (approves Stripe for payments)Hard Rules
- Never include a new third-party dependency in
docs/architecture.md,docs/decisions/, or implementation code without prior ADR + human approval. Halt and request viaNEEDS_CONTEXT. - Never approve your own dependency choice. The
Approverfield is a human's name, set by the user through the Orchestrator's clarification flow. - Never present a single option as a faux choice. Always offer at least 2 — including "build in-house" or "do without" when technically feasible.
- Cite the dimensions you weighed in the proposal. "Trust me, Stripe is the right call" is not an evaluation.
- Once approved via ADR, the approval persists for the project. Re-use without re-approving. Re-approve only if the dependency itself changes materially (vendor sold to private equity, license changed, security incident, abandoned maintenance, etc.).
- OSS dependencies count. First-time inclusion of any OSS library needs approval — even MIT-licensed, well-maintained ones. The discipline of always-asking-once catches the next "we accidentally adopted an abandoned-since-2019 package" before it ships.
References
references/dimensions.md— per-category evaluation dimensions (paid SaaS, OSS, managed cloud, external API, self-hosted vendor)references/options-template.md— structured option-listing template.claude/skills/solution-defaults/SKILL.md— check this BEFORE running the evaluation; defaults are org-level pre-approvals and skip the per-project Approver step- CLAUDE.md §10 — hard rule gating inclusion on ADR + Approver
.claude/skills/adr-author/— ADR format including the Approver field.claude/skills/security-compliance-checklist/— additional dimensions when the dependency touches auth, payments, PII, account data.claude/agents/_non-sdlc/oq-resolver.md— if the dependency choice surfaced as a SRS Open Question, OQ resolver can also generate the option set
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

