Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

Provides structured prompts for AI agents (Copilot, ChatGPT, Claude) to develop ObjectUI components following canonical patterns and constraints.

Structure

16 markdown files in .github/prompts/ organized by concern:

  • Core packages (4): types, core, react, components - defining the layered architecture
  • Component categories (8): basic, layout, form, data-display, feedback, overlay, navigation, complex
  • Extensions (2): plugin development, tools (designer/CLI/runner)
  • Documentation (2): master README, bilingual quick reference

Content Model

Each prompt defines:

  • Role/context - What the AI implements (e.g., "Schema Engine Architect" for core package)
  • Strict constraints - Zero React in types/core, Tailwind-only styling, stateless components
  • Patterns - Implementation templates with working code
  • Validation - Pre-commit checklists

Key Constraints Enforced

// ❌ Forbidden
<div style={{ padding: '16px' }}>...</div>
const [state, setState] = useState()

// ✅ Required  
<div className={cn('p-4', schema.className)}>...</div>
const { data } = useDataContext()

Architecture flow: types (protocol) → core (logic) → react (bindings) → components (UI)

Usage

# AI instruction
"Use .github/prompts/components/form-components.md to create a DatePicker"

# AI review
"Review my Dialog against .github/prompts/components/overlay-components.md"

Covers 60+ component types with 200+ code examples. Bilingual (EN/中文).

Original prompt

帮我编写每个核心组件的AI开发或优化提示词


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
objectui-docs Error Error Jan 21, 2026 2:26pm
objectui-site Ready Ready Preview, Comment Jan 21, 2026 2:26pm

Request Review

@github-actions
Copy link

✅ All checks passed!

  • ✅ Type check passed
  • ✅ Tests passed
  • ✅ Lint check completed

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Add AI development prompts for core components Add AI development prompts for ObjectUI component system Jan 21, 2026
Copilot AI requested a review from hotlong January 21, 2026 14:30
@github-actions
Copy link

✅ All checks passed!

  • ✅ Type check passed
  • ✅ Tests passed
  • ✅ Lint check completed

@huangyiirene huangyiirene marked this pull request as ready for review January 21, 2026 15:20
@huangyiirene huangyiirene merged commit 511eaf8 into main Jan 21, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants