Platform Foundationsv1.3.2

AI agents

Guidance and recommended skills for AI coding agents.

Hub for AI coding agents working in this repo and in PlainConcepts Platform apps. It covers the frontend stack and backend/.NET conventions. Keep this file short, the detail lives in the docs and skills it points to.

What's here

ai/
├── ARCHITECTURE.md     # stack, repo layout, FSD, DI, backend architecture
├── DESIGN.md           # design tokens, visual intent, working rules
├── AGENTS.md           # this file: index/hub
skills/
└── platform-onboard/   # brownfield Platform migration skill

Stack (summary)

Next.js (App Router) + React + TypeScript (strict), shadcn/ui on Radix + Tailwind v4, themed by @plainconceptsplatform/ui-theme, shared components from @plainconceptsplatform/ui-components (Plain logo, ...), icons from Lucide. DI via inversify-hooks (mandatory). Translations: react-i18next + i18next (mandatory, the only translation library — zero magic strings). Package manager: pnpm. Lint/format Biome (scoped biome.json per package, never biome check . at monorepo root). Full list: ARCHITECTURE.md.

Read these first

Rules

  1. Prefer shadcn/ui and the ARCHITECTURE.md libraries. Use components directly.
  2. Do not recreate existing components or wrap third-party components without a real reason.
  3. Never hardcode design values. Use semantic theme tokens (bg-primary, text-muted-foreground, rounded-lg), never raw hex/px.
  4. Application-specific components stay in the app (in the slice that owns them). A component is shared only after the same need appears in multiple apps.
  5. Respect the dependency direction and slice public APIs (see ARCHITECTURE.md).
  6. Use pnpm for all commands.
  7. Accessibility & all states (loading/empty/error/success) are required, see DESIGN.md.

Theme & components setup (consuming apps)

When building a Platform app, read /README.md for the full setup, then install:

  • @plainconceptsplatform/ui-theme for design tokens (CSS import, Outfit font, shadcn config)
  • @plainconceptsplatform/ui-components for shared React components (Plain logo, ...)

Migration skill

platform-onboard brings a brownfield project onto the Platform stack. Use it when adopting Platform standards or migrating to Platform Foundations. It scans the project before changing it, then progresses through agentic infrastructure, architecture docs, OpenSpec, frontend stack, agentic workflows, and .NET guardrails in dependency order.

Workflow

  • platform-onboard: onboard a brownfield project onto the Platform stack (pnpm, Next.js, shadcn, FSD, inversify-hooks, react-i18next, Biome, OpenSpec)
  • openspec-propose: propose a change with design, specs, tasks
  • openspec-explore: thinking partner for ideas and investigation
  • openspec-apply-change: implement tasks from an OpenSpec change
  • openspec-archive-change: finalize and archive a completed change
  • user-story: user stories with Gherkin acceptance criteria
  • pnpm for all package/script commands.
  • Running agents against a repository: GitHub Agentic Workflows with engine: opencode against the Forge gateway, on ubuntu-latest. This is the Platform default. Event triggers instead of polling, a fresh checkout per run, and a concurrency group instead of a hand-rolled mutex. The shape is one router that owns every trigger and workers that have none: copy the templates from ai/workflows. Reusable workflow skills and copyable loops live in PlainConceptsPlatform/agentic-workflows. Use its self-contained workflow-author and workflow-consumer skills. Self-hosted runners are supported but not the default, and must never be attached to a public repository.
  • Platform Harness: PlainConceptsPlatform/agent-harness installs the harness this repository runs on, including the make-architecture and make-design skills.
  • Optimizations (recommended to enable): RTK check, opencode-quota plugin, Simple English concise mode, codegraph semantic index, agentmemory local memory server, humanizer skill.

Regenerating the docs

ARCHITECTURE.md and DESIGN.md follow the Platform Harness skills (pc-make-architecture, pc-make-design). Regenerate them from the codebase rather than hand-editing large sections; src/theme.css remains the source of truth for design tokens.