Skip to content
Back to skills

Agent Ops Constitution Weholt Script Cast

ASecurity

Create/update .agent/constitution.md. Use when commands/boundaries/constraints must be confirmed before baseline or code changes. Draft v0 from repo evidence, then interview user.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentsgosecuritydocumentation

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill agent-ops-constitution-weholt-script-cast --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Ops Constitution Weholt Script Cast?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Ops Constitution Weholt Script Cast
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-agent-ops-constitution-weholt-script-cast/badge)](https://www.skillsdirectory.com/skills/majiayu000-agent-ops-constitution-weholt-script-cast)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-ops-constitution
description: "Create/update .agent/constitution.md. Use when commands/boundaries/constraints must be confirmed before baseline or code changes. Draft v0 from repo evidence, then interview user."
category: core
invokes: [agent-ops-context-map, agent-ops-state, agent-ops-interview, agent-ops-tasks]
invoked_by: []
state_files:
  read: [focus.md, issues/*.md, map.md]
  write: [constitution.md, focus.md, issues/*.md]
---

# Constitution workflow (mandatory before baseline)

## Goal
Make `.agent/constitution.md` baseline-ready by confirming:
- allowed/restricted/forbidden work areas
- single-line build/lint/test/format commands
- environment assumptions
- project-specific constraints
- issue-first workflow expectations

## Pre-requisite: Context Map

**Before starting constitution interview, ensure a context map exists:**

1) Check if `.agent/map.md` exists
2) If NO map exists:
   ```
   πŸ“ No context map found. Creating one first to inform constitution questions...
   ```
   β†’ Invoke `agent-ops-context-map` to generate `.agent/map.md`
3) If map exists but is stale (>30 days old or significant changes detected):
   ```
   πŸ“ Context map may be outdated. Refresh? [Y]es / [N]o
   ```
4) Use the map to:
   - Pre-populate candidate work areas
   - Identify build/test tooling
   - Understand project structure for interview questions

## Procedure
1) **Ensure context map exists** (see above)
2) **Run tool detection** β€” invoke `agent-ops-tools` or `aoc tools scan --save`
   - Creates `.agent/tools.json` with available development tools
   - Identifies missing recommended tools based on detected project type
   - Populates "Available tools" section in constitution
3) Inspect repo evidence (README, CI workflows, package/build files). Do not guess.
4) Draft v0 constitution:
   - every inferred item must cite its evidence ("CANDIDATE from <path>")
   - anything without evidence is `TODO` + `UNCONFIRMED`
   - use detected tools to suggest build/lint/test commands
5) Interview the user:
   - one question per TODO/UNCONFIRMED item
   - ask both "what should it be?" and "why?"
6) Update constitution until:
   - build + test commands are **CONFIRMED**
   - work boundaries are **CONFIRMED**
7) Use `agent-ops-state` to update `.agent/focus.md`.
8) Invoke `agent-ops-tasks` for any setup work discovered.

## Issue Discovery During Constitution

**After constitution setup, invoke `agent-ops-tasks` discovery:**

1) **Collect setup items discovered:**
   - Missing configuration β†’ `CHORE` issue
   - Broken scripts β†’ `BUG` issue
   - Missing documentation β†’ `DOCS` issue
   - Security concerns noted β†’ `SEC` issue
   - Environment issues β†’ `CHORE` issue

2) **Present to user:**
   ```
   πŸ“‹ Constitution setup found {N} items to address:
   
   High:
   - [BUG] Build script references missing file
   - [CHORE] CI workflow needs updating
   
   Medium:
   - [DOCS] README is outdated
   
   Create issues for these? [A]ll / [S]elect / [N]one
   ```

3) **Workflow continues:**
   - Issues created before baseline capture
   - Baseline can now proceed with known issues documented

## Template
Start from [constitution template](./templates/constitution.template.md).

## Low Confidence Completeness Check (MANDATORY)

**For LOW confidence work, constitution must be verified as complete before proceeding.**

### Required Sections Checklist

When confidence is LOW, verify constitution has ALL of these sections **CONFIRMED** (not TODO/UNCONFIRMED):

| Section | Required | Purpose |
|---------|----------|---------|
| **Project scope** | βœ… | What this project does |
| **Work areas: allowed** | βœ… | Where changes are permitted |
| **Work areas: restricted** | βœ… | Where caution is required |
| **Work areas: forbidden** | βœ… | Where changes are never allowed |
| **Build command** | βœ… | Single-line build command |
| **Test command** | βœ… | Single-line test command |
| **Lint command** | βœ… | Single-line lint command |
| **Format command** | βšͺ Optional | Single-line format command |
| **Coverage command** | βœ… for LOW | How to measure coverage |
| **Environment assumptions** | βœ… | OS, runtime versions, dependencies |
| **Tool detection** | βœ… | `.agent/tools.json` exists |
| **Constraints** | βœ… | Project-specific limitations |
| **Default confidence** | βœ… | LOW/NORMAL/HIGH |

### Completeness Verification

Before LOW confidence work begins:

```
🎯 LOW CONFIDENCE CONSTITUTION CHECK

Checking constitution completeness for low confidence work...

| Section | Status |
|---------|--------|
| Project scope | βœ… CONFIRMED |
| Allowed areas | βœ… CONFIRMED |
| Restricted areas | βœ… CONFIRMED |
| Forbidden areas | ⚠️ TODO |
| Build command | βœ… CONFIRMED |
| Test command | βœ… CONFIRMED |
| Lint command | βœ… CONFIRMED |
| Coverage command | ❌ MISSING |
| Environment | βœ… CONFIRMED |
| Tool detection | βœ… .agent/tools.json exists |
| Constraints | ⚠️ UNCONFIRMED |

Result: INCOMPLETE β€” 3 items need confirmation

⚠️ Cannot proceed with low confidence work until constitution is complete.

Starting interview to fill gaps...
```

### Staleness Check

For LOW confidence, also check constitution age:

| Age | Action |
|-----|--------|
| < 7 days | Proceed |
| 7-30 days | Prompt: "Constitution is {N} days old. Review before proceeding?" |
| > 30 days | Require: "Constitution is stale. Re-interview before low confidence work." |

### Gap-Filling Interview

If constitution is incomplete for LOW confidence:

1. List missing/unconfirmed sections
2. Invoke `agent-ops-interview` for each gap
3. Update constitution with confirmed values
4. Re-verify completeness
5. Only proceed when all required sections are CONFIRMED

```
πŸ“‹ Constitution gaps for low confidence work:

1. Forbidden work areas (currently: TODO)
2. Coverage command (currently: MISSING)
3. Constraints (currently: UNCONFIRMED)

Starting interview to fill these gaps...

Q1: What areas of the codebase should NEVER be modified?
(These will be marked as forbidden work areas)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.