Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
95f434c
Initial plan
Copilot Mar 14, 2026
b6c77f8
feat: add Ollama-powered chat interface with full auth integration
Copilot Mar 14, 2026
73ec11a
fix: apply iterative HTML sanitization to prevent nested tag injectio…
Copilot Mar 14, 2026
3c9a8df
Add Vercel skills, React guide & marketing
rezwana-karim Mar 14, 2026
59b3b68
feat: add connection testing, model details, stop generation, thinkin…
Copilot Mar 15, 2026
86eba4b
docs: add comprehensive Ollama Cloud API research from ollama-js and …
Copilot Mar 15, 2026
07a34de
Org-aware AI chat + Ollama API features
rezwana-karim Mar 16, 2026
0b970f7
Add Playwright test docs and update instructions
rezwana-karim Mar 16, 2026
201f506
Add file upload support to Ollama chat
rezwana-karim Mar 16, 2026
3ab12d5
Add Vercel skills and best-practice rules
rezwana-karim Mar 16, 2026
f11f20f
Add Ollama model details & 404 handling
rezwana-karim Mar 16, 2026
d22afad
Add implementation status badges to Ollama API doc
rezwana-karim Mar 16, 2026
a33c633
Model management, structured output & BDT
rezwana-karim Mar 16, 2026
3b4c6b5
Add OpenAI-compatible API and Ollama tools
rezwana-karim Mar 16, 2026
9ed8a98
Add Ollama AI chat docs and capabilities API
rezwana-karim Mar 17, 2026
b377da7
Move Ollama AI chat docs into docs/ollama
rezwana-karim Mar 17, 2026
7c5f4ec
Add Ollama AI comprehensive analysis doc
rezwana-karim Mar 17, 2026
1f1424e
Add chat sessions, attachments & usage logs
rezwana-karim Mar 18, 2026
e80072c
Add store metrics tool & usage logging
rezwana-karim Mar 18, 2026
a7e60ee
Add StormPilot chat UI, settings and routes
rezwana-karim Mar 18, 2026
0a38d31
Add QWEN.md project context file
rezwana-karim Mar 19, 2026
f2df4cc
Add comprehensive API docs and route analysis
rezwana-karim Mar 19, 2026
2edd155
Add API docs, bulk/export, search, cache, webhooks
rezwana-karim Mar 20, 2026
d235153
Add Priority3 features, env and realtime services
rezwana-karim Mar 21, 2026
35e7214
Merge branch 'main' into api-specs-openapi
syed-reza98 Mar 21, 2026
1db7c87
Fix types, ES client, cache, and API routes
rezwana-karim Mar 21, 2026
89ba2f0
Add Upstash Redis examples to .env.example
rezwana-karim Mar 21, 2026
b327c53
Integrate Upstash Redis, caching, and rate-limiting
rezwana-karim Mar 22, 2026
a6cc772
Refine Elasticsearch types and update lock/lint
rezwana-karim Mar 22, 2026
ddfadc3
Fix typing issues, safety checks, and Redis health check
rezwana-karim Mar 23, 2026
d2e797a
Initial plan
Copilot Mar 23, 2026
e3ceaab
docs: fix reviewer-noted inaccuracies in skill rule examples
Copilot Mar 23, 2026
91e2489
docs: clarify callback invocation and visibility semantics in examples
Copilot Mar 23, 2026
4a36e20
fix: harden Meta order manager request URL validation
Copilot Mar 23, 2026
fe6f446
fix: reject malformed Meta API URLs before fetch
Copilot Mar 23, 2026
1c2030e
fix: strengthen Meta request URL checks against traversal
Copilot Mar 23, 2026
dd2980f
fix: address PR thread feedback on SSRF and docs guidance
Copilot Mar 23, 2026
80fe95f
Correct inaccurate guidance in skill docs surfaced by PR review (#375)
syed-reza98 Mar 23, 2026
67f40c8
Potential fix for code scanning alert no. 121: Server-side request fo…
syed-reza98 Mar 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
89 changes: 89 additions & 0 deletions .adal/skills/vercel-composition-patterns/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
name: vercel-composition-patterns
description:
React composition patterns that scale. Use when refactoring components with
boolean prop proliferation, building flexible component libraries, or
designing reusable APIs. Triggers on tasks involving compound components,
render props, context providers, or component architecture. Includes React 19
API changes.
license: MIT
metadata:
author: vercel
version: '1.0.0'
---

# React Composition Patterns

Composition patterns for building flexible, maintainable React components. Avoid
boolean prop proliferation by using compound components, lifting state, and
composing internals. These patterns make codebases easier for both humans and AI
agents to work with as they scale.

## When to Apply

Reference these guidelines when:

- Refactoring components with many boolean props
- Building reusable component libraries
- Designing flexible component APIs
- Reviewing component architecture
- Working with compound components or context providers

## Rule Categories by Priority

| Priority | Category | Impact | Prefix |
| -------- | ----------------------- | ------ | --------------- |
| 1 | Component Architecture | HIGH | `architecture-` |
| 2 | State Management | MEDIUM | `state-` |
| 3 | Implementation Patterns | MEDIUM | `patterns-` |
| 4 | React 19 APIs | MEDIUM | `react19-` |

## Quick Reference

### 1. Component Architecture (HIGH)

- `architecture-avoid-boolean-props` - Don't add boolean props to customize
behavior; use composition
- `architecture-compound-components` - Structure complex components with shared
context

### 2. State Management (MEDIUM)

- `state-decouple-implementation` - Provider is the only place that knows how
state is managed
- `state-context-interface` - Define generic interface with state, actions, meta
for dependency injection
- `state-lift-state` - Move state into provider components for sibling access

### 3. Implementation Patterns (MEDIUM)

- `patterns-explicit-variants` - Create explicit variant components instead of
boolean modes
- `patterns-children-over-render-props` - Use children for composition instead
of renderX props

### 4. React 19 APIs (MEDIUM)

> **⚠️ React 19+ only.** Skip this section if using React 18 or earlier.
- `react19-no-forwardref` - Don't use `forwardRef`; use `use()` instead of `useContext()`

## How to Use

Read individual rule files for detailed explanations and code examples:

```
rules/architecture-avoid-boolean-props.md
rules/state-context-interface.md
```

Each rule file contains:

- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- Additional context and references

## Full Compiled Document

For the complete guide with all rules expanded: `AGENTS.md`
Loading
Loading