agentleFS
crgarcia12crgarcia12/Liliput/.github/skills/cloud-native-assessment/SKILL.md

cloud-native-assessment

Skill4 starsChanged 4 months agoISCView on GitHub

Assess application readiness for cloud-native deployment. Evaluate against 12-factor app principles, containerization readiness, and Azure service fit. Adaptive depth.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Dockerfile exists?: If yes, review quality. If no, assess feasibility.

    line 48
  2. Distinctive:

    Run the 12-factor compliance check and containerization readiness assessment.

    line 87
  3. Distinctive:

    Escalation trigger: If 4+ factors are non-compliant (❌), escalate to Level 2.

    line 89
  4. Distinctive:

    Escalation trigger: If architecture requires fundamental restructuring (e.g., monolith decomposition), note this but do not attempt service …

    line 101
  5. Distinctive:

    Database selection: When current database doesn't map cleanly to one Azure service

    line 152
  6. Distinctive:

    Messaging architecture: When the app needs async communication and multiple Azure options fit

    line 153
  7. Distinctive:

    Identity provider: When authentication approach needs to change for cloud deployment

    line 154
  8. Distinctive:

    State management: When in-process state must be externalized and multiple patterns are viable

    line 155
  9. Distinctive:

    Not every app needs to be fully 12-factor compliant.

    line 160
  10. Distinctive:

    If the app is already containerized, focus assessment on Azure service fit and operational readiness.

    line 162
  11. Distinctive:

    BLOCKING: If any item is unchecked, the skill has NOT completed successfully.

    line 176

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Role

You are a cloud-native readiness evaluator. Your job is to assess how well an existing application aligns with cloud-native principles and identify gaps that must be addressed before deployment. You produce actionable scorecards and concrete Azure architecture recommendations.

You are activated when the user selects the cloud-native path. You do not run automatically.

Inputs

  • specs/docs/technology/* — Technology inventory from extraction
  • specs/docs/architecture/* — Architecture documentation from extraction
  • specs/docs/infrastructure/* — Infrastructure documentation (if available)
  • specs/docs/dependencies/* — Dependency manifests
  • Source code access for configuration and pattern analysis

Assessment Dimensions

1. Twelve-Factor App Compliance

Evaluate each factor with a compliance rating: ✅ Compliant, ⚠️ Partial, ❌ Non-compliant, ➖ Not applicable.

FactorWhat to Check
I. CodebaseOne codebase tracked in VCS, many deploys. Single repo or well-structured monorepo?
II. DependenciesExplicitly declared and isolated. Lock files present? No system-level assumptions?
III. ConfigStored in environment variables, not code. Hardcoded connection strings? Config files with secrets?
IV. Backing ServicesTreated as attached resources. Can swap DB/cache/queue without code changes?
V. Build, Release, RunStrictly separate stages. Reproducible builds? Immutable releases?
VI. ProcessesStateless and share-nothing. Session state in process memory? Local file dependencies?
VII. Port BindingSelf-contained via port binding. Embedded server or external web server dependency?
VIII. ConcurrencyScale out via process model. Thread-safe? Horizontally scalable?
IX. DisposabilityFast startup, graceful shutdown. Signal handling? Connection draining?
X. Dev/Prod ParityKeep environments similar. Docker for local dev? Same backing services?
XI. LogsTreat as event streams. stdout/stderr or file-based? Structured logging?
XII. Admin ProcessesRun as one-off processes. Database migrations automated? Admin tasks scripted?

2. Containerization Readiness

Assess readiness for container-based deployment:

  • Dockerfile exists? If yes, review quality. If no, assess feasibility.
  • Stateless processes? Does the app store state locally (files, in-memory sessions)?
  • External state? Are databases, caches, and file storage properly externalized?
  • Health checks? Does the app expose liveness and readiness endpoints?
  • Configuration injection? Can all config be provided via environment variables or mounted files?
  • Startup time? How fast does the app start? (Relevant for scaling and recovery.)
  • Resource bounds? Are memory and CPU requirements known? Any unbounded resource usage?
  • Multi-stage build? Can the build be optimized with multi-stage Docker builds?

3. Azure Service Mapping

Map each application component to appropriate Azure services:

Component TypeAzure OptionsFit Assessment
Web frontendStatic Web Apps, App Service, Container Apps
API backendContainer Apps, App Service, AKS, Functions
Background workersContainer Apps jobs, Functions, AKS
DatabaseAzure SQL, Cosmos DB, PostgreSQL Flexible, MySQL Flexible
CacheAzure Cache for Redis, Azure Managed Redis
File storageBlob Storage, Azure Files
Message queueService Bus, Event Hubs, Storage Queues
SearchAzure AI Search
IdentityEntra ID, Azure AD B2C

For each mapping, note: why this service fits, what changes are needed, and cost tier estimate.

4. Observability Readiness

  • Structured logging? JSON logs with correlation IDs, or unstructured text?
  • Metrics emission? Application-level metrics exposed (Prometheus, StatsD, custom)?
  • Distributed tracing? OpenTelemetry or framework-specific tracing instrumented?
  • Error tracking? Centralized error reporting configured?
  • Alerting hooks? Health check endpoints for monitoring integration?

Adaptive Depth

Level 1 — Twelve-Factor Checklist

Run the 12-factor compliance check and containerization readiness assessment. This provides a quick scorecard of cloud readiness.

Escalation trigger: If 4+ factors are non-compliant (❌), escalate to Level 2.

Level 2 — Detailed Azure Architecture

Triggered by significant 12-factor gaps:

  • Produce a full Azure service mapping with justifications
  • Identify required code changes for each non-compliant factor
  • Design target architecture diagram (text-based)
  • Estimate migration effort per component
  • Evaluate observability gaps and recommend instrumentation

Escalation trigger: If architecture requires fundamental restructuring (e.g., monolith decomposition), note this but do not attempt service boundary design — that belongs in a separate architecture phase.

Escalation Rules

12-factor non-compliant factors >= 4   → auto-escalate to Level 2
User can force any level with:         "run cloud-native assessment at level 2"
Monolith decomposition detected        → flag for architecture phase, do not decompose here

Output Format

Generate specs/assessment/cloud-native.md with this structure:

# Cloud-Native Assessment

## Summary
- Assessment depth: Level [1/2]
- 12-Factor score: [N]/12 compliant, [N] partial, [N] non-compliant
- Containerization readiness: [Ready/Needs Work/Major Gaps]
- Estimated migration effort: [T-shirt size]

## Twelve-Factor Scorecard
| Factor | Status | Finding | Required Change | Effort |
|--------|--------|---------|-----------------|--------|

## Containerization Readiness
| Check | Status | Notes |
|-------|--------|-------|

## Azure Service Mapping (if Level 2)
| Component | Current | Recommended Azure Service | Rationale | Changes Needed |
|-----------|---------|---------------------------|-----------|----------------|

## Observability Gaps
| Dimension | Current State | Target State | Effort |
|-----------|---------------|-------------|--------|

## Migration Sequence (if Level 2)
Suggested order for addressing gaps, respecting dependencies.

## Decision Points
Items requiring user decision — linked to generated ADRs.

ADR Triggers

Generate ADRs via the adr skill when the assessment reveals service selection decisions:

  • Compute platform: Container Apps vs AKS vs App Service — when multiple options are viable
  • Database selection: When current database doesn't map cleanly to one Azure service
  • Messaging architecture: When the app needs async communication and multiple Azure options fit
  • Identity provider: When authentication approach needs to change for cloud deployment
  • State management: When in-process state must be externalized and multiple patterns are viable

Important Notes

  • Cloud-native is a spectrum, not a binary. Rate readiness, don't gatekeep.
  • Not every app needs to be fully 12-factor compliant. Note which factors matter most for the specific deployment target.
  • Azure service recommendations should consider cost. Don't recommend AKS when Container Apps suffices.
  • If the app is already containerized, focus assessment on Azure service fit and operational readiness.
  • Monolith decomposition is out of scope. Flag it as a finding, but decomposition strategy belongs in architecture planning.

Mandatory Completion Checklist

The orchestrator MUST verify ALL of the following before marking cloud-native-assessment as complete:

  • specs/assessment/cloud-native.md exists with: 12-factor compliance scorecard, containerization readiness, and Azure service fit analysis
  • Each 12-factor principle is rated (compliant / partially compliant / non-compliant) with evidence
  • Azure service recommendations are provided with cost tier awareness (e.g., Container Apps vs AKS)
  • Configuration externalization gaps are identified (hardcoded values, file-based config)
  • At least one ADR exists in specs/adrs/ for significant platform/service decisions
  • State JSON and audit log are updated

BLOCKING: If any item is unchecked, the skill has NOT completed successfully. The orchestrator must loop back and complete the missing items before advancing to planning.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.