Index of every page on this site: llms.txt
All skills
josavicentevw avatar

/documentation

@af72ad6
Run it yourself

Generate and maintain high-quality technical documentation including API docs, README files, architecture documentation, user guides, and code comments. Use when creating documentation, writing README files, documenting APIs, or when user mentions documentation, docs, or technical writing.

Use this Skill: https://skilld.dev/gh/josavicentevw/ai-agent-skills/documentation

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

examples03-adr-example.md

≈4.9k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Architecture Decision Record - Frontend Framework Selection

Complete ADR example documenting the decision to adopt React over Vue for a large-scale enterprise application.

📝 Prompt

Create an Architecture Decision Record (ADR) for choosing React over Vue:

Context:
- Enterprise SaaS application
- Team of 15 developers (varying experience levels)
- Need to build complex, data-heavy dashboards
- High performance requirements
- Long-term maintainability critical
- Integration with existing Java backend
- Mobile app planned for future

Include:
- Context and problem statement
- Decision drivers
- Considered options with pros/cons
- Decision outcome
- Consequences (positive and negative)
- Validation approach
- Links and references

📄 ADR Template

# ADR-[number]: [Title]

Date: [YYYY-MM-DD]
Status: [Proposed | Accepted | Deprecated | Superseded]
Deciders: [List of people involved]
Technical Story: [Link to ticket/issue]

## Context and Problem Statement

[Describe the context and problem]

## Decision Drivers

* [Driver 1]
* [Driver 2]
* [Driver 3]

## Considered Options

* [Option 1]
* [Option 2]
* [Option 3]

## Decision Outcome

Chosen option: "[option]", because [justification]

### Positive Consequences

* [Positive 1]
* [Positive 2]

### Negative Consequences

* [Negative 1]
* [Negative 2]

## Pros and Cons of the Options

### [Option 1]

* Good, because [argument a]
* Good, because [argument b]
* Bad, because [argument c]

### [Option 2]

* Good, because [argument a]
* Bad, because [argument b]

## Links

* [Link to relevant documentation]

✅ Complete ADR Example

ADR-003: Select React as Frontend Framework

Date: 2026-01-15
Status: Accepted
Deciders: Sarah Chen (CTO), Mike Rodriguez (Engineering Manager), Lisa Park (Tech Lead), Dev Team Representatives
Technical Story: JIRA-1234 - Frontend Framework Evaluation


Context and Problem Statement

Our enterprise SaaS platform currently uses a legacy jQuery-based frontend that has become increasingly difficult to maintain and extend. We need to rebuild the frontend using a modern JavaScript framework to support our product roadmap for the next 3-5 years.

The new frontend must support:

  • Complex, real-time data dashboards with 10,000+ data points
  • Rich interactive components (drag-and-drop, advanced filtering)
  • Multi-tenancy with role-based access control
  • Responsive design for desktop and tablet
  • Future mobile app development
  • Integration with our Java Spring Boot backend via REST APIs
  • Accessibility compliance (WCAG 2.1 AA)
  • Internationalization (i18n) for 12 languages

Team Context:

  • 15 frontend developers (5 senior, 7 mid-level, 3 junior)
  • Varied experience: 8 have React experience, 4 have Vue experience, 3 are new to modern frameworks
  • Average developer tenure: 2.5 years
  • Need to onboard 5 new developers in next 6 months

Technical Constraints:

  • Must integrate with existing authentication system (OAuth 2.0)
  • Need to support IE11 for first 6 months (legacy enterprise clients)
  • Performance budget: Initial load < 3 seconds, Time to Interactive < 5 seconds
  • Bundle size target: < 500KB (gzipped)

Decision Drivers

Critical Drivers

  1. Long-term maintainability - Framework must be stable and actively maintained for 5+ years
  2. Team productivity - Existing team experience and learning curve
  3. Performance - Must handle large datasets and complex UIs efficiently
  4. Ecosystem maturity - Rich library ecosystem for common requirements
  5. Talent acquisition - Ability to hire developers with framework experience
  6. Enterprise adoption - Proven track record in large-scale enterprise applications

Important Drivers

  1. TypeScript support - First-class TypeScript integration
  2. Testing ecosystem - Mature testing tools and practices
  3. Mobile development - Path to mobile app using similar technology
  4. Community support - Active community and abundant resources
  5. Build tooling - Modern, efficient build and development tools
  6. Component reusability - Ability to build and share component library

Nice-to-Have Drivers

  1. Learning resources - Quality tutorials and documentation
  2. Migration path - Ability to gradually migrate from jQuery
  3. Developer experience - Hot module replacement, debugging tools

Considered Options

Option 1: React 18

Modern library by Meta (Facebook) with large ecosystem

Option 2: Vue 3

Progressive framework with excellent documentation

