Full-stack-skills openspec-config
Configure OpenSpec project settings and global CLI configuration using `openspec/config.yaml` and `openspec config` commands. Use when the user says "configure OpenSpec", "project config", "add project context", or wants to set per-artifact rules.
install
source · Clone the upstream repo
git clone https://github.com/partme-ai/full-stack-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/partme-ai/full-stack-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/openspec-skills/openspec-config" ~/.claude/skills/partme-ai-full-stack-skills-openspec-config && rm -rf "$T"
manifest:
skills/openspec-skills/openspec-config/SKILL.mdsource content
OpenSpec Config Skill
Manage OpenSpec configuration at two levels: project config (
openspec/config.yaml) for project-specific context and rules, and global CLI config (openspec config subcommands) for user-level settings.
When to Use
- The user wants to add project context to improve AI artifact quality.
- Setting per-artifact rules (e.g. "specs must use Given/When/Then").
- Changing the default schema for the project.
- Managing global CLI settings (telemetry, editor, etc.).
Prerequisites
- OpenSpec initialized in the project (see openspec-initial).
Project Configuration
openspec/config.yaml
# Default schema for new changes schema: spec-driven # Project context injected into all artifact instructions context: | Tech stack: TypeScript, React, Node.js API conventions: RESTful, JSON responses Testing: Vitest for unit tests, Playwright for e2e Style: ESLint with Prettier, strict TypeScript # Per-artifact rules rules: proposal: - Include rollback plan - Identify affected teams specs: - Use Given/When/Then format for scenarios design: - Include sequence diagrams for complex flows
Config Fields
| Field | Type | Description |
|---|---|---|
| string | Default schema for new changes (e.g. ) |
| string | Project context injected into all artifact instructions (max 50KB) |
| object | Per-artifact rules, keyed by artifact ID |
How It Works
- Schema precedence (highest to lowest): CLI flag -> change metadata -> project config -> default (
).spec-driven - Context injection: Prepended to every artifact's instructions in
tags.<project-context> - Rules injection: Only for matching artifacts, in
tags, after context.<project-rules>
Artifact IDs (spec-driven schema)
— Change proposalproposal
— Specificationsspecs
— Technical designdesign
— Implementation taskstasks
Global CLI Configuration
openspec config list # Show all settings openspec config get <key> # Get a value openspec config set <key> <value> # Set a value openspec config unset <key> # Remove a key openspec config reset --all --yes # Reset to defaults openspec config edit # Open in $EDITOR openspec config path # Show config file location
Common Settings
| Setting | Example |
|---|---|
| Disable telemetry | |
| Set user name | |
Outputs
with project context and rules.openspec/config.yaml- Improved AI artifact quality through context injection.
Next Steps
- Start working with openspec-new or openspec-explore.
- Create a custom schema with openspec-schema and set it as default in config.
Troubleshooting
- "Unknown artifact ID in rules": Check artifact IDs match your schema; run
.openspec schemas --json - Config not applied: Ensure file is at
(notopenspec/config.yaml
); check YAML syntax..yml - Context too large: Limit is 50KB; summarize or link to external docs.