PSS Design Requirement Alignment
Overview
Takes an existing .agent.toml (or baseline candidate pool) and a project requirements/design document, scores the design doc through the Rust binary, then cherry-picks only the elements that match the agent's specialization. Prevents project-level elements from leaking into agents that don't need them.
Instructions
- Receive an existing
.agent.tomlprofile (baseline frompss-agent-toml) - Score the requirements document through the Rust binary (separate pass)
- Cherry-pick elements matching the agent's specialization
- Merge into the profile, verify, validate
Critical Rules
- Separate scoring: Requirements MUST be scored in a separate binary invocation from the agent definition. Never mix them into one descriptor.
- Specialization filter: Every requirements-derived candidate must be individually evaluated against the agent's role, domain, and duties before adding.
- Tier placement: Cherry-picked elements go to secondary or specialized tier only. Primary tier is reserved for agent-intrinsic skills.
- No leaking: A database agent working on a shopping site does NOT get frontend/payments/UI skills. Only database-related elements from the requirements pass through.
Prerequisites
- Existing
.agent.tomlprofile (frompss-agent-toml//pss-setup-agent) - Requirements/design document (
.mdfile describing the project) - CozoDB skill index at
$CLAUDE_PLUGIN_DATA/pss-skill-index.db(fallback~/.claude/cache/pss-skill-index.db) - Rust binary at
$CLAUDE_PLUGIN_ROOT/bin/<platform>
Checklist
Copy this checklist and track your progress:
- Requirements scored separately (Pass 2)
- Each candidate filtered by agent specialization
- Cherry-picked elements merged, verified, validated
References
- Scoring Protocol
- Requirements Descriptor Format
- Binary Invocation
- Output Format
- Scoring Checklist
- Specialization Filter
- Domain Overlap Check
- Duty Matching
- Practical Usage Test
- Filter Decision Table
- Examples by Agent Type
- Cherry-Pick Checklist
- Merge Protocol
- Deduplication
- Tier Placement Rules
- Exclusion Documentation
- Verification and Validation
- Merge Checklist
Examples
# Used internally by pss-agent-profiler when --requirements is provided
# Pass 1 (pss-agent-toml): baseline profile from agent.md
# Pass 2 (pss-design-alignment): augment with project-specific elements
# Also used by pss-change-agent-profile to re-align with new requirements
/pss-change-agent-profile my-agent.agent.toml --requirements docs/prd.md
Error Handling
- No requirements provided: skip (this skill is only needed when requirements exist)
- Requirements file not found:
[FAILED] Requirements file not found: <path> - Binary fails on requirements:
[FAILED] Binary error on requirements scoring: <stderr> - Zero cherry-picked elements: normal (agent's specialization may not overlap with requirements)
Output
Updated .agent.toml with cherry-picked elements merged into secondary/specialized tiers and rejected candidates documented in [skills.excluded].
Resources
scripts/pss_verify_profile.py— element verification (anti-hallucination)scripts/pss_validate_agent_toml.py— structural validationschemas/pss-agent-toml-schema.json— TOML schema