Option 3: Angular 15

Full-featured framework by Google

Option 4: Svelte

Compiler-based framework with minimal runtime


Decision Outcome

Chosen option: React 18, because it best satisfies our critical decision drivers and provides the lowest risk path forward.

Key Justification Points

  1. Team Experience: 53% of our team already has React experience vs 27% for Vue
  2. Enterprise Adoption: Used by Meta, Netflix, Airbnb, Microsoft, and thousands of enterprises
  3. Ecosystem: Largest ecosystem with mature solutions for all our requirements
  4. Performance: Concurrent rendering and automatic batching in React 18 meet our performance needs
  5. Mobile: React Native provides clear path for future mobile development
  6. Hiring: 3x more React developers in local job market (based on LinkedIn data)
  7. Longevity: React has been stable for 10 years, strong signals of continued investment from Meta

Positive Consequences

Immediate Benefits:

  • Leverage existing team React knowledge for faster initial velocity
  • Large pool of pre-built component libraries (Material-UI, Ant Design, Chakra UI)
  • Abundant community resources and solutions to common problems
  • Strong TypeScript support and type definitions
  • Mature testing ecosystem (Jest, React Testing Library, Cypress)

Long-term Benefits:

  • Lower hiring friction - easier to find React developers
  • Clear migration path to React Native for mobile app
  • Active community ensures long-term support and updates
  • Rich ecosystem continues to grow and evolve
  • Proven at scale in enterprise environments

Technical Benefits:

  • React 18 concurrent features improve performance for heavy UIs
  • Server Components (future) enable better performance optimizations
  • Flexible architecture allows incremental adoption
  • Can coexist with jQuery during migration period
  • Strong performance profiling tools (React DevTools)

Negative Consequences

Technical Limitations:

  • React is a library, not a framework - need to make more architectural decisions
  • Need to choose and integrate additional libraries for:
    • Routing (React Router vs TanStack Router)
    • State management (Redux, Zustand, Jotai)
    • Forms (React Hook Form, Formik)
    • Data fetching (React Query, SWR)
  • More boilerplate code compared to Vue
  • JSX syntax has learning curve for developers new to React
  • Hooks can be complex for junior developers

Team Impact:

  • 7 developers need training (4 Vue devs + 3 new to frameworks)
  • Estimated 2-4 weeks ramp-up time for Vue developers
  • Estimated 6-8 weeks ramp-up time for developers new to modern frameworks
  • Need to establish team conventions and best practices

Ecosystem Complexity:

  • Too many choices can lead to analysis paralysis
  • Need to carefully select and standardize on specific libraries
  • Potential for inconsistent patterns across codebase
  • Must actively prevent over-engineering

Mitigation Strategies

  1. Reduce Decision Fatigue:

    • Create opinionated starter template with pre-selected libraries
    • Document architectural decisions and patterns
    • Establish code review guidelines
  2. Accelerate Learning:

    • Provide React training for all developers (1-week intensive course)
    • Create internal knowledge base with patterns and examples
    • Pair junior developers with React-experienced seniors
    • Weekly knowledge-sharing sessions for first 3 months
  3. Maintain Code Quality:

    • Implement ESLint rules for React best practices
    • Set up automated testing requirements (80% coverage minimum)
    • Conduct architecture reviews for major features
    • Regular refactoring sprints to address technical debt

Pros and Cons of the Options

React 18

Pros:

  • ✅ Largest ecosystem and community (200k+ npm packages)
  • ✅ Strong corporate backing from Meta
  • ✅ Excellent performance with concurrent rendering
  • ✅ React Native for future mobile development
  • ✅ 53% of team already experienced with React
  • ✅ Most active job market (3:1 ratio vs Vue locally)
  • ✅ Mature testing ecosystem
  • ✅ Flexible and unopinionated architecture
  • ✅ Strong TypeScript support
  • ✅ Server Components and streaming SSR (future benefits)
  • ✅ Proven at enterprise scale
  • ✅ Extensive learning resources

Cons:

  • ❌ Not a full framework - requires more decisions
  • ❌ More boilerplate compared to Vue
  • ❌ JSX learning curve
  • ❌ Hooks can be complex for beginners
  • ❌ Need to integrate multiple libraries
  • ❌ Frequent ecosystem changes require staying current
  • ❌ Larger bundle size than Vue/Svelte (though acceptable for our needs)

Decision Alignment:

  • ✅ Critical: Excellent on all 6 critical drivers
  • ✅ Important: Strong on all 6 important drivers
  • ✅ Nice-to-have: Good on all 3

Vue 3 (Composition API)

