Fondation SDD pour Web Playground

VérifiéSûr

Créez des documents de fondation définissant l'identité et la portée des packages. Utilisez les ancres de préfixes pour documenter les contraintes technologiques, motifs de conception et démonstrations.

Spar Skills Guide Bot
DocumentationIntermédiaire
2002/06/2026
Claude Code
#foundation-documents#identity-anchors#project-scope#sdd

Recommandé pour

Notre avis

Crée des documents de fondation définissant l'identité et le périmètre d'un package ou d'un projet via des ancres d'identité structurées.

Points forts

  • Fournit un cadre clair et réutilisable pour définir le périmètre et l'identité d'un projet.
  • Utilise des préfixes standardisés pour les ancres d'identité, assurant cohérence et traçabilité.
  • Permet d'aligner les exigences futures sur les ancres définies.

Limites

  • Nécessite une connaissance préalable des préfixes et de la structure des documents.
  • Peut être perçu comme une surcharge administrative pour de très petits projets.
  • La vérification manuelle des ancres peut être fastidieuse.
Quand l'utiliser

Utilisez cette compétence lors du démarrage d'un nouveau package ou projet pour établir une base d'identité et de périmètre avant toute implémentation.

Quand l'éviter

Évitez cette compétence pour des projets déjà bien établis et documentés, ou lorsque la documentation formelle n'est pas nécessaire.

Analyse de sécurité

Sûr
Score qualité92/100

The skill only provides instructions for writing markdown/YAML documents defining project identity and scope. No commands, destructive actions, or data exfiltration are involved.

Aucun point d'attention détecté

Exemples

Create root foundation
Create a foundation document for the root of the web-playground project.
Define package identity
Create foundation for the react-sample package in packages/react-sample with identity anchors for React 18, Rsbuild, hooks pattern, and demo todo app.
Start new project with SDD foundation
sdd foundation for new package my-package

name: sdd-foundation description: | Create Foundation documents defining web-playground identity. Use when: starting a new package, defining project scope, establishing identity anchors. Triggers: "create foundation", "define identity", "sdd foundation"

Web Playground Foundation

Create Foundation documents that define identity and scope for packages.

Anchor Prefixes

Root Level

| Prefix | Meaning | Example | |--------|---------|---------| | SCOPE- | What the project does/doesn't do | SCOPE-MONOREPO | | QUALITY- | Code quality standards | QUALITY-TYPESCRIPT | | AUDIENCE- | Target users | AUDIENCE-DEVELOPER |

Package Level (extends root)

| Prefix | Meaning | Example | |--------|---------|---------| | TECH- | Technology-specific constraints | TECH-REACT-18 | | PATTERN- | Design patterns to demonstrate | PATTERN-HOOKS | | DEMO- | What the sample showcases | DEMO-STATE-MANAGEMENT |

Instructions

1. Choose Level

  • Root: spec/foundation.md (project-wide identity)
  • Package: packages/{pkg}/spec/foundation.md (sample-specific identity)

2. Write Frontmatter

---
title: "{Package} Foundation"
version: 1.0.0
status: draft
---

3. Write Identity Section

Answer in 1-2 sentences:

  • What is this? (root: collection of samples; package: specific technology demo)
  • Who is it for?

4. Define Scope

  • In Scope: Features this package demonstrates
  • Out of Scope: What it explicitly won't cover

5. List Identity Anchors

Use prefixes from table above. Package foundations must align with root anchors.

For packages, reference root anchors: Inherits: root::SCOPE-SHOWCASE, root::QUALITY-TYPESCRIPT

6. Update State

Claim ownership and update .sdd/state.yaml:

documents:
  foundation: { status: draft, version: 1.0.0, owner: claude }

Example: Package Foundation

---
title: "React Sample Foundation"
version: 1.0.0
status: draft
inherits:
  - root::foundation.md@1.0.0
---

# React Sample

## Identity

A React 18 sample demonstrating modern patterns: hooks, context, and functional components.

## Inherits

- root::SCOPE-SHOWCASE
- root::QUALITY-TYPESCRIPT
- root::AUDIENCE-DEVELOPER

## Identity Anchors

- **TECH-REACT-18:** Uses React 18 with concurrent features
- **TECH-RSBUILD:** Build tooling via Rsbuild
- **PATTERN-HOOKS:** All state via useState/useReducer
- **PATTERN-CONTEXT:** Global state via React Context
- **DEMO-TODO-APP:** Classic todo list showcasing patterns

## Scope

### In Scope

- Functional components with hooks
- Context-based state management
- Component composition patterns
- Testing with React Testing Library

### Out of Scope

- Class components
- Redux or other external state libraries
- Server-side rendering

Verification

After creating Foundation:

  • [ ] Frontmatter has title, version, status
  • [ ] Identity answers "what is this?"
  • [ ] Scope separates in/out clearly
  • [ ] Every anchor uses correct prefix (SCOPE-/QUALITY-/AUDIENCE- for root, TECH-/PATTERN-/DEMO- for packages)
  • [ ] Package foundations list inherited root anchors
  • [ ] Anchors are specific enough to align requirements against

State Update

After verification passes:

documents:
  foundation: { status: verified, version: 1.0.0, owner: human }
current_phase: requirements

Transfer ownership to human or unassigned when complete.

Next Phase

When foundation is verified, proceed to requirements:

  • Create requirements with @aligns-to links to each anchor
  • Ensure every anchor has at least one requirement

Reference

For full details: .claude/skills/sdd-guidelines/reference/guidelines-v4.4.md section 1.1

Skills similaires