corrections
CI / CI configuration security checks (push) Successful in 6s
CI / Python tests and compilation (push) Failing after 12s
CI / QMD unit tests (push) Skipped
CI / Capabilities and shell quality (push) Successful in 1m50s
CI / Build and inspect generated packages (push) Skipped
CI / Bash integration and installation guards (push) Skipped
CI / Installed client configuration smoke tests (push) Skipped
CI / PowerShell tests on Ubuntu (push) Failing after 7m24s
CI / CI configuration security checks (push) Successful in 6s
CI / Python tests and compilation (push) Failing after 12s
CI / QMD unit tests (push) Skipped
CI / Capabilities and shell quality (push) Successful in 1m50s
CI / Build and inspect generated packages (push) Skipped
CI / Bash integration and installation guards (push) Skipped
CI / Installed client configuration smoke tests (push) Skipped
CI / PowerShell tests on Ubuntu (push) Failing after 7m24s
This commit is contained in:
1 parent
b35e2254b3
commit
c3e22eb902
39 files changed
+246
-151
No files matched your search
@@ -4,6 +4,6 @@ Provide static and semantic correctness review using the acceptance criteria and
|
||||
|
||||
Use shell commands to inspect diffs and run required research tools, including semantic search (when installed) and MCPorter. Do not run tests, builds, or runtime checks; reuse supplied execution evidence and report gaps to the parent or verifier.
|
||||
|
||||
For each finding, report SEVERITY (blocking, important, or minor), LOCATION, IMPACT, EVIDENCE, and SCOPE (introduced, pre-existing, or uncertain). Do not report stylistic preferences or pre-existing issues unless they materially affect the requested change. Prioritize actionable correctness defects, keep unrelated cleanup out of scope, and use blocking only for security, data-loss, broken contracts, or deterministic failures.
|
||||
Run the review through `review-pull-request`: it owns the specialist list, severity scale, finding schema, and dedup rules. Do not report stylistic preferences, and keep unrelated cleanup out of scope.
|
||||
|
||||
Check logic, regressions, architecture, maintainability, security, and contract consistency. Follow the shared orchestration handoff protocol. Do not modify implementation code unless assigned.
|
||||
@@ -4,7 +4,7 @@ This directory contains registered hooks and optional utilities. They do not byp
|
||||
|
||||
When Flashbang is enabled, both clients register `Stop` (`flashbang`) for finish notifications. Both clients also register `PreCompact` (`Record-Compact`/`record-compact.sh`) and `SessionStart` (`Show-SessionStatePointer`/`show-session-state-pointer.sh`). Codex additionally registers `SessionStart` (`Show-CavemanMode`/`show-caveman-mode.sh`), which prints the installed Caveman skill so caveman style is always on, as the Claude plugin's own hook does. PreCompact records its timestamp under the installed configuration root. Both session hooks point to an existing workspace `.ai-session/state.json`, using event `cwd` or the process working directory. The main agent owns that state; hooks never write it or print its contents. Missing state is a successful no-op.
|
||||
|
||||
Both clients register `PreToolUse` (`Validate-CommandSafety`/`validate-command-safety.sh`), which blocks clearly destructive shell commands by exiting 2; it parses command text, so it is a guard rail rather than a security boundary, and it fails open. Both clients also register `Stop` (`Check-CompletionEvidence`/`check-completion-evidence.sh`) and `UserPromptSubmit` (`Show-CorrectionPrompt`/`show-correction-prompt.sh`). Both call `agent-guards.py`, store nothing, and fail open. The first pushes back once on a completion claim without a named check while non-prose changes exist; the second asks the agent to propose a durable rule after a likely correction. A second `PreToolUse` hook (`Show-SearchReminder`/`show-search-reminder.sh`, also through `agent-guards.py`) reminds the agent to run `semantic-search` before the first open search and again after every 10 open searches without `qmd-search.mjs`, which also covers context lost to compaction; it never blocks, stays silent while the session keeps using `qmd-search.mjs`, does nothing unless QMD is installed, and keeps only hashed per-session markers under `~/.my-ai-configuration/state/search-reminder/`.
|
||||
Both clients register `PreToolUse` (`Validate-CommandSafety`/`validate-command-safety.sh`), which blocks clearly destructive shell commands by exiting 2; it parses command text, so it is a guard rail rather than a security boundary, and it fails open. Both clients also register `Stop` (`Check-CompletionEvidence`/`check-completion-evidence.sh`) and `UserPromptSubmit` (`Show-CorrectionPrompt`/`show-correction-prompt.sh`). Both call `agent-guards.py`, store nothing, and fail open. The first pushes back once on a completion claim without a named check while non-prose changes exist; the second asks the agent to propose a durable rule after a likely correction. The command-safety hook also runs the search reminder from `agent-guards.py` in the same process for shell commands, and Claude registers a second `PreToolUse` hook (`Show-SearchReminder`/`show-search-reminder.sh`) for `Grep` and `Glob`. The reminder the agent to run `semantic-search` before the first open search and again after every 10 open searches without `qmd-search.mjs`, which also covers context lost to compaction; it never blocks, stays silent while the session keeps using `qmd-search.mjs`, does nothing unless QMD is installed, and keeps only hashed per-session markers under `~/.my-ai-configuration/state/search-reminder/`.
|
||||
|
||||
`Invoke-PostChangeVerification`/`invoke-post-change-verification.sh` is not registered or invoked automatically; it runs the repository build only when explicitly invoked. Python-based hooks resolve their interpreter through `Resolve-Python.ps1`/`resolve-python.sh` and are silently skipped without Python 3.11+. `Test-SessionConfig`/`test-session-config.sh` checks repository inputs during a build.
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ command text and cannot see what scripts, aliases, or variables expand to at run
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import importlib.util
|
||||
import json
|
||||
import ntpath
|
||||
import os
|
||||
@@ -250,9 +251,22 @@ def run_hook(data, shell_override=None):
|
||||
if reason:
|
||||
print(f'Blocked by command-safety hook: {reason}. Ask the user to run this command themselves if it is intended.', file=sys.stderr)
|
||||
return 2
|
||||
remind_search(event)
|
||||
return 0
|
||||
|
||||
|
||||
def remind_search(event):
|
||||
# Runs the search reminder in this process so shell calls start one hook process, not two.
|
||||
# Best effort like agent-guards.py itself: a reminder failure never blocks or fails the command.
|
||||
try:
|
||||
spec = importlib.util.spec_from_file_location('agent_guards', os.path.join(os.path.dirname(os.path.abspath(__file__)), 'agent-guards.py'))
|
||||
guards = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(guards)
|
||||
guards.remind_search(event)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def run_check(command, workspace):
|
||||
reason = find_violation(command)
|
||||
if reason:
|
||||
|
||||
@@ -12,9 +12,9 @@ export const MODELS = {
|
||||
rerank: 'hf:giladgd/Qwen3-Reranker-4B-GGUF/Qwen3-Reranker-4B.Q4_K_M.gguf',
|
||||
generate: 'hf:tobil/qmd-query-expansion-1.7B-gguf/qmd-query-expansion-1.7B-q4_k_m.gguf',
|
||||
};
|
||||
// Covers the stacks with rules in this configuration: web templates and styles, .NET and WPF markup and projects, and JVM builds.
|
||||
export const MASK = '**/*.{md,py,cs,ts,tsx,mts,cts,js,jsx,mjs,cjs,go,rs,java,kt,kts,ps1,sh,json,yml,yaml,toml,xml,sql,'
|
||||
+ 'html,css,scss,xaml,razor,cshtml,csproj,props,targets,gradle,properties}';
|
||||
// Covers the stacks with rules in this configuration: web templates and styles, .NET and WPF markup and projects.
|
||||
export const MASK = '**/*.{md,py,cs,ts,tsx,mts,cts,js,jsx,mjs,cjs,go,rs,ps1,sh,json,yml,yaml,toml,xml,sql,'
|
||||
+ 'html,css,scss,xaml,razor,cshtml,csproj,props,targets}';
|
||||
|
||||
export function collectionName(repoPath) {
|
||||
return 'repo-' + createHash('sha256').update(resolve(repoPath), 'utf8').digest('hex').slice(0, 12);
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Decision Rule
|
||||
|
||||
Apply these rules when requirements are unclear or a significant technical, product, or workflow choice must be made.
|
||||
|
||||
## Decide or ask
|
||||
|
||||
* Gather evidence from the repository, available tooling, and current technical sources before deciding, in proportion to the decision's impact.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Definition of Done
|
||||
|
||||
A task is only considered done when all applicable requirements below are fulfilled.
|
||||
Apply these rules before claiming completion or review readiness. A task is only considered done when all applicable requirements below are fulfilled.
|
||||
|
||||
## Requirements
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ Use one applicable workflow per task, with the research gates below for searches
|
||||
|
||||
Never create or switch branches or worktrees unless the user explicitly requests it; stay on the current branch and do not ask about it. Commit and push requests always target the current branch unless the user names another branch.
|
||||
|
||||
MUST load `plugin-workflow` at the start of every session and task, including questions and prose-only work, and again after resume, compaction, and at phase changes. It coordinates the installed workflow, UI, web, and style plugins; each plugin layer applies only at its own triggers. Reuse loaded instructions and preserve opt-outs.
|
||||
MUST load `plugin-workflow` at the start of every session, including questions and prose-only work, and again after resume and compaction. Within a session, reuse the loaded copy for later tasks and phase changes. Subagents skip it; the parent passes the constraints that apply to the assignment. It coordinates the installed workflow, UI, web, and style plugins; each plugin layer applies only at its own triggers. Reuse loaded instructions and preserve opt-outs.
|
||||
For new or substantially rewritten prose outside the chat (docs, comments, commit/PR bodies, UI copy, messages), MUST apply installed `humanizer`; keep facts, terms, and code. Skip chat replies and small fixes.
|
||||
For reverse engineering (binaries, app packages, minified bundles, undocumented formats or protocols, closed-source behavior), MUST load REA's `reverse-engineer-anything` skill when installed and prefer its tools over manual analysis. Analyze only targets the user is authorized to inspect.
|
||||
Every response: lead with the answer or required user action, number user steps, use Caveman style at the plugin's default level when available; opt-outs apply.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Git Guidelines
|
||||
|
||||
Apply these rules to Git operations: staging, commits, branches, history changes, merges, and pushes.
|
||||
|
||||
## Authorization
|
||||
|
||||
The agent may edit files and run read-only Git commands (status, diff, log, show, fetch for inspection) whenever useful. Every Git write needs an explicit user request for that action, each time:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Agent coordination
|
||||
|
||||
Apply these rules when delegating to subagents, coordinating parallel work, or running long tasks.
|
||||
|
||||
## Ownership and context
|
||||
|
||||
The main agent owns the goal, decisions, shared knowledge, and progress. Subagents report to their parent; the parent routes only relevant conclusions, file/symbol references, unresolved risks, and constraints. Direct peer communication needs a concrete dependency and parent coordination; never create a communication mesh or let subagents spawn agents.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Refactoring Guidelines
|
||||
|
||||
Apply these rules to behavior-preserving refactors: restructuring, renaming, extracting, or removing duplication without changing behavior.
|
||||
|
||||
## Core Rule
|
||||
|
||||
* Refactor only when it improves readability, maintainability, correctness, performance, safety, or architecture.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# API security
|
||||
|
||||
Apply these rules when adding or changing inbound HTTP endpoints, webhooks, request handling, or API (de)serialization.
|
||||
|
||||
* Authenticate protected endpoints and validate every request payload and identifier. Enforce object-level authorization on every read and write, using the authenticated principal and resource ownership at the operation that accesses the data.
|
||||
* Bind only explicitly permitted request fields. Do not allow mass assignment of ownership, role, state, or other privileged properties.
|
||||
* Bound request and response sizes, pagination, query results, and expensive operations.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Authentication and authorization security
|
||||
|
||||
Apply these rules when changing authentication, authorization, sessions, tokens, permissions, or tenant isolation.
|
||||
|
||||
* Use established authentication standards and password hashing; never store plaintext or reversibly encrypted passwords.
|
||||
* Hash passwords with Argon2id (at least m=19 MiB, t=2, p=1); if unavailable, scrypt (N=2^17, r=8, p=1), bcrypt (cost 10 or higher; inputs beyond 72 bytes are truncated, so reject or pre-handle longer passwords), or PBKDF2-HMAC-SHA256 with at least 600,000 iterations where FIPS compliance requires it (OWASP Password Storage Cheat Sheet). Never create password schemes or reduce work factors merely to improve latency; rehash on login when parameters are raised.
|
||||
* Enforce authorization server-side, deny by default, and check it on every request and sensitive operation, including background jobs and alternate API paths. Verify resource ownership and tenant boundaries, and do not trust role or identity values supplied by clients.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Cryptography and secrets security
|
||||
|
||||
Apply these rules when using cryptography or handling secrets, keys, or credentials.
|
||||
|
||||
* Never implement custom cryptographic primitives. Never use MD5 or SHA-1 for security purposes, DES, 3DES, RC4, ECB mode, or unauthenticated CBC.
|
||||
* Use maintained platform cryptography with authenticated encryption, secure randomness, and verified signatures and certificates. Minimum choices (as of OWASP and NIST guidance in 2026; check current guidance when starting a project):
|
||||
* Symmetric encryption: AES-256-GCM with a unique 96-bit nonce per key and message, never reused, or ChaCha20-Poly1305.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Database and data security
|
||||
|
||||
Apply these rules when writing database queries, persistence code, or code that stores or exposes sensitive data.
|
||||
|
||||
* Use parameterized queries or ORM parameter binding; never concatenate untrusted input into SQL.
|
||||
* Parameterize values in every query path, including raw SQL and stored procedures. Allowlist dynamic table names, columns, and sort directions.
|
||||
* Use least-privilege database identities, separate application and migration privileges, and protect connection strings and backup credentials.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# File and process security
|
||||
|
||||
Apply these rules when handling files, uploads, archives, paths, processes, IPC, XML parsing, or deserialization.
|
||||
|
||||
* Validate filenames, content, sizes, and paths; prevent traversal, zip-slip, and unsafe symbolic-link use.
|
||||
* Resolve paths against a trusted root and verify the canonical result remains inside it. Account for symlink or reparse-point changes where an attacker can modify directories.
|
||||
* Restrict filesystem permissions to the intended identity and directory. Use safe temporary-file creation and avoid predictable names or permissive shared locations.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Network and SSRF security
|
||||
|
||||
Apply these rules when making outbound HTTP calls, fetching URLs, configuring proxies or TLS, or guarding against SSRF.
|
||||
|
||||
* Use HTTPS and never disable certificate or TLS validation.
|
||||
* Restrict inbound and outbound access to required ports, interfaces, hosts, and protocols.
|
||||
* Treat user-controlled URLs as dangerous. Allowlist schemes and destinations, reject loopback, link-local, private, and cloud metadata ranges unless explicitly needed, and validate the resolved destination.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Supply-chain security
|
||||
|
||||
Apply these rules when changing dependencies, packages, plugins, builds, containers, infrastructure as code, deployment, or CI.
|
||||
|
||||
* Keep dependencies minimal, maintained, and from verified sources; respect lockfiles and review identity and compatibility before adding or upgrading packages.
|
||||
* Verify package identity, source, maintainer, release history, transitive dependencies, and install-time behavior. Treat typosquats and unexpected ownership changes as risks.
|
||||
* Pin or constrain versions according to project policy, commit lockfiles, and remove unused dependencies. Review lockfile changes instead of hand-editing generated entries.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Web and frontend security
|
||||
|
||||
Apply these rules when changing browser code, cookies, redirects, or defenses against XSS and CSRF.
|
||||
|
||||
* Escape or sanitize untrusted content; never inject untrusted HTML. Bypass framework sanitization (for example Angular `bypassSecurityTrust*` or React `dangerouslySetInnerHTML`) only for compile-time constants, developer-controlled values, or the output of a maintained sanitizer, and state the reason in a comment at the call site.
|
||||
* Encode output for its exact context (HTML, attributes, JavaScript, CSS, or URL). Prefer text APIs and framework-safe templates; use a maintained sanitizer only when rich HTML is required.
|
||||
* Protect state-changing browser requests from CSRF where applicable; validate origin or anti-CSRF tokens and do not treat CORS as authorization.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
---
|
||||
name: plugin-workflow
|
||||
description: MUST load at the start of every session and task, including questions and prose, and again after resume, compaction, and phase transitions, to coordinate installed workflow, UI, and communication plugins. Each plugin layer applies only at its own triggers.
|
||||
description: MUST load at the start of every session, including questions and prose, and again after resume and compaction, to coordinate installed workflow, UI, and communication plugins. Each plugin layer applies only at its own triggers.
|
||||
---
|
||||
|
||||
# Plugin Workflow
|
||||
|
||||
Load this skill for every task. Apply each plugin layer below automatically at its own triggers; development-only layers (Superpowers, Ponytail, Impeccable and Apple Design, Modern Web Guidance) stay idle for questions and prose-only work, while the response layer always applies. User instructions, security, project rules, research gates, and proportional checks retain precedence. Check exposed skills/enabled plugins once per session; cache presence is insufficient. Load actual installed instructions before use; reuse them. Report missing plugins once, continue with shared guidance, and never install or grant trust implicitly. Respect manual-only invocation metadata.
|
||||
Load this skill once per session and again after resume or compaction; reuse it for later tasks. Apply each plugin layer below automatically at its own triggers; development-only layers (Superpowers, Ponytail, Impeccable and Apple Design, Modern Web Guidance) stay idle for questions and prose-only work, while the response layer always applies. User instructions, security, project rules, research gates, and proportional checks retain precedence. Check exposed skills/enabled plugins once per session; cache presence is insufficient. Load actual installed instructions before use; reuse them. Report missing plugins once, continue with shared guidance, and never install or grant trust implicitly. Respect manual-only invocation metadata.
|
||||
|
||||
## Superpowers: process
|
||||
|
||||
@@ -15,7 +15,7 @@ MUST load `using-superpowers` for development tasks and the matching skill befor
|
||||
- Bugs/failures: `systematic-debugging` before fixing. When the failure shows up in a deployed or test environment, run `incident-investigation` first to trace it through remote evidence, then hand its result to `systematic-debugging`.
|
||||
- Performance claims, optimizations, and suspected regressions: `performance-measure` before and after the change; `performance-review` alone only reasons about a diff.
|
||||
- Creating or changing skills, rules, or other agent instructions: `writing-skills`, which tests the instruction against a failing scenario before and after the edit. Keep the repository's `evals/evals.json` files in step with the change. Where `skill-creator` is available, use it only to run those evals or benchmark trigger descriptions; `writing-skills` keeps the process.
|
||||
- Accepted plans: `executing-plans`. Delegation, including Superpowers' subagent workflows, follows the orchestration rules (`rules/orchestration.md` / `rules-orchestration`); a plugin default alone never authorizes subagents. The one exception is the Impeccable agents that the UI loop below names.
|
||||
- Accepted plans: `executing-plans`. Delegation, including Superpowers' subagent workflows, follows the orchestration rules (`rules/orchestration.md` / `rules-orchestration`); a plugin default alone never authorizes subagents. The one exception is the Impeccable agents that `ui-workflow` names.
|
||||
- Behavior requiring regression coverage: `test-driven-development` sets the order (failing test first); `unit-test-write`, `integration-test-write`, or `e2e-test-write` (user journeys through a running UI) decides what to test and how to isolate it.
|
||||
- Review requests/feedback: `requesting-code-review`/`receiving-code-review`, with the review itself run as the Reviews section below describes.
|
||||
- Completion claims: `verification-before-completion`, with matching evidence. When the task has a work item or acceptance criteria, `work-item-verification` maps each criterion to that evidence.
|
||||
@@ -32,41 +32,7 @@ MUST load `ponytail` in `ultra` mode before coding, fixing, refactoring, configu
|
||||
|
||||
## Impeccable and Apple Design: UI
|
||||
|
||||
MUST load `impeccable` and `apple-design` before UI planning, edits, debugging, or review, including accessibility, responsive behavior, UI copy, and frontend performance. Backend-only tasks skip this layer. If one is missing, report it once and run the other alone. Follow installed context setup, relevant references, and launcher fallback within permissions. Preserve the brief and existing design system. Report unavailable previews honestly. Superpowers owns process.
|
||||
|
||||
The two skills work as one design team, each covering the other's blind spot:
|
||||
|
||||
- Impeccable leads direction and execution: project context (PRODUCT.md, DESIGN.md), surface mode, visual world, commands, craft floor, edits, rendered verification, and its detector.
|
||||
- Apple Design leads evidence: platform conventions and accessibility from the Human Interface Guidelines, its eight principles, five lenses, severity scale, and framework translation. It reads the guideline pages before citing them as `file.md › Heading`.
|
||||
|
||||
Run each UI task as one loop:
|
||||
|
||||
1. Context: run Impeccable's context setup. Apple Design pins platform, framework, and the screen's single job, loads its always-load set plus the pages for the components in scope, and hands Impeccable the resulting constraints: target sizes, type minimums, contrast, navigation pattern, and modality rules.
|
||||
2. Direction: Impeccable shapes the work within those constraints. For a new surface or redesign, Apple Design checks the plan once with its improvement-mode critique (would the same plan fit another product?) and names system components for navigation and controls.
|
||||
3. Build: Impeccable reads its craft floor and edits. Navigation and controls use the components Apple Design named; identity lives in color, type, imagery, voice, and a few defining moments.
|
||||
4. Review: run Impeccable `critique` or `audit`, Apple Design's lens review, and the `ui-ux-review` checks on the same rendered result. Merge them into one report in the `review-pull-request` finding schema, mapping Apple Design's severity onto its scale (Critical to blocking, High to important, Medium and Low to minor), with Apple Design's citations, Impeccable's evidence and detector output, and `ui-ux-review`'s task impact. Never deliver separate reports. When the change is a finished build, include `impeccable-finish-reviewer`. When it adds or changes motion, include `impeccable-motion-reviewer`. Both are read-only, and an authorized UI task covers them. Codex registers the Impeccable agents with underscores (`impeccable_finish_reviewer`, and likewise for the others); without them Impeccable runs its degraded in-context review.
|
||||
5. Fix: resolve Critical and High findings through the matching Impeccable command (`harden`, `adapt`, `clarify`, `layout`, `typeset`, `polish`), then run one bounded confirmation pass with both. Do not loop again without new evidence.
|
||||
|
||||
Precedence, highest first; a higher source wins every conflict with a lower one:
|
||||
|
||||
1. The user's direct and personal instructions.
|
||||
2. Project rules: the project's AGENTS.md or CLAUDE.md, PRODUCT.md, DESIGN.md, a pinned brief, and the existing design system and components.
|
||||
3. The shared UI/UX rules (`rules-ui-ux`).
|
||||
4. Apple Design for accessibility and platform conventions, cited from a guideline page that was read.
|
||||
5. Impeccable for visual direction, brand, mode, and ambition, within everything above. Apple Design's craft lens advises it and never flattens personality.
|
||||
|
||||
Accessibility failures are always reported, even when a higher source causes them; name the trade-off and let the user decide. Never silently override a higher source to satisfy a lower one.
|
||||
|
||||
Platform scope: Apple platform conventions apply only where the product targets iOS, iPadOS, or macOS. For web, Android, Windows (WPF, WinUI), and Linux, Apple Design contributes its principles and foundations (accessibility, color, typography, layout, writing) only; that platform's own conventions decide navigation, menus, settings, and window behavior (Material on Android, Fluent and Windows conventions on Windows, browser conventions on the web), together with the matching technology rules such as `rules-wpf` or `rules-angular`.
|
||||
|
||||
Supporting skills join the same loop instead of running beside it. Each keeps its specialty, and the precedence above decides conflicts:
|
||||
|
||||
- Copy has one writer. Impeccable writes interface and marketing copy (`clarify` for fixes). Apple Design's writing lens and the shared content rules check the result in the review step. `humanizer` runs last on new or rewritten copy and keeps labels, terms, length, and platform capitalization. Persuasion stays honest: no fake scarcity, dark patterns, or manipulation.
|
||||
- `media` prepares and optimizes images, video, and audio inside Impeccable's visual world. `impeccable-asset-producer` may produce raster assets from an approved mock.
|
||||
- `impeccable-documenter` writes DESIGN.md after a finished build, but only when the project keeps one or the user asks. `impeccable-manual-edit-applier` runs only for Impeccable's live edit batches. Both write files, so they stay within the task's scope.
|
||||
- Technical reviews such as `wpf-review` and the Angular or WPF rules add their findings to the same merged report.
|
||||
|
||||
Visual restraint from the shared rules is the default for Impeccable's Operate and Read modes. In Persuade and Experience modes, Impeccable's mode sets the ambition unless a higher source pins it.
|
||||
MUST load `ui-workflow` before UI planning, edits, debugging, or review, including accessibility, responsive behavior, UI copy, and frontend performance. It runs Impeccable and Apple Design as one design loop. Backend-only tasks skip this layer.
|
||||
|
||||
## Modern Web Guidance: web platform
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
"prompt": "stop caveman\n\nNow redesign the empty state of the Projects list page so it guides new users to create their first project. It must work on mobile. (Installed: superpowers, ponytail, impeccable, caveman.)",
|
||||
"expected_output": "This is a UI development task. Should load using-superpowers and brainstorming for a feature change, ponytail in ultra mode before coding, and impeccable before UI planning and edits, preserving the existing design system and verifying affected states and responsive layouts. Should honor the 'stop caveman' opt-out: responses should not use Caveman compression style, while i-have-adhd-style structure (answer first) may still apply. Should report unavailable previews honestly. Should not create branches or commits on plugin defaults.",
|
||||
"assertions": [
|
||||
"Loads ui-workflow before planning or editing the UI",
|
||||
"Loads impeccable before planning or editing the UI",
|
||||
"Loads brainstorming or the Superpowers feature workflow before implementing the change",
|
||||
"Loads ponytail in ultra mode before coding",
|
||||
@@ -50,45 +51,6 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"prompt": "Review and improve the settings screen of our Flutter iOS app: lib/screens/settings_screen.dart. The toggles feel cramped and the screen looks generic. (Installed: superpowers, ponytail, impeccable, apple-design.)",
|
||||
"expected_output": "This is a UI development task. Should load impeccable and apple-design before planning. Apple Design should pin platform and framework, load its always-load set plus the settings and toggle pages, and supply cited constraints such as target sizes. Impeccable should lead direction and edits within those constraints. Both should review the same result and produce one merged, deduplicated finding list with Apple Design's severity and citations. Accessibility and platform conventions follow the cited guideline; visual identity follows Impeccable. Ends with one bounded confirmation pass.",
|
||||
"assertions": [
|
||||
"Loads both impeccable and apple-design before planning or editing the UI",
|
||||
"Cites Apple Design guideline pages only after reading them",
|
||||
"Lets Impeccable lead visual direction and edits within the platform and accessibility constraints",
|
||||
"Merges both reviews into one deduplicated finding list with severity",
|
||||
"Resolves accessibility or platform conflicts by the cited guideline, not by visual preference",
|
||||
"Runs at most one confirmation pass after fixes unless new evidence appears"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"prompt": "Polish the order list window in our WPF app (Views/OrderListView.xaml). The project's AGENTS.md says: 'All buttons use our 32px compact height from Styles/Buttons.xaml.' (Installed: superpowers, ponytail, impeccable, apple-design.)",
|
||||
"expected_output": "This is a UI development task on Windows. Should load impeccable and apple-design and the WPF rules. Apple Design should contribute only principles and foundations, not macOS conventions such as the menu bar or settings under the app menu; Windows and WPF conventions decide navigation, menus, and settings. The project's 32px button rule outranks both skills and is kept; if it creates an accessibility issue, the issue is reported as a trade-off for the user to decide rather than silently overridden. Delivers one merged review.",
|
||||
"assertions": [
|
||||
"Loads impeccable, apple-design, and the WPF rules before editing",
|
||||
"Does not apply macOS conventions such as menu bar placement or app-menu settings to the WPF app",
|
||||
"Keeps the project's 32px button height instead of overriding it with Apple Design target sizes",
|
||||
"Reports any resulting accessibility concern as a trade-off for the user to decide",
|
||||
"Delivers one merged review instead of separate reports"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"prompt": "Rework the pricing page in src/app/pricing: new headline and plan copy, better conversion, and add a 'Only 3 spots left' banner to push sign-ups. (Installed: superpowers, ponytail, impeccable, apple-design, humanizer.)",
|
||||
"expected_output": "This is a UI development task on a Persuade surface. Impeccable leads visual direction, edits, and the headline and plan copy; humanizer runs last on the new copy, and Apple Design's writing lens checks it in review. The 'Only 3 spots left' banner is not added unless the scarcity is real; the agent asks or flags it as a dark pattern. Delivers one merged report.",
|
||||
"assertions": [
|
||||
"Lets Impeccable lead the visual direction, edits, and copy of the pricing page",
|
||||
"Runs humanizer on the new copy last",
|
||||
"Does not add the scarcity banner without confirming the scarcity is real",
|
||||
"Delivers one merged report instead of separate skill reports"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"prompt": "Review my last commit before I push it. It changes OrdersController.cs (new endpoint) and OrderRepository.cs (new EF Core query). (Installed: superpowers, ponytail.)",
|
||||
"expected_output": "Uses review-pull-request as the single entry point, applies ponytail-review as the quality lens, adds api-review and efcore-review because the diff touches an endpoint and an EF Core query, and delivers one severity-ordered report in the review-pull-request finding schema with source reviews listed, not one report per skill. Does not run /code-review or caveman-review because the user did not invoke them.",
|
||||
"assertions": [
|
||||
@@ -100,7 +62,7 @@
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"id": 5,
|
||||
"prompt": "stop caveman\n\n(The conversation is later compacted.) Now explain how our hook scripts resolve Python.",
|
||||
"expected_output": "Reloads plugin-workflow after compaction and keeps the earlier stop caveman opt-out: the answer leads with the result but is written in normal prose, not Caveman style. No development layer loads for this question.",
|
||||
"assertions": [
|
||||
@@ -111,19 +73,7 @@
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"prompt": "Finish the onboarding screen redesign we planned, including the new entrance animation.",
|
||||
"expected_output": "Runs the Impeccable and Apple Design UI loop. In the review step it includes impeccable-finish-reviewer for the finished build and impeccable-motion-reviewer for the new animation, without asking for separate subagent approval, and merges their findings into the one report in the review-pull-request schema.",
|
||||
"assertions": [
|
||||
"Uses impeccable-finish-reviewer in the review step",
|
||||
"Uses impeccable-motion-reviewer because motion changed",
|
||||
"Does not ask for extra approval to run these read-only Impeccable agents",
|
||||
"Delivers one merged report"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"id": 6,
|
||||
"prompt": "Refactor the OrderService class to remove the duplicated validation, then commit it.",
|
||||
"expected_output": "Uses Superpowers and Ponytail with the shared refactoring rules, not Caveman's safe-refactor, and writes the commit under the Git rules with a Conventional Commit message and humanizer, not caveman-commit. Caveman only shapes the chat reply.",
|
||||
"assertions": [
|
||||
@@ -134,7 +84,7 @@
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"id": 7,
|
||||
"prompt": "Our sql-write skill doesn't trigger when someone asks for a stored procedure. Fix the skill.",
|
||||
"expected_output": "Loads Superpowers writing-skills, first shows the failing case (a stored procedure request that does not trigger sql-write), then changes the skill description or body, checks the same case again, and adds or updates an entry in the skill's evals/evals.json.",
|
||||
"assertions": [
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
---
|
||||
name: ui-workflow
|
||||
description: MUST load before UI planning, edits, debugging, or review, including accessibility, responsive behavior, UI copy, and frontend performance, to run Impeccable and Apple Design as one design loop. Backend-only tasks skip it.
|
||||
---
|
||||
|
||||
# UI Workflow
|
||||
|
||||
MUST load `impeccable` and `apple-design` before UI planning, edits, debugging, or review, including accessibility, responsive behavior, UI copy, and frontend performance. Backend-only tasks skip this layer. If one is missing, report it once and run the other alone. Follow installed context setup, relevant references, and launcher fallback within permissions. Preserve the brief and existing design system. Report unavailable previews honestly. Superpowers owns process.
|
||||
|
||||
The two skills work as one design team, each covering the other's blind spot:
|
||||
|
||||
- Impeccable leads direction and execution: project context (PRODUCT.md, DESIGN.md), surface mode, visual world, commands, craft floor, edits, rendered verification, and its detector.
|
||||
- Apple Design leads evidence: platform conventions and accessibility from the Human Interface Guidelines, its eight principles, five lenses, severity scale, and framework translation. It reads the guideline pages before citing them as `file.md › Heading`.
|
||||
|
||||
Run each UI task as one loop:
|
||||
|
||||
1. Context: run Impeccable's context setup. Apple Design pins platform, framework, and the screen's single job, loads its always-load set plus the pages for the components in scope, and hands Impeccable the resulting constraints: target sizes, type minimums, contrast, navigation pattern, and modality rules.
|
||||
2. Direction: Impeccable shapes the work within those constraints. For a new surface or redesign, Apple Design checks the plan once with its improvement-mode critique (would the same plan fit another product?) and names system components for navigation and controls.
|
||||
3. Build: Impeccable reads its craft floor and edits. Navigation and controls use the components Apple Design named; identity lives in color, type, imagery, voice, and a few defining moments.
|
||||
4. Review: run Impeccable `critique` or `audit`, Apple Design's lens review, and the `ui-ux-review` checks on the same rendered result. Merge them into one report in the `review-pull-request` finding schema, mapping Apple Design's severity onto its scale (Critical to blocking, High to important, Medium and Low to minor), with Apple Design's citations, Impeccable's evidence and detector output, and `ui-ux-review`'s task impact. Never deliver separate reports. When the change is a finished build, include `impeccable-finish-reviewer`. When it adds or changes motion, include `impeccable-motion-reviewer`. Both are read-only, and an authorized UI task covers them. Codex registers the Impeccable agents with underscores (`impeccable_finish_reviewer`, and likewise for the others); without them Impeccable runs its degraded in-context review.
|
||||
5. Fix: resolve Critical and High findings through the matching Impeccable command (`harden`, `adapt`, `clarify`, `layout`, `typeset`, `polish`), then run one bounded confirmation pass with both. Do not loop again without new evidence.
|
||||
|
||||
Precedence, highest first; a higher source wins every conflict with a lower one:
|
||||
|
||||
1. The user's direct and personal instructions.
|
||||
2. Project rules: the project's AGENTS.md or CLAUDE.md, PRODUCT.md, DESIGN.md, a pinned brief, and the existing design system and components.
|
||||
3. The shared UI/UX rules (`rules-ui-ux`).
|
||||
4. Apple Design for accessibility and platform conventions, cited from a guideline page that was read.
|
||||
5. Impeccable for visual direction, brand, mode, and ambition, within everything above. Apple Design's craft lens advises it and never flattens personality.
|
||||
|
||||
Accessibility failures are always reported, even when a higher source causes them; name the trade-off and let the user decide. Never silently override a higher source to satisfy a lower one.
|
||||
|
||||
Platform scope: Apple platform conventions apply only where the product targets iOS, iPadOS, or macOS. For web, Android, Windows (WPF, WinUI), and Linux, Apple Design contributes its principles and foundations (accessibility, color, typography, layout, writing) only; that platform's own conventions decide navigation, menus, settings, and window behavior (Material on Android, Fluent and Windows conventions on Windows, browser conventions on the web), together with the matching technology rules such as `rules-wpf` or `rules-angular`.
|
||||
|
||||
Supporting skills join the same loop instead of running beside it. Each keeps its specialty, and the precedence above decides conflicts:
|
||||
|
||||
- Copy has one writer. Impeccable writes interface and marketing copy (`clarify` for fixes). Apple Design's writing lens and the shared content rules check the result in the review step. `humanizer` runs last on new or rewritten copy and keeps labels, terms, length, and platform capitalization. Persuasion stays honest: no fake scarcity, dark patterns, or manipulation.
|
||||
- `media` prepares and optimizes images, video, and audio inside Impeccable's visual world. `impeccable-asset-producer` may produce raster assets from an approved mock.
|
||||
- `impeccable-documenter` writes DESIGN.md after a finished build, but only when the project keeps one or the user asks. `impeccable-manual-edit-applier` runs only for Impeccable's live edit batches. Both write files, so they stay within the task's scope.
|
||||
- Technical reviews such as `wpf-review` and the Angular or WPF rules add their findings to the same merged report.
|
||||
|
||||
Visual restraint from the shared rules is the default for Impeccable's Operate and Read modes. In Persuade and Experience modes, Impeccable's mode sets the ambition unless a higher source pins it.
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"skill_name": "ui-workflow",
|
||||
"evals": [
|
||||
{
|
||||
"id": 1,
|
||||
"prompt": "Review and improve the settings screen of our Flutter iOS app: lib/screens/settings_screen.dart. The toggles feel cramped and the screen looks generic. (Installed: superpowers, ponytail, impeccable, apple-design.)",
|
||||
"expected_output": "This is a UI development task. Should load impeccable and apple-design before planning. Apple Design should pin platform and framework, load its always-load set plus the settings and toggle pages, and supply cited constraints such as target sizes. Impeccable should lead direction and edits within those constraints. Both should review the same result and produce one merged, deduplicated finding list with Apple Design's severity and citations. Accessibility and platform conventions follow the cited guideline; visual identity follows Impeccable. Ends with one bounded confirmation pass.",
|
||||
"assertions": [
|
||||
"Loads both impeccable and apple-design before planning or editing the UI",
|
||||
"Cites Apple Design guideline pages only after reading them",
|
||||
"Lets Impeccable lead visual direction and edits within the platform and accessibility constraints",
|
||||
"Merges both reviews into one deduplicated finding list with severity",
|
||||
"Resolves accessibility or platform conflicts by the cited guideline, not by visual preference",
|
||||
"Runs at most one confirmation pass after fixes unless new evidence appears"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"prompt": "Polish the order list window in our WPF app (Views/OrderListView.xaml). The project's AGENTS.md says: 'All buttons use our 32px compact height from Styles/Buttons.xaml.' (Installed: superpowers, ponytail, impeccable, apple-design.)",
|
||||
"expected_output": "This is a UI development task on Windows. Should load impeccable and apple-design and the WPF rules. Apple Design should contribute only principles and foundations, not macOS conventions such as the menu bar or settings under the app menu; Windows and WPF conventions decide navigation, menus, and settings. The project's 32px button rule outranks both skills and is kept; if it creates an accessibility issue, the issue is reported as a trade-off for the user to decide rather than silently overridden. Delivers one merged review.",
|
||||
"assertions": [
|
||||
"Loads impeccable, apple-design, and the WPF rules before editing",
|
||||
"Does not apply macOS conventions such as menu bar placement or app-menu settings to the WPF app",
|
||||
"Keeps the project's 32px button height instead of overriding it with Apple Design target sizes",
|
||||
"Reports any resulting accessibility concern as a trade-off for the user to decide",
|
||||
"Delivers one merged review instead of separate reports"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"prompt": "Rework the pricing page in src/app/pricing: new headline and plan copy, better conversion, and add a 'Only 3 spots left' banner to push sign-ups. (Installed: superpowers, ponytail, impeccable, apple-design, humanizer.)",
|
||||
"expected_output": "This is a UI development task on a Persuade surface. Impeccable leads visual direction, edits, and the headline and plan copy; humanizer runs last on the new copy, and Apple Design's writing lens checks it in review. The 'Only 3 spots left' banner is not added unless the scarcity is real; the agent asks or flags it as a dark pattern. Delivers one merged report.",
|
||||
"assertions": [
|
||||
"Lets Impeccable lead the visual direction, edits, and copy of the pricing page",
|
||||
"Runs humanizer on the new copy last",
|
||||
"Does not add the scarcity banner without confirming the scarcity is real",
|
||||
"Delivers one merged report instead of separate skill reports"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"prompt": "Finish the onboarding screen redesign we planned, including the new entrance animation.",
|
||||
"expected_output": "Runs the Impeccable and Apple Design UI loop. In the review step it includes impeccable-finish-reviewer for the finished build and impeccable-motion-reviewer for the new animation, without asking for separate subagent approval, and merges their findings into the one report in the review-pull-request schema.",
|
||||
"assertions": [
|
||||
"Uses impeccable-finish-reviewer in the review step",
|
||||
"Uses impeccable-motion-reviewer because motion changed",
|
||||
"Does not ask for extra approval to run these read-only Impeccable agents",
|
||||
"Delivers one merged report"
|
||||
],
|
||||
"files": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user