cortex-agents 1.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/.opencode/agents/build.md +34 -3
  2. package/.opencode/agents/debug.md +24 -2
  3. package/.opencode/agents/devops.md +1 -2
  4. package/.opencode/agents/fullstack.md +1 -2
  5. package/.opencode/agents/plan.md +5 -3
  6. package/.opencode/agents/security.md +1 -2
  7. package/.opencode/agents/testing.md +1 -2
  8. package/.opencode/skills/api-design/SKILL.md +348 -0
  9. package/.opencode/skills/architecture-patterns/SKILL.md +323 -0
  10. package/.opencode/skills/backend-development/SKILL.md +329 -0
  11. package/.opencode/skills/code-quality/SKILL.md +12 -0
  12. package/.opencode/skills/database-design/SKILL.md +347 -0
  13. package/.opencode/skills/deployment-automation/SKILL.md +7 -0
  14. package/.opencode/skills/design-patterns/SKILL.md +295 -0
  15. package/.opencode/skills/desktop-development/SKILL.md +295 -0
  16. package/.opencode/skills/frontend-development/SKILL.md +210 -0
  17. package/.opencode/skills/mobile-development/SKILL.md +407 -0
  18. package/.opencode/skills/performance-optimization/SKILL.md +330 -0
  19. package/.opencode/skills/testing-strategies/SKILL.md +33 -0
  20. package/README.md +390 -76
  21. package/dist/cli.js +355 -68
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +38 -0
  24. package/dist/plugin.js +3 -2
  25. package/dist/registry.d.ts +45 -0
  26. package/dist/registry.d.ts.map +1 -0
  27. package/dist/registry.js +140 -0
  28. package/dist/tools/cortex.d.ts.map +1 -1
  29. package/dist/tools/cortex.js +2 -3
  30. package/dist/tools/docs.d.ts +52 -0
  31. package/dist/tools/docs.d.ts.map +1 -0
  32. package/dist/tools/docs.js +328 -0
  33. package/package.json +11 -4
  34. package/.opencode/skills/web-development/SKILL.md +0 -122
@@ -1,122 +0,0 @@
1
- ---
2
- name: web-development
3
- description: Full-stack web development patterns, best practices, and architectural guidance for modern web applications
4
- license: Apache-2.0
5
- compatibility: opencode
6
- ---
7
-
8
- # Web Development Skill
9
-
10
- This skill provides comprehensive guidance for building modern web applications.
11
-
12
- ## When to Use
13
-
14
- Use this skill when:
15
- - Starting a new web project
16
- - Adding features to existing web apps
17
- - Refactoring frontend or backend code
18
- - Designing APIs
19
- - Choosing technology stack
20
-
21
- ## Frontend Architecture
22
-
23
- ### Component Design
24
- - Single Responsibility Principle
25
- - Composition over inheritance
26
- - Controlled vs uncontrolled components
27
- - Container/Presentational pattern
28
- - Custom hooks for reusable logic
29
-
30
- ### State Management
31
- - Local state (useState, useReducer)
32
- - Global state (Redux, Zustand, Context)
33
- - Server state (React Query, SWR)
34
- - Form state (React Hook Form)
35
- - URL state (React Router)
36
-
37
- ### Performance Optimization
38
- - Memoization (useMemo, useCallback, React.memo)
39
- - Code splitting and lazy loading
40
- - Virtualization for long lists
41
- - Image optimization
42
- - Bundle size monitoring
43
-
44
- ### Styling Approaches
45
- - CSS-in-JS (styled-components, emotion)
46
- - Utility-first CSS (Tailwind)
47
- - CSS Modules
48
- - SCSS/Sass
49
- - CSS Variables for theming
50
-
51
- ## Backend Architecture
52
-
53
- ### API Design
54
- - RESTful principles
55
- - GraphQL schema design
56
- - Versioning strategies
57
- - Pagination patterns
58
- - Filtering and sorting
59
-
60
- ### Database Patterns
61
- - Repository pattern
62
- - Unit of Work
63
- - CQRS (Command Query Responsibility Segregation)
64
- - Event sourcing
65
- - Database migrations
66
-
67
- ### Authentication & Authorization
68
- - JWT implementation
69
- - Session-based auth
70
- - OAuth 2.0 / OpenID Connect
71
- - Role-based access control
72
- - API key management
73
-
74
- ### Error Handling
75
- - Consistent error responses
76
- - HTTP status codes
77
- - Error logging and monitoring
78
- - User-friendly error messages
79
- - Retry strategies
80
-
81
- ## Fullstack Patterns
82
-
83
- ### Data Flow
84
- - Unidirectional data flow
85
- - State normalization
86
- - Optimistic updates
87
- - Real-time updates (WebSockets, SSE)
88
- - Offline-first architecture
89
-
90
- ### Security
91
- - Input validation and sanitization
92
- - Output encoding
93
- - CSRF protection
94
- - Content Security Policy
95
- - Secure headers
96
-
97
- ### Testing Strategy
98
- - Unit tests for business logic
99
- - Integration tests for APIs
100
- - Component tests for UI
101
- - E2E tests for critical paths
102
- - Visual regression testing
103
-
104
- ## Technology Recommendations
105
-
106
- ### Frontend Stacks
107
- - React + TypeScript + Vite + Tailwind
108
- - Vue 3 + TypeScript + Vite + Pinia
109
- - Next.js (fullstack React)
110
- - SvelteKit
111
-
112
- ### Backend Stacks
113
- - Node.js + Express/Fastify/NestJS
114
- - Python + FastAPI/Django
115
- - Go + Gin/Echo
116
- - Rust + Actix/Axum
117
-
118
- ### Databases
119
- - PostgreSQL (relational)
120
- - MongoDB (document)
121
- - Redis (cache/sessions)
122
- - Elasticsearch (search)