Pros:

  • ✅ Excellent documentation and learning curve
  • ✅ More intuitive template syntax
  • ✅ Built-in routing and state management (official solutions)
  • ✅ Smaller bundle size
  • ✅ Good TypeScript support in Vue 3
  • ✅ 27% of team has Vue experience
  • ✅ Progressive adoption model
  • ✅ Single-file components are intuitive
  • ✅ Strong performance

Cons:

  • ❌ Smaller ecosystem compared to React
  • ❌ Less corporate backing (community-driven)
  • ❌ Smaller talent pool locally
  • ❌ Less adoption in large enterprises
  • ❌ Mobile story (Vue Native/NativeScript) less mature than React Native
  • ❌ Fewer pre-built enterprise component libraries
  • ❌ Less Stack Overflow content and solutions
  • ❌ Options API vs Composition API confusion in ecosystem

Decision Alignment:

  • ⚠️ Critical: Weaker on talent acquisition and enterprise adoption
  • ✅ Important: Good on most important drivers
  • ✅ Nice-to-have: Excellent on all 3

Angular 15

Pros:

  • ✅ Full-featured framework (batteries included)
  • ✅ Strong corporate backing from Google
  • ✅ Excellent TypeScript support (built with TypeScript)
  • ✅ Opinionated architecture reduces decisions
  • ✅ Built-in dependency injection
  • ✅ Angular Material component library
  • ✅ Proven in large enterprise applications
  • ✅ Strong CLI and tooling

Cons:

  • ❌ Steeper learning curve (most complex option)
  • ❌ Only 2 team members have Angular experience
  • ❌ Verbose syntax and boilerplate
  • ❌ Larger bundle sizes
  • ❌ Slower development velocity for simple features
  • ❌ Frequent breaking changes between versions historically
  • ❌ Mobile story (Ionic/NativeScript) less compelling
  • ❌ Declining popularity trend
  • ❌ Smaller local talent pool than React

Decision Alignment:

  • ❌ Critical: Weak on team experience and talent acquisition
  • ⚠️ Important: Mixed results on important drivers
  • ❌ Nice-to-have: Poor learning curve

Svelte

Pros:

  • ✅ Minimal bundle size (compiles to vanilla JS)
  • ✅ Excellent performance
  • ✅ Intuitive syntax and low learning curve
  • ✅ Less boilerplate code
  • ✅ Built-in reactivity
  • ✅ Growing popularity

Cons:

  • ❌ Smaller ecosystem (immature for enterprise)
  • ❌ No team members have Svelte experience
  • ❌ Limited enterprise adoption
  • ❌ Smaller talent pool (very limited locally)
  • ❌ Fewer component libraries
  • ❌ Less mature tooling
  • ❌ No clear mobile development path
  • ❌ Less Stack Overflow content
  • ❌ Uncertain long-term viability

Decision Alignment:

  • ❌ Critical: Fails on most critical drivers (ecosystem, talent, enterprise adoption)
  • ❌ Important: Weak on most important drivers
  • ✅ Nice-to-have: Good on learning resources and DX

Validation and Success Metrics

Phase 1: Proof of Concept (Weeks 1-4)

Goal: Validate technical feasibility

Metrics:

  • Build 3 representative dashboard components
  • Achieve < 3s initial load time with 5,000 data points
  • Implement authentication integration
  • Developer feedback survey: > 8/10 satisfaction

Validation Criteria:

  • Performance targets met
  • Team confirms technical viability
  • No blockers identified

Phase 2: Pilot Feature (Months 2-3)

Goal: Build production feature with React

Metrics:

  • Ship "Advanced Reporting" module to production
  • Achieve 80% test coverage
  • < 5 critical bugs in first month
  • Development velocity within 10% of estimates

Validation Criteria:

  • Feature meets quality standards
  • Team velocity is acceptable
  • User feedback is positive

Phase 3: Full Migration (Months 4-12)

Goal: Complete frontend rewrite

Metrics:

  • Migrate all modules to React
  • Maintain < 3% production bug rate
  • Developer productivity improves by 20% (velocity increase)
  • User satisfaction scores increase by 15%
  • Onboard 5 new developers successfully

Success Criteria:

  • All features migrated and stable
  • Team is proficient and productive
  • Users report improved experience

Ongoing Monitoring

Technical Health:

  • Bundle size remains < 500KB
  • Lighthouse performance score > 90
  • 80% test coverage maintained
  • 0 critical accessibility violations

Team Health:

  • Developer satisfaction > 8/10
  • Low turnover rate
  • New developer onboarding < 4 weeks

Business Impact:

  • Feature delivery velocity improved
  • Bug rate reduced
  • User satisfaction improved
  • Mobile app development proceeds on schedule

Implementation Plan

Immediate Actions (Week 1)

  1. ✅ Document decision and communicate to organization
  2. ✅ Create React project template with selected libraries
  3. ✅ Set up development environment and CI/CD
  4. ✅ Schedule team training sessions

Short-term (Months 1-2)

  1. Conduct 1-week React intensive training for all developers
  2. Build component library foundation
  3. Develop coding standards and best practices documentation
  4. Complete proof of concept
  5. Begin pilot feature development

Medium-term (Months 3-6)

  1. Complete pilot feature and deploy to production
  2. Gather feedback and iterate on patterns
  3. Begin parallel migration of core modules
  4. Establish testing standards and achieve 80% coverage
  5. Onboard new developers using established processes

Long-term (Months 7-12)

  1. Complete migration of all features
  2. Deprecate and remove jQuery codebase
  3. Optimize performance and bundle size
  4. Build mobile app prototype with React Native
  5. Measure success metrics and document lessons learned

Re-evaluation Triggers

This decision should be reconsidered if:

  1. React ecosystem instability: Meta significantly reduces investment or React development slows
  2. Team composition changes: > 60% of team becomes Vue experts through hiring/transfers
  3. Performance issues: Unable to meet performance targets despite optimization efforts
  4. Mobile strategy changes: Company decides not to pursue mobile app, reducing React Native benefit
  5. Major technology shift: Web Components or other technology becomes dominant standard
  6. Competitive disadvantage: Vue or other framework provides significant business advantage

Review Schedule: Annual review in Q1 of each year


Links and References

Official Documentation

Research and Analysis

Related ADRs

  • ADR-001: Migrate from jQuery to modern framework
  • ADR-002: Adopt TypeScript for frontend development
  • ADR-004: Select state management solution (pending)

Proof of Concept

Training Resources

Component Libraries Evaluated

  • Material-UI (MUI)
  • Ant Design
  • Chakra UI
  • React Bootstrap

Participants and Sign-off

Name Role Decision Date
Sarah Chen CTO Approved 2026-01-15
Mike Rodriguez Engineering Manager Approved 2026-01-15
Lisa Park Tech Lead Approved 2026-01-15
Frontend Team Developers Consulted 2026-01-10
Product Team Product Managers Informed 2026-01-16

Revision History

Date Version Changes Author
2026-01-15 1.0 Initial decision Lisa Park
2026-01-20 1.1 Added validation metrics Mike Rodriguez

💡 Best Practices for Writing ADRs

1. Be Specific and Concrete

  • Include actual data, not just opinions
  • Reference specific versions of technologies
  • Provide measurable criteria

2. Document Context Thoroughly

  • Future readers need to understand the situation
  • Include constraints that influenced the decision
  • Capture team composition and skills

3. Be Honest About Trade-offs

  • Every decision has negatives - document them
  • Include mitigation strategies
  • Show you considered alternatives seriously

4. Keep It Living

  • Update ADRs as situations change
  • Mark as deprecated when superseded
  • Reference from other ADRs

5. Make It Actionable

  • Include clear implementation plan
  • Define success metrics
  • Specify re-evaluation triggers

6. Involve the Right People

  • Get input from affected teams
  • Document who made the decision
  • Communicate broadly after decision

7. Use Templates Consistently

  • Standardize ADR format across organization
  • Makes them easier to write and read
  • Facilitates searching and comparison

8. Link to Evidence

  • POC repositories
  • Benchmark results
  • Meeting notes
  • Research documents

🎯 When to Write an ADR

Write an ADR for decisions that:

  • Have long-term impact (> 1 year)
  • Affect multiple teams or projects
  • Are difficult or expensive to reverse
  • Involve significant trade-offs
  • Set architectural direction
  • Require stakeholder alignment

Examples:

  • ✅ Choosing a frontend framework
  • ✅ Selecting a database technology
  • ✅ Adopting microservices architecture
  • ✅ Picking a cloud provider
  • ❌ Formatting code with Prettier (too tactical)
  • ❌ Using a specific NPM package (too small)

📚 Additional ADR Examples

Quick Reference: Other Common ADR Topics

  1. Database Selection: PostgreSQL vs MongoDB vs DynamoDB
  2. Deployment Strategy: Kubernetes vs serverless
  3. Authentication: Build vs buy (Auth0, Okta)
  4. API Design: REST vs GraphQL vs gRPC
  5. Monorepo: Single repo vs multiple repos
  6. Testing Strategy: Unit vs integration vs E2E ratios
  7. Monitoring: Datadog vs New Relic vs open-source
  8. CI/CD Platform: Jenkins vs GitHub Actions vs GitLab CI

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    The skill provides comprehensive templates and instructions for technical documentation. It includes examples for READMEs, API docs, and architecture records using industry best practices. No malicious code, exfiltration patterns, or hardcoded secrets were detected.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at af72ad6. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 11 months ago

README badge

README badge for josavicentevw/ai-agent-skills/documentation