architect-analyze
Use when validating generated or refined architecture artifacts, before feature development, during architecture review, or…
Use when bootstrapping a new team AI directives repo, establishing team-wide principles for the first time, or amending the constitution in team-ai-directives.
$ npx -y skills add tikalk/adlc-team-skills --skill team-constitution --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/team-constitutionContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when bootstrapping a new team AI directives repo, establishing team-wide principles for the first time, or amending the constitution in team-ai-directives.
name: team-constitution description: Use when bootstrapping a new team AI directives repo, establishing team-wide principles for the first time, or amending the constitution in team-ai-directives. disable-model-invocation: true
Interactively **create or amend** the team constitution at `{TEAM_AI_DIRECTIVES}/context_modules/constitution.md`.
The scaffold written by `team-setup` (Mode 3) contains only a placeholder ("No team-wide principles defined yet"). This skill turns that placeholder into a real constitution through guided elicitation:
**What this skill is NOT**:
$ARGUMENTS
You **MUST** consider the user input before proceeding (if not empty).
**Examples of User Input**:
You are acting as a **Team Governance Facilitator** — helping the team articulate its non-negotiable principles. Your role involves:
1. **Environment Setup** (Phase 0): Resolve paths, detect constitution state 2. **Load Team Context** (Phase 1): Read existing constitution + team directives to inform proposals 3. **Elicit Principles** (Phase 2): Interactive create/amend loop 4. **Governance Section** (Phase 3): Compose the lightweight governance paragraph 5. **Write Constitution** (Phase 4): Write the file with OKF v0.2 frontmatter 6. **Commit & Summary** (Phase 5): Offer commit, report results
Run the setup script from the skill's base directory:
scripts/bash/setup-team-constitution.sh
Parse JSON for `REPO_ROOT`, `TEAM_AI_DIRECTIVES`, `CONSTITUTION_FILE`, `CONSTITUTION_STATE`, `TD_IS_GIT`, `TD_CLEAN`.
**If the setup script is unavailable or fails**, resolve manually:
1. `REPO_ROOT` — walk up from cwd to find `.adlc/`, or `git rev-parse --show-toplevel`, or `pwd`. 2. `TEAM_AI_DIRECTIVES` — `TEAM_AI_DIRECTIVES` env var, then `.adlc/init-options.json` → `team_ai_directives`, then `REPO_ROOT/team-ai-directives`. 3. `CONSTITUTION_FILE` — `{TEAM_AI_DIRECTIVES}/context_modules/constitution.md` 4. `CONSTITUTION_STATE`:
5. `TD_IS_GIT` — `git -C "$TEAM_AI_DIRECTIVES" rev-parse --is-inside-work-tree` (exit 0 = true) 6. `TD_CLEAN` — `git -C "$TEAM_AI_DIRECTIVES" status --porcelain` (empty = clean)
If `TEAM_AI_DIRECTIVES` is not configured:
Team AI directives repository not configured. Run: team-setup Or set: export TEAM_AI_DIRECTIVES=/path/to/team-ai-directives
Read the following to inform principle proposals:
1. **Existing constitution** at `{CONSTITUTION_FILE}` (if `populated` — you will amend; if `placeholder`/`missing` — you will create) 2. **Team rules index**: `{TEAM_AI_DIRECTIVES}/CDR.md` — accepted rule/persona/example descriptors reveal what the team already cares about 3. **Existing rules**: skim `{TEAM_AI_DIRECTIVES}/context_modules/rules/` file names and headings 4. **AGENTS.md** at `{TEAM_AI_DIRECTIVES}/AGENTS.md` — loading order and skill usage expectations
Principles must be **grounded in what you find** — e.g., if the rules directory is heavy on security modules, a "Security by Default" principle is evidence-based, not boilerplate. If the team AI directives is nearly empty, fall back to a small starter set and say so explicitly.
1. **Propose a starter set** (3–7 principles) based on Phase 1 findings. For each principle, present:
### Proposed Principle N: {Name}
**Statement**: {Declarative, testable rule — one or two sentences}
**Rationale**: {Why this principle exists; what failure it prevents}
**Grounding**: {What team context motivated this — or "starter suggesAgent skills that give coding agents your team's context at session start, so they stop working like strangers.
Use when validating generated or refined architecture artifacts, before feature development, during architecture review, or…
Use when architecture work starts or a tech-stack or pattern decision emerges — injects the project ADR index…
Use when ADRs need review, gaps need filling, or ADR status must be approved as Accepted before architecture generation.
Use when accepted ADRs exist and AD.md must be produced or updated as unified architecture documentation.
Use when bootstrapping architecture documentation for a brownfield project by reverse-engineering ADRs from an existing codebase.
Use when you want guided trade-off analysis, multi-option comparison, or structured architectural decision facilitation before…