claude-piv-skeleton: Command for Claude Code

.claude/commands/piv_loop/constitution.md

constitution is a command for Claude Code from plipowczan/claude-piv-skeleton. It costs 6 tokens per session (729 once invoked), scanned A, original, MIT.

A command that creates or reviews a project constitution: a document describing the project’s purpose, technology choices, coding standards, testing, security, and other lasting rules.

In plain words
What is it for?
Use it to check an existing constitution or create one when a project has no document defining its principles and technical constraints.
Why use it?
It gives coding agents and developers a shared reference for project decisions. This reduces ambiguity and helps new contributors understand the project’s expectations.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is plipowczan/claude-piv-skeleton's own configuration. It tells Claude Code how to work on claude-piv-skeleton itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-piv-skeleton configures →

Part of the piv-speckit plugin — 6 skills, 16 commands shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to plipowczan/claude-piv-skeleton. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/plipowczan/claude-piv-skeleton/main/.claude/commands/piv_loop/constitution.md
Clone the repo
git clone --depth 1 https://github.com/plipowczan/claude-piv-skeleton

Made for: Claude Code.

Or install piv-speckit, the plugin that ships this one along with the rest of its 6 skills, 16 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for constitution

README.md
[![agentmods](https://agentmods.dev/badge/commands/plipowczan/claude-piv-skeleton/constitution.svg)](https://agentmods.dev/commands/plipowczan/claude-piv-skeleton/constitution)
Your own site
<a href="https://agentmods.dev/commands/plipowczan/claude-piv-skeleton/constitution"><img src="https://agentmods.dev/badge/commands/plipowczan/claude-piv-skeleton/constitution.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 729 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00006 $0.00729
Opus 5 $0.00003 $0.00365
Sonnet 5 $0.00001 $0.00146
Haiku 4.5 $0.00001 $0.00073

Measured 8d ago against content hash 44573a60e5d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

constitution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/piv_loop/constitution.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Constitution: Define Project Principles

Goal: Create a project constitution that guides all AI-assisted development decisions.

Execution

  1. Check if .claude/memory/constitution.md exists
  2. If exists, read it and summarize current principles
  3. If not, offer to create from template

What is a Constitution?

A constitution is a one-time document that defines:

  • Project purpose: What this project is and why it exists
  • Core principles: Quality standards, testing requirements, code style
  • Technology stack: Frameworks, languages, databases
  • Technical constraints: What to use and what to avoid
  • Development guidelines: Git workflow, code review, testing
  • Security requirements: Security standards and practices
  • Performance requirements: Performance targets

Why Create a Constitution?

Benefits:

  • Guides all AI decisions for consistent output
  • Single source of truth for project choices
  • Reduces ambiguity in technical decisions
  • Onboards new developers quickly
  • Prevents technical debt through clear principles

Constitution vs. Spec Artifacts

Aspect Constitution Spec/Plan/Tasks
Scope Entire project Single feature
Frequency Once per project Per feature
Changes Rarely Often
Content Principles, stack, guidelines Requirements, approach, steps

Location

Constitution is stored at: .claude/memory/constitution.md

This file is read automatically during:

  • /piv-speckit:plan-feature - Planning phase reads constitution
  • /piv-speckit:prime - Prime checks for constitution existence

Template

Use this structure when creating constitution:

# Project Constitution

**Last Updated:** {DATE}
**Project:** {PROJECT_NAME}

## Purpose

{What this project is and why it exists}

## Core Principles

1. **Quality First**
   - {Your quality standards}

2. **Testing**
   - TDD is mandatory
   - 80%+ test coverage
   - Integration tests for critical paths

3. **Code Style**
   - {Your style preferences}

## Technology Stack

**Backend:**
- Framework: {e.g., Spring Boot 3.2}
- Language: {e.g., Java 21}
- Database: {e.g., PostgreSQL 16}

**Frontend:**
- Framework: {e.g., React 19}
- Language: {e.g., TypeScript}
- Styling: {e.g., TailwindCSS}

## Technical Constraints

**Use:**
- {Technology choices to use}

**Avoid:**
- {Anti-patterns to avoid}

## Development Guidelines

**Git Workflow:**
- Branch from: `main`
- Commit style: Conventional Commits
- PR required: Yes

**Code Review:**
- Required for: All changes
- Reviewers: {Who reviews}

**Testing:**
- Required before: All commits
- Test command: {e.g., `mvn test`}

## Security Requirements

- {Security requirements}

## Performance Requirements

- {Performance targets}

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 135 lines · 6 tokens per session scan A 44573a60e5d8

Subscribe to this mod's changes

constitution is a command published in the GitHub repository plipowczan/claude-piv-skeleton (4 stars, last pushed 7mo ago), licensed MIT. It adds 6 tokens to every session and 729 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.