AgentSkillsCN

atlas-development

构建生产就绪应用的开发哲学。ATLAS 是一套五步框架(架构、追踪、链接、组装、压力测试),可有效预防常见的“氛围编码”失误。在开发功能、MVP,或完整应用时,请参考此技能。

SKILL.md
--- frontmatter
name: atlas-development
description: Development philosophy for building production-ready applications. ATLAS is a 5-step framework (Architect, Trace, Link, Assemble, Stress-test) that prevents common "vibe coding" failures. Reference this skill when developing features, MVPs, or full applications.

ATLAS Development Framework

Build production-ready applications, not demos. ATLAS prevents the failures that plague AI-assisted development: building before designing, skipping validation, no data modeling, no testing.

When to Use ATLAS

Use full ATLAS for:

  • New applications or MVPs
  • Features with external integrations (APIs, databases, auth)
  • Features requiring new data models or schema changes
  • Complex multi-component features

Use partial ATLAS (Link + Assemble + Stress-test) for:

  • Adding features to existing codebases
  • Features using existing patterns and integrations
  • Moderate complexity changes

Skip ATLAS for:

  • Bug fixes (just fix and test)
  • One-line changes
  • Documentation updates
  • Refactoring without behavior changes
  • UI tweaks with no new logic

ATLAS is a thinking philosophy, not a checklist to follow blindly. Apply the steps that add value to your specific task.

The ATLAS Process

StepPhaseWhat You Do
AArchitectDefine problem, users, success metrics
TTraceData schema, integrations map, stack proposal
LLinkValidate ALL connections before building
AAssembleBuild with layered architecture
SStress-testTest functionality, error handling

A — Architect

Purpose: Know exactly what you're building before touching code.

Questions to Answer

  1. What problem does this solve?

    • One sentence. If you can't say it simply, you don't understand it.
  2. Who is this for?

    • Be specific: "Me" / "Sales team" / "YouTube subscribers"
    • Not "everyone"
  3. What does success look like?

    • Measurable outcome: "I can see my metrics in one dashboard"
    • Not vague: "It works"
  4. What are the constraints?

    • Budget (API costs)
    • Time (MVP vs full build)
    • Technical (must use Supabase, must integrate with X)

Output

markdown
## App Brief
- **Problem:** [One sentence]
- **User:** [Who specifically]
- **Success:** [Measurable outcome]
- **Constraints:** [List]

T — Trace

Purpose: Design before building. This is where most "vibe coders" fail.

Data Schema

Define your source of truth BEFORE building:

code
Tables:
- users (id, email, name, created_at)
- saved_items (id, user_id, title, content, source, created_at)
- metrics (id, user_id, platform, value, date)

Relationships:
- users 1:N saved_items
- users 1:N metrics

Integrations Map

List every external connection:

ServicePurposeAuth TypeAvailable?
SupabaseDatabaseAPI KeyYes
YouTube APIMetricsOAuthVia MCP
NotionSave itemsAPI KeyYes

Technology Stack Proposal

Based on requirements, propose:

  • Database (Supabase, Firebase, Postgres, etc.)
  • Backend (Supabase Functions, n8n, custom API)
  • Frontend (React, Next.js, vanilla, etc.)
  • Any other services needed

User approves or overrides before proceeding.

Edge Cases

Document what could break:

  • API rate limits (YouTube: 10,000 quota/day)
  • Auth token expiry
  • Database connection timeout
  • Invalid user input
  • MCP server unavailability

Output

  • Data schema diagram or markdown table
  • Technology stack (approved by user)
  • Integrations checklist
  • Edge cases documented

L — Link

Purpose: Validate all connections BEFORE building. Nothing worse than building for 2 hours then discovering the API doesn't work.

Connection Validation Checklist

code
[ ] Database connection tested
[ ] All API keys verified
[ ] MCP servers responding
[ ] OAuth flows working
[ ] Environment variables set
[ ] Rate limits understood

How to Test

Database:

  • Test via MCP or direct API call
  • Should return empty array or existing data, not error

APIs:

  • Make a simple GET request
  • Verify response format matches expectations

MCPs:

  • List available tools
  • Test one simple operation

Output

All green checkmarks. If anything fails, fix it before proceeding.


A — Assemble

Purpose: Build the actual application with proper architecture.

Architecture Layers

Follow separation of concerns:

  1. Frontend (what user sees)

    • UI components
    • User interactions
    • Display logic
  2. Backend (what makes it work)

    • API routes
    • Business logic
    • Data validation
  3. Database (source of truth)

    • Schema implementation
    • Migrations
    • Indexes

Build Order

  1. Database schema first
  2. Backend API routes second
  3. Frontend UI last

This order prevents building UI for data structures that don't exist.

Component Strategy

  • Use existing component libraries (don't reinvent buttons)
  • Keep components small and focused
  • Document any non-obvious logic

Output

Working application with:

  • Functional database
  • API endpoints responding
  • UI rendering correctly

S — Stress-test

Purpose: Test before shipping. This is the step most "vibe coding" tutorials skip entirely.

Functional Testing

Does it actually work?

code
[ ] All buttons do what they should
[ ] Data saves to database
[ ] Data retrieves correctly
[ ] Navigation works
[ ] Error states handled

Integration Testing

Do the connections hold?

code
[ ] API calls succeed
[ ] MCP operations work
[ ] Auth persists across sessions
[ ] Rate limits not exceeded

Edge Case Testing

What breaks?

code
[ ] Invalid input handled gracefully
[ ] Empty states display correctly
[ ] Network errors show feedback
[ ] Long text doesn't break layout

User Acceptance

Is this what was wanted?

code
[ ] Solves the original problem
[ ] User can accomplish their goal
[ ] No major friction points

Output

Test report with:

  • What passed
  • What failed
  • What needs fixing

Anti-Patterns (What NOT to Do)

These are the mistakes that cause projects to fail:

  1. Building before designing — You end up rewriting everything
  2. Skipping connection validation — Hours wasted on broken integrations
  3. No data modeling — Schema changes cascade into UI rewrites
  4. No testing — Ship broken code, lose trust
  5. Hardcoding everything — No flexibility for changes

Quick Reference: When to Apply Each Step

ContextApply
PRD creationA (Architect) — define problem, users, success
MVP planningA + T — architecture + data schema + integrations
Feature developmentT + L + A — trace dependencies, link/validate, assemble
Bug fixesL + A + S — validate context, fix, test

Extended Framework (Production Builds)

For production builds, add:

  • V — Validate: Security/input sanitization, edge cases, unit tests
  • M — Monitor: Logging, observability, alerts

These steps are optional for MVPs but required for production deployments.