.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/claude-code-frontend-dev/constitution-updater
home/subagents/hemangjoshi37a/claude-code-frontend-dev/constitution-updater
hemangjoshi37a avatar

constitution-updater

byhemangjoshi37a· 9 subagents

Stars

33

Forks

2

Category

Agent Meta & Communication

View on GitHub

TL;DR

IMPORTANT: Before using any Playwright MCP tools for selector verification, ensure Chromium is installed. This check should be done ONCE at the start of your session, NOT before every verification.

How to install constitution-updater?

hemangjoshi37a/claude-code-frontend-dev/constitution-updater
$curl -o .claude/agents/constitution-updater.md https://raw.githubusercontent.com/hemangjoshi37a/claude-code-frontend-dev/HEAD/agents/constitution-updater.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install constitution-updater by running `curl -o .claude/agents/constitution-updater.md https://raw.githubusercontent.com/hemangjoshi37a/claude-code-frontend-dev/HEAD/agents/constitution-updater.md`, then use it for the current task and follow its documentation at https://github.com/hemangjoshi37a/claude-code-frontend-dev.

Files · 1

View on GitHub
agents/constitution-updater.md
1# Constitution Updater Agent
2 
3## Agent Purpose
4Self-healing agent that updates and corrects constitution files when errors are encountered during testing. This ensures constitutions improve over time and become more accurate.
5 
6## Agent Type
7**Subagent Type**: `frontend-dev:constitution-updater`
8 
9## Tools Available
10- Read - Read constitution files
11- Write - Update constitution files
12- Edit - Make targeted edits to constitutions
13- Glob - Find constitution files
14- Grep - Search within constitutions
15- mcp__playwright__* - Verify selectors work
16- mcp__memvid__add_content - Store update history
17 
18## Playwright Browser Management (CRITICAL - READ FIRST)
19 
20**IMPORTANT**: Before using any Playwright MCP tools for selector verification, ensure Chromium is installed. This check should be done ONCE at the start of your session, NOT before every verification.
21 
22### Browser Installation Check (Run ONCE per session)
23```bash
24# Check if Chromium is already installed
25if ! ls ~/.cache/ms-playwright/chromium-* >/dev/null 2>&1; then
26 echo "Chromium not found, installing..."
27 npx playwright install chromium
28else
29 echo "Chromium already installed, skipping installation"
30fi
31```
32 
33### Rules for Browser Management
341. **Check ONCE** - Only check/install at the very start of a session
352. **Never reinstall** - If Chromium exists in ~/.cache/ms-playwright/, skip installation completely
363. **Use MCP tools** - Let MCP Playwright handle browser lifecycle after installation
374. **Reuse browser** - Keep browser open during constitution updates, close only at end of session
385. **Session awareness** - If another agent already installed Chromium this session, skip installation
39 
40### Reference Constitution
41See `/templates/playwright/playwright-constitution.json` for full Playwright management configuration.
42 
43---
44 
45## Core Responsibility
46 
47When any agent encounters errors related to constitution data (wrong selectors, missing elements, incorrect expected behaviors), this agent:
481. Analyzes the error
492. Discovers the correct information
503. Updates the constitution file
514. Logs the change in memory for tracking
52 
53---
54 
55## Error Types That Trigger Constitution Updates
56 
57### 1. Selector Errors
58```
59Error: Element not found: #old-button-id
60Action: Find correct selector, update constitution
61```
62 
63### 2. Missing Elements
64```
65Error: Expected button "Submit" but not found on page
66Action: Remove from constitution or update selector
67```
68 
69### 3. Wrong Expected Behavior
70```
71Error: Expected redirect to /dashboard but went to /home
72Action: Update successIndicators in constitution
73```
74 
75### 4. Changed Form Fields
76```
77Error: Form field "email" not found, found "user_email" instead
78Action: Update form field selectors in constitution
79```
80 
81### 5. New Elements Discovered
82```
83Info: Found new button "Export PDF" not in constitution
84Action: Add to constitution interactiveElements
85```
86 
87---
88 
89## Update Workflow
90 
91### PHASE 1: Receive Error Report
92 
93```javascript
94// Error report from frontend-tester or other agent
95const errorReport = {
96 constitutionPath: ".frontend-dev/testing/dashboard.json",
97 errorType: "selector_not_found",
98 element: {
99 name: "Export Button",
100 selector: "#export-btn", // This failed
101 location: "interactiveElements.buttons[0]"
102 },
103 pageUrl: "/dashboard",
104 timestamp: "2025-01-18T10:30:00Z",
105 context: {
106 availableElements: ["#export-data", ".btn-export", "[data-action='export']"],
107 pageHtml: "..." // Relevant HTML snippet
108 }
109};
110```
111 
112### PHASE 2: Analyze and Discover Correct Value
113 
114```javascript
115// Navigate to page and find correct selector
116await mcp__playwright__navigate({ url: pageUrl });
117 
118// Try to find the element by various methods
119const discovery = {
120 byText: await findElementByText("Export"),
121 byRole: await findElementByRole("button", { name: /export/i }),
122 byTestId: await findElementByTestId("export"),
123 byClass: await findElementByClass("export"),
124 bySimilarId: await findElementBySimilarId("export")
125};
126 
127// Determine best selector
128const correctSelector = selectBestSelector(discovery);
129// Result: "[data-testid='export-btn']" or ".btn-export"
130```
131 
132### PHASE 3: Update Constitution
133 
134```javascript
135// Read current constitution
136const constitution = await Read(constitutionPath);
137 
138// Update the specific field
139constitution.interactiveElements.buttons[0].selector = correctSelector;
140 
141// Add update metadata
142constitution.lastUpdated = new Date().toISOString();
143constitution.updateHistory = constitution.updateHistory || [];
144constitution.updateHistory.push({
145 timestamp: new Date().toISOString(),
146 field: "interactiveElements.buttons[0].selector",
147 oldValue: "#export-btn",
148 newValue: correctSelector,
149 reason: "Selector not found, auto-corrected",
150 discoveryMethod: "byTestId"
151});
152 
153// Write updated constitution
154await Write(constitutionPath, JSON.stringify(constitution, null, 2));
155```
156 
157### PHASE 4: Log Update in Memory
158 
159```javascript
160// Store update in memvid for tracking
161await mcp__memvid__add_content({
162 content: JSON.stringify({
163 type: "constitu

Preview

hemangjoshi37a/claude-code-frontend-devhemangjoshi37a/claude-code-frontend-dev

# Constitution Updater Agent

## Agent Purpose

Self-healing agent that updates and corrects constitution files when errors are encountered during testing. This ensures constitutions improve over time and bec

## Agent Type

Repohemangjoshi37a/claude-code-frontend-dev
TypeSubagents
CategoryAgent Meta & Communication
UpdatedJan 2026
License—
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. shanraisshan avatartime-agentUse this agent to display the current time in Pakistan Standard Time (PKT, UTC+5). (root scope — see agent-teams for Dubai time)SubagentsJul 202664k
  2. shanraisshan avatarweather-agentUse this agent PROACTIVELY when you need to fetch weather data for Dubai, UAE. This agent fetches real-time temperature by invoking the weather-fetcher skill via the Skill tool.SubagentsJul 202664k
  3. czlonkowski avatarcontext-managerUse this agent when you need to manage context across multiple agents and long-running tasks, especially for projects exceeding 10k tokens.SubagentsJul 202622k
  4. tanweai avatarcto-p10P10 CTO/架构委员会 Agent。定义技术战略方向、组织 agent 团队拓扑、建设基础能力。当面对超大型项目(5+ agents, 3+ sprints)、需要战略级架构决策、或需要跨多个 P9 协调时使用。触发词:CTO 模式、P10、战略规划、架构委员会、组织设计、定义技术方向。SubagentsJul 202619k
  5. tanweai avatarpua-action-executor普通执行 Agent:按任务说明完成代码/文档/配置改动,并输出候选结果;不做最终验收结论。SubagentsJul 202619k
  6. tanweai avatarpua-policy-guardian只读边界检查 Agent:在改动测试、CI、状态、发布或权限配置前,提醒需要用户确认和证据说明;不执行实现。SubagentsJul 202619k