skills
A collection of skills for AI agents (Kiro, Cursor, Windsurf, Claude Code, and others). Each skill is a reusable module that teaches the agent to perform complex tasks with context, structure, and best practices.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
It has changed since its scan on 11 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/fabricioctelles/skills with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/fabricioctelles/skills'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/fabricioctelles-skills)HTML
<a href="/listings/fabricioctelles-skills"><img src="/api/listings/fabricioctelles-skills/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
You can install these skills using any compatible installer or manually. Below are the most popular options.
Via [Skills.sh](https://skills.sh/docs)
npx skills add https://github.com/fabricioctelles/skills
Or install a specific skill:
npx skills add https://github.com/fabricioctelles/skills -s startup-idea npx skills add https://github.com/fabricioctelles/skills -s revenue-centric-design npx skills add https://github.com/fabricioctelles/skills -s geo-optimization npx skills add https://github.com/fabricioctelles/skills -s substack-expert npx skills add https://github.com/fabricioctelles/skills -s humanizar npx skills add https://github.com/fabricioctelles/skills -s human-ai npx skills add https://github.com/fabricioctelles/skills -s pier-cloud npx skills add https://github.com/fabricioctelles/skills -s coolify-operator npx skills add https://github.com/fabricioctelles/skills -s astro-sites-manager npx skills add https://github.com/fabricioctelles/skills -s security-specialist npx skills add https://github.com/fabricioctelles/skills -s ultimate-design-system-master npx skills add https://github.com/fabricioctelles/skills -s design-md-validator npx skills add https://github.com/fabricioctelles/skills -s skill-evaluation npx skills add https://github.com/fabricioctelles/skills -s slop-eval npx skills add https://github.com/fabricioctelles/skills -s agent-plugin-eval npx skills add https://github.com/fabricioctelles/skills -s agent-ready-cloudflare npx skills add https://github.com/fabricioctelles/skills -s auth-md npx skills add https://github.com/fabricioctelles/skills -s pstack-skill npx skills add https://github.com/fabricioctelles/skills -s okf-open-knowledge-format npx skills add https://github.com/fabricioctelles/skills -s ralph-loop-kiro-specs npx skills add https://github.com/fabricioctelles/skills -s loop-architect npx skills add https://github.com/fabricioctelles/skills -s resume-ats-beater
Via [SkillKit](https://github.com/rohitg00/skillkit)
A package manager for skills with cross-agent translation. Runs with zero install:
npx skillkit add fabricioctelles/skills
Or install the CLI globally:
npm install -g skillkit # full npm install -g skillkit --omit=optional # slim, ~75% smaller, no native addons skillkit install fabricioctelles/skills
Target specific agents (46 supported, including Claude Code, Cursor, Codex, Gemini CLI, Windsurf, Copilot, OpenCode, Kiro):
skillkit install fabricioctelles/skills --agent claude-code,cursor
**Cross-agent translation** — rewrites a skill into another agent's format:
skillkit translate humanizar --to cursor skillkit translate --all --to windsurf,codex skillkit translate slop-eval --to copilot --dry-run
`skillkit recommend` suggests skills based on your project's stack, and `skillkit ui` opens an interactive TUI.
Via [Agent Skills CLI](https://www.agentskills.in/docs)
npm install -g agent-skills-cli
Then install the skills:
skills add https://github.com/fabricioctelles/skills
Or use without global install:
npx agent-skills-cli install https://github.com/fabricioctelles/skills
Manual Installation
1. Clone this repository:
git clone https://github.com/fabricioctelles/skills.git
2. Copy the desired skill folder to your agent's skills directory:
# Example for Cursor cp -r skills/geo-optimization .cursor/skills/ cp -r skills/substack-expert .cursor/skills/ cp -r skills/pier-cloud .cursor/skills/ cp -r skills/ultimate-design-system-master .cursor/skills/ cp -r skills/resume-ats-beater .cursor/skills/ cp -r skills/coolify-operator .cursor/skills/ cp -r skills/agent-ready-cloudflare .cursor/skills/ cp -r skills/ralph-loop-kiro-specs .cursor/skills/ cp -r skills/loop-architect .cursor/skills/ cp -r skills/humanizar .cursor/skills/ cp -r skills/auth-md .cursor/skills/
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 826 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.
- 🇧🇷 [Versao em Portugues do Brasil](README-PT-BR.md)
- [](https://skills.sh/fabricioctelles/skills)
- [](https://agentskill.sh/@fabricioctelles)
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- # 🧠 AI Agent Skills — Open Source Collection for Claude Code, Cursor, Kiro & OpenCode
- 26 production-ready skills for AI coding agents. Install with one command, use across Claude Code, Cursor, Kiro, Windsurf, and OpenCode. Each skill teaches the agent to perform complex tasks — from rigorous engineering (pstack) to text humanization, SEO audits, and infrastructure automation.
- [Agent Skills](https://agentskills.io) are a lightweight, open format for extending AI agent capabilities. Each skill is a folder with a `SKILL.md` file containing metadata and instructions that agents load on demand. Learn more at [agentskills.io](https://agentskills.io/what-are-skills.md).
- ## OpenAI plugin: Deslop Writing
- [Deslop Writing](plugins/deslop-writing/README.md) bundles English (`human-ai`)
- and Brazilian Portuguese (`humanizar`) editing workflows in a portable plugin
- for ChatGPT and Codex, with no MCP server or external evaluator.
- ```bash
- codex plugin marketplace add fabricioctelles/skills --ref main
- codex plugin add deslop-writing@skilldev-pro
- ```
- Start a new session after installation, then ask Deslop Writing to edit your draft.
- ## 🧠 Skills with TypeSafe Jev Integration
- Four skills now support optional integration with [TypeSafe Jev](https://github.com/AugmentHCI/typesafe-jev) — a judgment engine that provides calibrated probability assessments (Score) and categorical classifications (Noul) for subjective evaluation criteria. When Jev is available, these skills use it for nuanced quality judgments; when unavailable, they fall back to heuristic methods.
- | Skill | Jev Use Case | Questions |
- |-------|--------------|-----------|
- | [humanizar](#-humanizar--ai-text-humanizer-for-brazilian-portuguese--code-quality-and-review) | Pattern severity, voice match quality, rewrite confidence | 8 Score + 12 Noul |
- | [human-ai](#-human-ai--ai-text-humanizer-for-english--code-quality-and-review) | Pattern severity, voice match quality, rewrite confidence | 8 Score + 12 Noul |
- | [slop-eval](#-slop-eval--design-slop-evaluator--code-quality-and-review) | Tell severity, axis quality, section classification | 8 Score + 16 Noul |
- | [agent-plugin-eval](#-agent-plugin-eval--product-verification) | UX coherence, documentation clarity, schema design, secret detection | 7 Score + 19 Noul |
- Each skill includes:
- - `scripts/jev_questions.json` — question definitions with context requirements
- - `references/jev-integration.md` — integration patterns and code examples
- - Discovery protocol in SKILL.md — check `jev_available()` before use
- ## Available Skills
- ### 💡 Startup Idea [](https://www.skillsdirectory.com/skills/fabricioctelles-startup-idea) · `data-fetching-and-analysis`
- Analyzes a startup idea through three lenses at once: Paul Graham (pressure test, founder-market fit, brutal validation), Dan Koe (monetization, offer, distribution, sales) and Seth Godin (differentiation, narrative, smallest viable audience). Delivers a pressure test, a monetization path, the minimum viable audience, a remarkability check and an action plan — not a generic canvas.
- **When to use:** validate a startup idea, pressure-test a business model, define the MVP, find the first customers, design the revenue model, plan go-to-market, chase product-market fit, or any variation of "I have an idea".
- 📄 [View full documentation](skills/startup-idea/SKILL.md)
- ---
- ### 🔍 GEO Optimization (Generative Engine Optimization) [](https://www.skillsdirectory.com/skills/fabricioctelles-geo-optimization) · `code-quality-and-review`
- Optimizes digital content and marketing strategies for Generative Engines (LLMs, AI agents) to maximize citations in AI responses.
- **When to use:** improve visibility in AI responses (ChatGPT, Perplexity, Google AI Overview), measure citation rate, align terminology for LLMs, audit pages for AI, create optimized roundups and FAQs.
- **Improvements in v1.1 (Mar 2026):**
- - Moved Guiding Principles and case study context to `references/guiding-principles.md`
- - Fixed second-person language to imperative form throughout
- - Added explicit default action (Full GEO Audit) when no specific request is made
- - Converted Edge Cases section into a structured Quality Checklist with checkboxes
- - Description optimized to be more concise and actionable (Mar 8)
- 📄 [View full documentation](skills/geo-optimization/SKILL.md)
- ---
- ### 📰 Substack Expert [](https://www.skillsdirectory.com/skills/fabricioctelles-substack-expert) · `library-and-api-reference`
- Substack platform expert. Guides post formatting, SEO optimization (titles, slugs, meta descriptions), native engagement strategies (Notes, Chat), and conversion to paid subscriptions.
- **When to use:** format and optimize Substack posts, improve newsletter SEO (titles, slugs, meta descriptions), grow audience with Notes and recommendations, convert free readers to paid subscribers, customize homepage and welcome emails.
- **Improvements in v1.1 (Mar 2026):**
- - Removed duplicate Overview section and stray Portuguese artifact/orphaned code fence
- - Moved formatting tips to `references/formatting-best-practices.md`
- - Moved Input/Output Examples to `references/seo-output-example.md`
- - Added Parameters table with defaults for topic, goal, and language
- - Added explicit Clarify Scope step for ambiguous requests
- - Added Quality Checklist with 8 pre-delivery verification points
- 📄 [View full documentation](skills/substack-expert/SKILL.md)
- ---
- ### ☁️ Pier Cloud API [](https://www.skillsdirectory.com/skills/fabricioctelles-pier-cloud) · `library-and-api-reference`
- Complete guide to consuming the [Pier Cloud](https://piercloud.com/en/) (Lighthouse) API with authentication, context management, workspaces, and data views.
- *Note: The documentation for this skill is in Portuguese, but it can be used in any language.*
- **When to use:** authenticate with Pier Cloud, list available contexts (AWS, etc), manage workspaces, access cost analysis views, run FinOps scripts.
- **Improvements in v1.1 (Mar 2026):**
- - Rewrote description to third-person trigger format
- - Removed verbatim Overview section that duplicated the frontmatter description
- - Fixed broken and incomplete Prerequisites section
- - Converted second-person language to imperative form throughout
- - Cleaned up workflow links to properly defer to `references/REFERENCE.md`
- - Added Quality Checklist
- 📄 [View full documentation](skills/pier-cloud/SKILL.md)
- ---
- ### 🎨 Ultimate Design System Master [](https://www.skillsdirectory.com/skills/fabricioctelles-ultimate-design-system-master) · `code-scaffolding-and-templates`
- Generates Apple/Pentagram/frog/Vercel/Figma-level design deliverables using 10 specialized role-play prompts. Covers Design Systems, Brand Identity, UI/UX Patterns, Marketing Assets, Figma Specs, Design Critique, Trend Analysis, Accessibility Audit, Design-to-Code, and Executive Presentations.
- **When to use:** create a design system, build brand identity, generate UI/UX patterns, produce marketing assets, write Figma specs, get design critique, analyze design trends, run accessibility audit, translate design to code, create presentation decks.
- **Improvements in v2.1 (Mar 2026):**
- - Rewrote description to third-person trigger format
- - Moved 18-question Briefing Questionnaire to `references/briefing-questionnaire.md`
- - Added Quality Checklist with 5 concrete verification conditions
- - Removed intro sentence that duplicated frontmatter description
- **Improvements in v2.2 (Mar 8, 2026):**
- - Description rewritten with user-spoken trigger phrases for better skill activation
- - License Apache 2.0 added to metadata
- - Full compliance with Official Anthropic Guide for Agent Skills achieved
- 📄 [View full documentation](skills/ultimate-design-system-master/SKILL.md)
- ---
- ### 🗂️ Front-End Checklist _(moved)_
- > **This skill has been retired.** The original project now offers 385 self-contained skills (one per rule) covering HTML, CSS, JavaScript, Performance, Accessibility, SEO, Security, Images, Testing, Privacy, and Internationalization — far more complete than what we maintained here.
- >
- > 👉 **Install directly from:** https://github.com/thedaviddias/Front-End-Checklist/tree/main/skills
- >
- > ```bash
- > npx skills add frontendchecklist/skills
- > ```
- ---
- ### 🚀 Coolify Operator[^coolify-grade] · `ci-cd-and-deployment`
- Master operator for Coolify — the self-hosted open-source deployment platform (alternative to Heroku/Vercel/Netlify). Complete coverage of the official CLI with 100+ commands for managing applications, servers, databases, services, GitHub Apps, and cloud provider integrations.
- **When to use:** connect to Coolify instances, create/deploy/restart/stop applications, manage environment variables and storage, configure database backups, list servers and databases, monitor deployment logs, manage multiple environments (dev/staging/prod), integrate with GitHub Apps, provision servers on Hetzner/DigitalOcean/Vultr/Hostinger.
- **Key features:**
- - **Application creation** (5 methods): public repo, GitHub App, deploy key, Dockerfile, Docker image
- - **Full lifecycle management**: start, stop, restart, delete, move between environments
- - **Environment variables**: list, create, update, delete, sync from .env files
- - **Storage management**: persistent volumes, file mounts, directory mounts
- - **Database backups**: scheduled backups with S3/local retention, trigger on-demand
- - **Deploy module**: deploy by UUID, name, or batch multiple resources at once
- - **GitHub Apps**: create integrations, list accessible repos and branches
- - **Services (one-click)**: WordPress, Ghost, n8n, and 50+ more with sub-resource management
- - **Infrastructure**: destinations, cloud tokens (Hetzner/DO/Vultr/Hostinger), private keys, tags, Docker registry logins, server roles
- - **Restore & governance**: database import (file, upload, S3, server path), team audit log, Doppler/Infisical/Vault secret managers
- **New in v3.4 (Oct 29, 2026):**
- - Pinned to coolify-cli v1.11.0 and Coolify v4.5.3
- - Added `server hostinger catalog|data-centers|templates|ssh-keys|post-install-scripts` and `server hostinger create` (paid VPS purchase, confirmation prompt — never use `--force` in automation)
- - Documented sensitive-field masking in `table`, `json`, and `pretty` output, with `-s` to reveal; `context get` never prints the token
- - Added `--provider hostinger` to cloud token management
- **New in v3.3 (Oct 28, 2026):**
- - Reviewed Coolify v4.5.3: sensitive-data permissions, Cloudflare client IP allow-lists, service deletion change, timeout retry behavior
- - Documented CLI `mcp enable|disable`, MCP endpoint setup and token permissions
- - Added notes on preview variables, build fixes, update backups, server patching beta, and the v4.4.7 security update
- **New in v3.2 (Oct 19, 2026):**
- - Pinned to coolify-cli v1.10.0 and Coolify v4.4.6
- - Added `app previews list/get/create/update/logs` (full preview deployment CRUD + runtime logs)
- - Added `database import` and `service database import` (start/upload/status)
- - Added `audit list`, `integration-token create`, `app secret-manager set`
- - Added `server registry list/login/check/logout`, `server remove --force/--delete-from-provider`, `--server-role`
- - Documented the new `server get --resources` output (flat resource list)
- **New in v2.0 (Aug 15, 2026):**
- - Complete rewrite covering 100% of official Coolify CLI commands
- - Added `app create` (5 variants: public, github, deploy-key, dockerfile, dockerimage)
- - Added `app storage`, `app deployments`, `app previews`, `app tags`
- - Added `database create/backup/storage/env/tags` with full backup management
- - Added `service create --list-types`, `service application`, `service database` sub-resources
- - Added `deploy uuid/name/batch` module with `deploy list/get/cancel`
- - Added `github list/get/create/update/delete/repos/branches` for GitHub Apps
- - Added `projects`, `resources`, `tags`, `destinations`, `cloud-token`, `private-key`
- - Added LLM/AI Agent integration section with llms.txt references
- - Updated to match latest CLI documentation
- **Latest updates:** Image vulnerability scanning through the REST API and a GitLab App cloning workflow for supported Coolify versions.
- 📄 [View full documentation](skills/coolify-operator/SKILL.md)
- [^coolify-grade]: The Skills Directory assigned this skill **F (0/100)** after its automated scan flagged remote installer execution (`curl | bash`, `irm | iex`), private-key references, bearer-token API examples, destructive commands, and package installation. These pattern matches do not establish malicious intent: the API examples send credentials to the configured Coolify host, which the scanner cannot verify. Remote script execution and destructive commands still carry real risk; review them before use. See the [scan](https://www.skillsdirectory.com/skills/fabricioctelles-coolify-operator) and [scanning methodology](https://www.skillsdirectory.com/security/methodology).
- ---
- ### 📄 Resume ATS Beater + LinkedIn Optimizer [](https://www.skillsdirectory.com/skills/fabricioctelles-resume-ats-beater) · `code-scaffolding-and-templates`
- Rewrites resumes for ATS compatibility and audits LinkedIn profiles for professional positioning. Covers CV optimization for Brazilian ATS platforms (Gupy, Vagas.com, PandaPé, Sólides) and LinkedIn audit with heuristic scoring, SSI analysis, fix prompts, and LLM rewrite mega-prompts. Works for any specialized profession — not dev-only.
- **When to use:** optimize resume for ATS, audit LinkedIn profile (headline, about, experiences, SSI), adapt CV to target role/industry, generate fix prompts per finding, align CV and LinkedIn in unified mode, improve bullets with measurable outcomes. Integrates with `humanizar` skill for narrative sections.
- **Improvements in v2.0 (Jun 2026):**
- - Added `modo_linkedin` (full profile audit with scoring) and `modo_unificado` (CV + LinkedIn with consistency check)
- - LinkedIn audit: headline format enforcement (Position | Areas | Tools·), about structure, experience bullets, language, skills, featured, SSI
- - Punitive scoring system: 100 - (critical×15 + warning×6 + info×2)
- - SSI analysis with 4 pillars, classification by tier, and actionable tips
- - Fix prompts per finding (standalone prompts for any LLM)
- - Mega-prompt for full profile rewrite by LLM
- - 18 career presets across tech, data, marketing, finance, engineering, legal, sales, HR, product
- - Integration with `humanizar` skill (scoped to About/Summary sections)
- - 3 new reference files: `auditoria-linkedin.md`, `ssi.md`, `presets-formatos.md`
- 📄 [View full documentation](skills/resume-ats-beater/SKILL.md)
- ---
- ### 🤖 Agent Ready — Cloudflare Scanner [](https://www.skillsdirectory.com/skills/fabricioctelles-agent-ready-cloudflare) · `product-verification`
- Audits any website for AI agent readiness using the Cloudflare [isitagentready.com](https://isitagentready.com) scanner. Scans 23 checks across 5 categories (Discoverability, Content, Bot Access Control, API/Auth/MCP Discovery, Commerce), assigns a level (0–5), and generates copy-paste fix prompts for every failing check. Includes 25 implementation sub-skills covering robots.txt, sitemap, Markdown for Agents, Content Signals, MCP Server Card, A2A Agent Card, Agent Skills Index, OAuth, WebMCP, and more.
- **When to use:** scan a site for agent readiness, check agent-ready score, fix failing checks, implement MCP Server Card, add Content Signals, publish Agent Skills index, set up Markdown for Agents, batch scan multiple domains, improve AI agent discoverability.
- 📄 [View full documentation](skills/agent-ready-cloudflare/README.md)
- ---
- ### ✅ DESIGN.md Validator [](https://www.skillsdirectory.com/skills/fabricioctelles-design-md-validator) · `product-verification`
- Validates DESIGN.md files against the official [Google design.md specification](https://github.com/google-labs-code/design.md) using the `@google/design.md` CLI linter. Works with local files and remote URLs. Always uses `npx` to run the latest published version — never stale.
- **When to use:** lint a DESIGN.md for spec compliance, check WCAG contrast ratios, find broken token references, diff two design system versions, export tokens to Tailwind v3/v4 or W3C DTCG format, audit frontmatter schema.
- 📄 [View full documentation](skills/design-md-validator/SKILL.md)
- ---
- ### 🔁 Ralph Loop for Kiro Specs [](https://www.skillsdirectory.com/skills/fabricioctelles-ralph-loop-kiro-specs) · `code-scaffolding-and-templates`
- Automated iterative agent runner for spec-based development in [Kiro](https://kiro.dev). Wraps `kiro-cli` in a self-correcting bash loop that picks up tasks from a Kiro spec, implements them one at a time, verifies against exit criteria, and accumulates corrections and codebase patterns across iterations. Based on [ralph-loop-kiro-specs](https://github.com/mreferre/ralph-loop-kiro-specs) by [mreferre](https://github.com/mreferre).
- **When to use:** automate Kiro spec task implementation, run kiro-cli in a loop, drive a spec to completion through repeated agent iterations, set up or troubleshoot the Ralph Loop workflow, understand progress tracking, corrections, codebase patterns, and the summary dashboard.
- 📄 [View full documentation](skills/ralph-loop-kiro-specs/SKILL.md)
- ---
- ### 🏗️ Loop Architect — Agent Loop Design Coach [](https://www.skillsdirectory.com/skills/fabricioctelles-loop-architect) · `code-scaffolding-and-templates`
- Design well-structured agent loops with best-practice coaching and cross-model review gates before you run them. Interviews you, critiques your design against built-in rubrics, wires in reviewers/judges, and emits portable artifacts (`loop.yaml`, `RUN_IN_SESSION.md`, `run-loop.py`). Integrates natively with Kiro CLI's `/goal` and subagent review loops. Based on [Looper](https://github.com/ksimback/looper) by [Kevin Simback](https://github.com/ksimback).
- **When to use:** design an agent loop, set up a self-review or LLM-as-judge loop, build a multi-model council, create review-gated iterative workflows, or scaffold a `/goal`-driven process with typed verification and termination guards.
- 📄 [View full documentation](skills/loop-architect/SKILL.md)
- ---
- ### 👑 Pstack Skills — 23 Playbooks for Claude Code, Cursor & OpenCode [](https://www.skillsdirectory.com/skills/fabricioctelles-pstack-skill) · `code-quality-and-review`
- Self-contained port of Lauren Tan's [pstack](https://github.com/cursor/plugins/tree/main/pstack) (`poteto-mode`) — 23 playbooks, 31 procedures, 24 engineering principles. No plugin install, no Cursor required. Runs in Claude Code, Cursor, Kiro, and OpenCode. One orchestrator that reads your task, picks the right playbook (bug fix, feature, refactoring, perf, investigation, prototype, babysit, shipping, autonomous run, orchestrate), routes to bundled procedures (how, why, architect, arena, swarm, interrogate, unslop, tdd), and applies engineering principles with traceable citations.
- **When to use:** any task that needs rigor — nontrivial code changes, architecture decisions, debugging with repro-first discipline, adversarial reviews, PR babysitting and shipping, long autonomous runs — or "poteto-mode", "work like poteto", "pstack". Works single-model; panels degrade to fresh-context passes without weakening any verification gate.
- **Version 1.7:** Model roles are provider-agnostic and use capabilities available in the current environment. `how` and `why` provide focused explanations, and statechart includes improved Mermaid rendering and SANY error reporting.
- 📄 [View full documentation](skills/pstack-skill/README.md)
- ---
- ### ✍️ Humanizar — AI Text Humanizer for Brazilian Portuguese [](https://www.skillsdirectory.com/skills/fabricioctelles-humanizar-skills) · `code-quality-and-review`
- Strips mechanical writing signals from Brazilian Portuguese text and restores rhythm, precision, and voice. Removes AI slop patterns, restores semantic entropy, and injects voice and personality. The goal is a better text, not a fooled detector: no rewrite can guarantee that a tool will classify the result as human, and the skill treats AI-detector scores as an invalid criterion. Born from the English `humanizer` skill but evolved into something far more complete — with 55+ patterns specific to PT-BR that no other source has cataloged.
- **Origin story:** I started from the English [humanizer](https://github.com/blader/humanizer) skill by [@blader](https://github.com/blader) (based on Wikipedia's "Signs of AI writing"), researched what makes AI text detectable specifically in Brazilian Portuguese, discovered there was *zero* consolidated material on PT-BR AI patterns, cataloged 55+ patterns from scratch (including 10 exclusive to Brazilian Portuguese like gerundismo, officialese, and ENEM-style hedging), incorporated the [tropes.fyi](https://tropes.fyi) directory and the concept of [semantic ablation](https://www.theregister.com/2026/02/16/semantic_ablation_ai_writing/) (The Register, 2026), and built a skill that doesn't just remove bad patterns — it restores the entropy that AI strips away.
- **Why it's better for PT-BR than the original:**
- - 55+ patterns vs 25 (including 10 that only exist in Brazilian Portuguese)
- - Semantic entropy restoration with explicit alerts (not just removal)
- - 6 voice presets calibrated for Brazilian contexts (crônica, journalistic, academic, corporate, social media, WhatsApp)
- - Examples are culturally Brazilian, not translations from English
- - Preserves naturalized foreign words (feedback, deploy, churn) — fighting linguistic purism is itself a humanization signal
- - Uses the Brazilian *crônica* literary tradition as the gold standard for natural writing
- **When to use:** humanize PT-BR text, remove AI slop, rewrite with voice, fix generic/bureaucratic tone, review text from another agent, "tirar cara de IA", "dar vida ao texto".
- **Improvements in v1.2 (Jun 2026):**
- - Added automatic document type detection with fallback (Step 0.5) — auto-selects the best voice preset
- - Added post-rewrite scoring with 5 weighted dimensions (Step 5.5) — quantifiable quality gate
- - Added iterative loop with strategy fallback — retries with different approaches when score < 60
- - Loop protocol compatible with external orchestrator skills (ralph-wiggum, goal)
- - Inspired by [humanize-it](https://github.com/smallnest/goal-workflow/blob/master/skills/humanize-it/SKILL.md) by [@smallnest](https://github.com/smallnest)
- **New in v1.3 (Jul 2026):**
- - Added **📋 Português Simplificado** voice profile — accessible writing inspired by PorSimples (NILC/USP) and Brazil's Lei 15.263/2025 (National Plain Language Policy)
- - 7 syntactic simplification operations based on PorSimples research (sentence splitting, passive→active, SVO reordering, discourse marker substitution, apposition removal, lexical simplification, subject explicitation)
- - New reference file `references/padroes-portugues-simplificado.md` with ~50 lexical substitutions, quantitative metrics from NILC-Metrix (ASL, TTR, syntactic complexity), 15 writing rules in 3 priority levels, and 4 application domains (government, health, tech, education)
- - Integration with TRAVA FACTUAL: explicit rules for when NOT to simplify (modality, causality, exceptions)
- - Now 10 voice profiles (was 9): Crônica, Jornalístico, Acadêmico, Corporativo Informal, Post de Rede Social, WhatsApp, Jurídico, Didático, **Português Simplificado**, and Voz Neutra
- **New in v1.5 (Sep 2026):**
- - 3 new **rapid-consumption profiles** inspired by the [Attention-Span](https://github.com/alexgreensh/attention-span) project: **➡️ Assertivo** (short paragraphs, arrows, bold lead-ins), **🔹 Enxuto** (facts only, checklists, zero fluff), and **📊 Resumo** (maximum compression for busy executives) — regras comuns adaptadas de [i-have-adhd](https://github.com/ayghri/i-have-adhd) (MIT)
- - New reference file `references/padroes-consumo-rapido.md` with formatting rules, cut rules, TRAVA FACTUAL integration, and verification checklist
- - Updated Step 1 (detection) with 3 new automatic signals
- - Updated Step 3 (references) with the new rapid-consumption reference
- - Updated Step 5 (voice application) with Apply/Avoid for all 3 profiles
- - Updated Step 6 (false-positive guard) with 6 specific exceptions: bold lead-ins, arrows, short sentences, checklists, long lists, and single-line paragraphs
- - Added brevity verification in Step 7 (5 items): propositions preserved, warnings not removed, scope not generalized, modality preserved, exact numbers kept
- - **TRAVA FACTUAL reinforced:** brevity compresses *form*, not *content* — never omit warnings, numbers, or scope conditions
- - Now **13 voice profiles** (was 10)
- **New in v1.4 (Aug 2026):**
- - Added **Step 6 — false-positive guard**, which runs before final verification and *unmarks* signals that are not AI at all: flawless grammar, dry prose, legal/academic register, dialogue em-dashes, isolated connectives, curly quotes on their own, correct commas, scoped hedging, real alternatives. Includes an explicit warning against AI-detector scores, which misfire against neurodivergent and non-native writers
- - Added **human marks to preserve** — contractions (`pra`, `tá`, `cê`), regionalisms (`uai`, `oxe`, `tchê`), mixed feelings, parenthetical self-correction, dated slang, sentence-length variation. The skill must not "fix" these by standardization
- - Added **`modo_criacao`** (writing from scratch): the pattern list becomes an output filter rather than a repair pass. Write first, then sweep — starting with the five patterns that account for most slips in new text
- - Five new patterns: fabricated source (a *specific* reference that does not exist — never repair it, flag it), title echo, false alternative rejected, documentation describing the previous version, and t-shirt maxim
- - Em-dash recalibrated from weight 1 to **weight 2**, with a mandatory sweep for `—`, `–` and ` -- ` before delivery, plus explicit exceptions (fiction dialogue, author sample)
- - Regression suite extended to T8 (human-mark preservation and fabricated-source handling)
- **Credits and sources for `humanizar`:**
- The false-positive guard, the human-marks list, the from-scratch writing mode and five patterns were incorporated from [PedroLLou/humanizador](https://github.com/PedroLLou/humanizador) (MIT), the Brazilian Portuguese version of [blader/humanizer](https://github.com/blader/humanizer) (MIT), which in turn derives from [Wikipedia: Signs of AI writing](https://en.wikipedia.org/wiki/Wikipedia:Signs_of_AI_writing), maintained by WikiProject AI Cleanup.
- Portuguese-language sources behind those adaptations:
- - Marcelo Sabbatini, ["Texto chocho: como identificar a escrita da IA?"](https://iaedpraxis101.substack.com/p/texto-chocho-como-identificar-a-escrita), IAEdPraxis — source for *crucial* and *mergulhar* as PT-BR markers, generic adjectives, the serial comma and the period-inside-quotes convention
- - Marina Semensato, ["Como saber se um texto foi feito por inteligência artificial?"](https://exame.com/tecnologia/examelab/como-saber-se-um-texto-foi-feito-por-inteligencia-artificial/), Exame — connective overuse, conclusions that only restate the text, forced triads and "não é X, é Y"
- - [Inteligência artificial na Wikimedia](https://pt.wikipedia.org/wiki/Intelig%C3%AAncia_artificial_na_Wikimedia), Portuguese Wikipedia — em-dash overuse, "além disso" overuse, promotional material, curly quotes and non-existent references
- - Pew Research Center, ["How Much of the Internet Is Written With AI?"](https://www.pewresearch.org/data-labs/2026/08/20/how-much-of-the-internet-is-written-with-ai/) (2026) — measures the growth of em-dashes, serial commas and negative parallelism. **The sample covers English-language pages only**, so it is evidence of the mechanism, not of Portuguese
- **Confidence levels.** No single pattern proves artificial origin; the signal is accumulation. These have direct support in published Portuguese sources or in released measurements: AI vocabulary, negative parallelism ("não apenas X, mas Y"), the aparte em-dash, decorative emoji, curly quotes, chatbot leftovers, stacked connectives, English-imported punctuation and fabricated sources. The rest are heuristics, not proof.
- The **Português Simplificado** profile derives its operations from the PorSimples project (NILC/USP) and the techniques associated with Brazil's Lei 15.263/2025 (National Plain Language Policy).
- 📄 [View full documentation](skills/humanizar/SKILL.md)
- ---
- ### 🌐 Human-AI — AI Text Humanizer for English [](https://www.skillsdirectory.com/skills/fabricioctelles-human-ai-skills) · `code-quality-and-review`
- Strips mechanical writing signals from English text and restores rhythm, precision, and voice. Combines pattern detection (43 patterns across 3 tiers), statistical rhythm measurement (burstiness, TTR, entropy), and voice injection into a single iterative skill. Built on research from the RAID Benchmark (ACL 2024) and NeurIPS 2023. Same positioning as `humanizar`: the metrics are measurable proxies for natural rhythm, not a scoreboard to beat, and detector scores never decide what gets rewritten.
- **Origin story:** Companion to the PT-BR `humanizar` skill, but 100% original English work. Synthesizes the best of three open-source humanizer skills: [blader/humanizer](https://github.com/blader/humanizer) (10.6K stars, 29 patterns), [brandonwise/humanizer](https://github.com/brandonwise/humanizer) (560-term vocab filter, statistical signals), and [Aboudjem/humanizer-skill](https://github.com/Aboudjem/humanizer-skill) (43 patterns, P31-P43 emerging 2026 discoveries). Goes beyond all three by adding: research-calibrated empirical baselines, iterative scoring with strategy fallback, 7 voice presets, a `scripts/measure.py` for deterministic metrics, and the critical insight that synonym-swapping changes nothing while structural paraphrasing does — the RAID study measured that as detector accuracy dropping from 70.3% to 4.6%, which is evidence about rhythm and sentence architecture, not a goal in itself.
- **Why it's different from the existing humanizer skills:**
- - 43 patterns (including P31-P43 emerging patterns from 2026 community research)
- - Research-backed metrics: TTR human 0.553 vs AI 0.455 (SSRN), burstiness +0.70 vs 0.00 (GPTZero)
- - `scripts/measure.py` — deterministic TTR/burstiness/entropy calculation (zero dependencies)
- - 7 voice presets calibrated for English contexts (essay, journalistic, academic, corporate, social, casual, legal, instructional)
- - Anti-synonym-swap enforcement: Step 2 requires full sentence restructuring, not word replacement
- - 7 documented gotchas from real-world humanizer skill failures
- - Iterative loop with scoring (0-100) and strategy fallback table
- - Composes with external loop skills (ralph-wiggum, goal)
- **When to use:** humanize English text, remove AI slop, de-slop content, make text sound human, add voice, fix bland/generic tone, bypass AI detection, pass GPTZero/Originality.ai, review text from another agent, rewrite naturally.
- 📄 [View full documentation](skills/human-ai/SKILL.md)
- ---
- ### 🔐 auth.md — Agent Authentication Protocol [](https://www.skillsdirectory.com/skills/fabricioctelles-auth-md-skills) · `library-and-api-reference`
- Generates, validates, and explains [auth.md](https://auth-md.com) files — the open protocol that lets AI agents register for services on behalf of users without signup forms. Supports the Agent Verified flow (ID-JAG identity assertions via trusted providers like OpenAI, Anthropic, Cursor) and the User Claimed flow (OTP-based registration with anonymous start or email required entrypoints). Extends RFC 9728 (Protected Resource Metadata) with CIMD support.
- **When to use:** make your app agent-ready by publishing an `auth.md`, generate Protected Resource Metadata and Authorization Server metadata with `agent_auth` block, validate an existing `auth.md` against the protocol spec, implement agent registration endpoints (`/agent/auth`, `/agent/auth/claim`, `/agent/auth/revoke`), understand how the auth.md protocol works, configure ID-JAG verification and trust lists, set up OTP claim ceremonies.
- 📄 [View full documentation](skills/auth-md/SKILL.md) | 🌐 [auth-md.com](https://auth-md.com)
- ---
- ### 📦 OKF — Open Knowledge Format [](https://www.skillsdirectory.com/skills/fabricioctelles-okf-open-knowledge-format) · `library-and-api-reference`
- Create, validate, and enrich [Open Knowledge Format](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md) bundles — the open spec (v0.1, announced June 12, 2026 by Sam McVeety & Amir Hormati at Google Cloud) that formalizes the "LLM Wiki" pattern into a portable, interoperable format for organizational knowledge. Markdown files with YAML frontmatter, consumable by any AI agent without SDK. Includes bash validator, conversion guides (Notion, Obsidian, CSV), and integration with Google Cloud Knowledge Catalog via kcmd CLI/MCP.
- **When to use:** create OKF bundles, validate conformance, enrich concepts with schema/citations/cross-links, convert existing knowledge (Notion exports, Obsidian vaults, spreadsheets) to OKF, structure a knowledge base for AI agent consumption, generate index.md and log.md files, push bundles to Knowledge Catalog via kcmd.
- 📄 [View full documentation](skills/okf-open-knowledge-format/SKILL.md) | 🌐 [okf.md](https://okf.md)
- ---
- ### 🌐 Website Spec _(moved)_
- > **This skill has been retired.** The original project now offers a more complete skill with 140+ topics, live updates via MCP server, delta re-audits, and MDN pairing — far beyond what we maintained here.
- >
- > 👉 **Use the official skill:** https://specification.website/.well-known/agent-skills/specification-website/SKILL.md
- >
- > MCP endpoint: `https://mcp.specification.website/mcp`
- ---
- ### 🔒 LGPD Check
- > **Migrated** → This skill moved to [github.com/lgpd-app/skills](https://github.com/lgpd-app/skills)
- Audits websites for compliance with Brazil's LGPD (Lei 13.709/2018).
- ---
- ### 🔒 LGPD.md
- > **Migrated** → This skill moved to [github.com/lgpd-app/skills](https://github.com/lgpd-app/skills)
- Generates and validates `lgpd.md` files — the LGPD compliance declaration standard.
- ---
- ### 📊 Skill Evaluation [](https://www.skillsdirectory.com/skills/fabricioctelles-skill-evaluation) · `code-quality-and-review`
- Evaluate any agent skill against a merged framework — Anthropic's Claude Code best practices plus Matt Pocock's writing-great-skills methodology — across 4 axes (Trigger, Structure, Steering, Pruning). Produces an evidence-cited scorecard (0–100), a weighted overall score, and diagnosed failure modes with prioritized fixes.
- **v2.2 — Trigger Eval (empirical):** now includes an empirical trigger-testing step inspired by Philipp Schmid's (Google DeepMind) talk ["Don't Ship Skills Without Evals"](https://www.youtube.com/watch?v=0vphxNt4wyk). Generates 5 should-trigger + 5 should-not-trigger prompts, runs them via independent sub-agents, and measures whether the skill's description actually causes invocation — bridging the gap between static quality analysis and runtime validation.
- **When to use:** evaluate a skill, rate skill quality, audit SKILL.md, compare two skills, skill scorecard, review best practices compliance, or check if a skill is production-ready.
- **18 scored criteria across 4 axes:** Invocation design · Description quality · Steps vs. reference clarity · Branch-aware disclosure · Conciseness · Coherent scope · Leading words · Completion criteria · Gotchas · Grounded in expertise · Avoids railroading · No-ops · Single source of truth · Relevance & sediment + 4 conditional (Setup flow · Memory · Scripts · Hooks)
- **5 bonus patterns (measured, not scored):** Validation loops · Output templates · Procedures over declarations · Defaults over menus · Trace-checkable steering
- **How it differs from [agentskills.io evals](https://agentskills.io/skill-creation/evaluating-skills) and [skill-creator benchmark](https://claude.com/blog/improving-skill-creator-test-measure-and-refine-agent-skills):**
- | | This skill | agentskills.io evals | skill-creator benchmark |
- |---|---|---|---|
- | Evaluates | Skill **structure** quality + **trigger** empirically | Skill **output** quality | Output + regression + obsolescence |
- | Method | Static inspection + sub-agent trigger eval | Run test cases + grade | A/B blind comparison + multi-agent |
- | When | Is it well-built? Does it trigger correctly? | Does it work? | Did it regress? Still needed? |
- | Output | Scorecard + grade A-F + trigger hit/leak rates | pass_rate, tokens, time | benchmark.json + comparator verdict |
- | Platform | Any agent | Any agent | Claude Code only (plugin) |
- Use in sequence: **skill-evaluation** (design review + trigger testing) → **evals** (functional validation) → **benchmark** (ongoing monitoring).
- 📄 [View full documentation](skills/skill-evaluation/SKILL.md)
- ---
- ### 🧹 Slop Eval — Design Slop Evaluator [](https://www.skillsdirectory.com/skills/fabricioctelles-slop-eval) · `code-quality-and-review`
- Objectively evaluates a UI/web design against [the pols.dev anti-slop design law](https://pols.dev/slop.md): sweeps an ID'd catalog of slop tells across 6 families (color & light, typography, components, layout, motion, execution), checks 6 absolute execution rules, and scores 8 weighted axes — including a 3x-weighted Signature axis with a hard gate, so a "clean but empty" page can't hide behind restraint. Emits a Slop Report with a 0–100 Slop Index and grade A–F. Every finding follows **cite-or-cut**: no concrete evidence (hex value, font name, file:line, screenshot region), no tell.
- **How it evaluates:** live URL (browser-automation SOP: dual-viewport full-page captures, interaction pass, zoom crops), static screenshots, code path (grep-led sweep), or Figma export — anything not observable is marked Unverifiable, never guessed. Deterministic scoring via `scripts/score.py`, with a `--fail-below` CI gate for blocking PRs on preview-deploy design quality.
- **When to use:** evaluate design slop, generate a slop report, check if a design looks AI-generated or generic, audit a landing page design, de-slop review, compare two designs (before/after), track design evolution over time.
- **New in v1.1.0 (Aug 2026):**
- - **Section Ledger:** per-section verdicts (CLEAN/SUSPICIOUS/INFLATED/CRITICAL) with tell density bands and action recommendations
- - **Design Contexts:** context-aware evaluation for landing pages, SaaS dashboards, editorial, and e-commerce — adjusts priority tells and tolerances per design type
- - **Exclusion System:** formalized `// BRIEF:`, `// DESIGN DECISION:`, `// CONTEXT:`, `// PREMIUM PAIR:` tags for documenting excluded tells with audit trail
- - **Tracking Mode:** temporal evolution analysis with tells resolved/introduced, regressions, velocity metrics, and recommendations for next iteration
- - **Adding Soul Guide:** prescription-oriented guide for injecting personality into each axis — not just "remove tell X" but "replace with premium alternative Y"
- - **Expanded Quality Checklist:** 25+ checks across 6 phases (pre-sweep, during-sweep, exclusion, post-sweep, report, self-audit) including portability and defense tests
- **Companions:** method inspired by [skill-evaluation](skills/skill-evaluation/SKILL.md); for text (not design), [human-ai](skills/human-ai/SKILL.md) and [humanizar](skills/humanizar/SKILL.md) do the de-slopping.
- 📄 [View full documentation](skills/slop-eval/SKILL.md)
- ---
- ### 🛡️ Security Specialist [](https://www.skillsdirectory.com/skills/fabricioctelles-security-specialist) · `runbooks`
- Full-stack application security agent — performs SAST (static code analysis), DAST (dynamic testing against running apps), threat modeling, vulnerability triage, remediation, and penetration testing. Combines source code review with live testing against local dev servers or production targets for complete evidence correlation.
- **When to use:** security scan a repository, review a PR for security issues, build a threat model, triage vulnerability findings, fix a security bug, pentest a web application, validate a security fix, track findings to GitHub/Jira/Linear, generate a security report.
- **Key features:**
- - **Input-driven SOP**: path only → SAST + dev DAST; path + URL → SAST + dev + prod; URL only → DAST
- - **12 steering workflows**: full-scan, diff-review, pentest, hunting, threat-model, attack-paths, discovery, triage, remediation, tracking, validation, reporting
- - **6-phase pipeline** (full-scan): Recon → Hunt → Validate → Report → Schema → Verify — with parallel agents and adversarial validation
- - **9 attack classes**: Injection, Access Control, Resource/File, Cryptography, Business Logic, Feature Abuse, Chained Attacks, Wildcard, Obvious Things
- - **12-angle hunting methodology**: sad path, boundaries, component assumptions, wrong ordering, concurrency, parser disagreements, round-trip fidelity, config control, privilege tracing, leaked context, parameter overrides, unverified claims
- - **Adversarial validation**: separate agents try to DISPROVE findings (5 gates: exploitation, impact, baseline, mitigation, parser/runtime)
- - **Structured JSON output**: findings.json validated against JSON schema with trace (entrypoint→propagation→sink), conditions, execution, confidence
- - **Schema validator**: zero-dependency Node.js script (`validate-findings.cjs`) for CI integration
- - **Multi-run additive coverage**: each run targets gaps from prior runs; single run finds ~50% of total vulnerabilities
- - **5 utility scripts**: SQLite scan DB, file ranker, report finalizer, pentest automation, schema validator
- - **Pentest tool cascade**: nmap → python-nmap → socket scan; nikto → wapiti3 → header checks; gobuster → dirsearch → urllib brute
- - **Three-layer correlation**: source finding → dev exploit → prod confirmation
- - **Dynamic baseline calibration**: compares patterns against industry-standard comparable applications
- **Architecture:**
- ```
- security-specialist/
- ├── SKILL.md (router + core principles + anti-patterns)
- ├── steering/ (12 workflow docs including hunting methodology)
- ├── scripts/ (5 tools: Python + Node.js validator)
- └── references/ (5 spec docs: finding format, report format, severity policy, artifacts, report-schema.json)
- ```
- **Improvements in v2.0 (Jun 2026):**
- - Added 6-phase audit pipeline with parallel agents (inspired by Cloudflare security-audit-skill)
- - Added `steering/hunting.md` with 9 attack classes and 12-angle hunting methodology
- - Added adversarial validation (Phase 3) and independent verification (Phase 6)
- - Added `references/report-schema.json` for structured findings with trace, conditions, execution, confidence
- - Added `scripts/validate-findings.cjs` zero-dependency JSON schema validator
- - Added multi-run additive coverage strategy
- - Added 10 anti-patterns to avoid in security audits
- - Added dynamic baseline calibration to severity policy
- - Enhanced finding format: simple (SQLite) + structured (JSON pipeline) dual format
- 📄 [View full documentation](skills/security-specialist/SKILL.md)
- ---
- ### 🚀 Astro Sites Manager [](https://www.skillsdirectory.com/skills/fabricioctelles-astro-sites-manager) · `ci-cd-and-deployment`
- Comprehensive skill for building, migrating, and maintaining Astro v7 projects. Covers the full lifecycle: best practices, v6→v7 migration with structured plan, validation of breaking/deprecated patterns, AI-enhanced dev server (background mode, JSON logging), advanced routing with src/fetch.ts, route caching, Sätteri Markdown, Rust compiler, Starlight docs, Pagefind search, SEO, testing, and deployment to 8+ platforms including Coolify.
- **When to use:** build Astro sites, upgrade to v7, deploy on Coolify/Vercel/Netlify/Cloudflare, validate breaking changes, configure Starlight docs, set up Pagefind search, use background dev server as AI agent, configure route caching.
- **Key features:**
- - MCP Astro Docs integration (real-time docs access)
- - 10 reference files covering migration, validation, testing, deployment, Starlight, and more
- - Coolify-specific deployment guide with 17-project battle-tested patterns
- - Feature detection: v7 features activate only when available (safe on v6)
- 📄 [View full documentation](skills/astro-sites-manager/SKILL.md)
- ---
- ### 🔌 Agent Plugin Eval [](https://www.skillsdirectory.com/skills/fabricioctelles-agent-plugin-eval) · `product-verification`
- Audits, scores, and compares repositories containing portable Agent Plugins against the official [Agent Plugins specification](https://agent-plugins.org). Produces an evidence-cited 0–100 scorecard with conformance gate (PASS/PARTIAL/FAIL), identifies release blockers, and compares two plugins side by side. Works with any agent client — evaluates portable conformance, not client-specific features.
- **When to use:** audit a plugin repo, check plugin.json or mcp.json conformance, validate bundled Agent Skills, assess MCP server configurations, produce a plugin scorecard, identify release blockers, compare two agent plugins.
- **Key features:**
- - Static-only audit (never executes plugin code, MCP servers, or scripts)
- - 18-criterion rubric across 4 axes: Portable conformance, Components & integration, Safety & resilience, Product quality
- - Conformance gates: PASS (no cap), PARTIAL (capped at 59), FAIL (capped at 39)
- - Deterministic scoring via `scripts/score.py`
- - Comparison mode for evaluating two plugins side by side
- - Client-agnostic: evaluates against portable spec, not Codex/Claude/Cursor-specific features
- 📄 [View full documentation](skills/agent-plugin-eval/SKILL.md)
- ---
- ### 💰 Revenue-Centric Design [](https://www.skillsdirectory.com/skills/fabricioctelles-revenue-centric-design) · `runbooks`
- Playbook of 134 evidence-backed principles for designing SaaS and startup products that convert, retain, and monetize — landing pages & CRO, checkout/forms, dashboards/data viz, onboarding/activation, churn reduction, pricing psychology, behavioral science, feature discipline, positioning/ICP, go-to-market, and AI-era differentiation. Every principle names its mechanism (decoy effect, Zeigarnik, Schwartz awareness levels…) and links back to its source post. Ships with revenue-math scripts (A/B sample size, churn→LTV, CAC per closed deal), an audit output template, per-project memory (`rcd-log.md`), and license-enforcing guardrail hooks.
- **Origin story:** Richard ([@richardrx](https://x.com/richardrx), "Design for startups" — ex-Volkswagen, PayPal, IBM) published these principles as posts in Portuguese on X (134 principles in the current catalog). [Helio Costa](https://github.com/heliocosta-dev) obtained the author's permission, extracted the posts via the X API, translated them to English, and distilled them into the original skill ([heliocosta-dev/revenue-centric-design](https://github.com/heliocosta-dev/revenue-centric-design)). This repository hosts an evolved derivative of that work.
- **Evolution measured with [skill-evaluation](skills/skill-evaluation/SKILL.md):** the as-downloaded skill scored **60/100 (B, borderline C)**; one improvement pass later, **73/100 (B)**:
- | Criterion | before | after |
- |---|---|---|
- | Scripts & libraries | 0 | 75 |
- | Gotchas section | 35 | 88 |
- | Coherent scope | 55 | 72 |
- | Progressive disclosure | 78 | 90 |
- | Description for trigger | 78 | 90 |
- | Repo footprint | 39 MB | 176 KB |
- After the compared run, the skill also gained the audit template, the project log, full license compliance, and hook-based guardrails — each closing a finding the scorecard had prioritized. This is exactly the loop skill-evaluation was built for: **evaluate → fix the top findings → re-evaluate → compare.**
- **When to use:** improve conversion on a landing page, fix activation/onboarding, reduce churn, design pricing tables and upgrade paths, sharpen ICP/positioning, apply behavioral-science mechanisms, sanity-check A/B tests, differentiate in the AI era.
- **⚠️ License:** source-available, **not** Apache 2.0 — attribution to @richardrx required, and **gambling/betting/casino use is prohibited** (enforced at runtime by bundled hooks). See the [skill's LICENSE](skills/revenue-centric-design/LICENSE).
- 📄 [View full documentation](skills/revenue-centric-design/SKILL.md)
- ---
- ### 🎬 Motion Ad [](https://www.skillsdirectory.com/skills/fabricioctelles-motion-ad) · `code-scaffolding-and-templates`
- Produces a short motion-graphics video ad — a 15s Facebook/Instagram/TikTok spot — as a rendered MP4. Researches the destination landing page so every on-screen claim matches it, pulls real product imagery off the live site, animates one paused GSAP timeline in a single HTML page, and renders it frame-accurately through Playwright and ffmpeg. Ships a finished 15s 4:5 ad as a template (hook + phone → before/after scan reveal → 3D wall of outputs → showcase carousel + proof → CTA end card) whose entire brand and product content lives in one `CONFIG` object.
- **When to use:** make a video ad, promo video or animated ad, produce Meta/TikTok/Reels creative in video form, cut a 9:16 or 1:1 version of a spot, or re-render an earlier ad with a different hook, hero or CTA.
- **Key features:**
- - **Frame-accurate, not screen-recorded** — `render.cjs` seeks the paused timeline per frame, so re-renders are deterministic
- - **Claims verified against the destination page** — prices, counts and "free" claims have to exist on the landing page
- - **Real assets only** — scrapes the product's own imagery; nothing invented, and `proof: null` drops the social-proof row when there's no real number
- - **Rewriting beats, not building from zero** — `references/template-map.md` maps every `CONFIG` field, DOM id and geometry constant, with recipes for cutting a beat, adding one, and re-laying out to 9:16, 1:1 or 2×
- - **Review loop built in** — contact-sheet tooling tiles assets and render stills into one JPG so a whole pass is checked in a single read
- **⚠️ License:** [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) — **not** Apache 2.0. Created by [danny.md](https://www.danny.md/skills/motion-ad): free to use and remix, **not to sell**. This copy adds repo-standard metadata, portable skill-path resolution, a preflight check and `references/template-map.md`.
- 📄 [View full documentation](skills/motion-ad/SKILL.md)
- ---
- > **Skills revised in March 2026** following the Anthropic standard for Agent Skills structure and quality.
- > Source: [Improving Skill Creator: Test, Measure and Refine Agent Skills](https://claude.com/blog/improving-skill-creator-test-measure-and-refine-agent-skills)
- ## Installation
- You can install these skills using any compatible installer or manually. Below are the most popular options.
- ### Via [Skills.sh](https://skills.sh/docs)
- ```bash
- npx skills add https://github.com/fabricioctelles/skills
- ```
- Or install a specific skill:
- ```bash
- npx skills add https://github.com/fabricioctelles/skills -s startup-idea
- npx skills add https://github.com/fabricioctelles/skills -s revenue-centric-design
- npx skills add https://github.com/fabricioctelles/skills -s geo-optimization
- npx skills add https://github.com/fabricioctelles/skills -s substack-expert
- npx skills add https://github.com/fabricioctelles/skills -s humanizar
- npx skills add https://github.com/fabricioctelles/skills -s human-ai
- npx skills add https://github.com/fabricioctelles/skills -s pier-cloud
- npx skills add https://github.com/fabricioctelles/skills -s coolify-operator
- npx skills add https://github.com/fabricioctelles/skills -s astro-sites-manager
- npx skills add https://github.com/fabricioctelles/skills -s security-specialist
- npx skills add https://github.com/fabricioctelles/skills -s ultimate-design-system-master
- npx skills add https://github.com/fabricioctelles/skills -s design-md-validator
- npx skills add https://github.com/fabricioctelles/skills -s skill-evaluation
- npx skills add https://github.com/fabricioctelles/skills -s slop-eval
- npx skills add https://github.com/fabricioctelles/skills -s agent-plugin-eval
- npx skills add https://github.com/fabricioctelles/skills -s agent-ready-cloudflare
- npx skills add https://github.com/fabricioctelles/skills -s auth-md
- npx skills add https://github.com/fabricioctelles/skills -s pstack-skill
- npx skills add https://github.com/fabricioctelles/skills -s okf-open-knowledge-format
- npx skills add https://github.com/fabricioctelles/skills -s ralph-loop-kiro-specs
- npx skills add https://github.com/fabricioctelles/skills -s loop-architect
- npx skills add https://github.com/fabricioctelles/skills -s resume-ats-beater
- ```
- ### Via [SkillKit](https://github.com/rohitg00/skillkit)
- A package manager for skills with cross-agent translation. Runs with zero install:
- ```bash
- npx skillkit add fabricioctelles/skills
- ```
- Or install the CLI globally:
- ```bash
- npm install -g skillkit # full
- npm install -g skillkit --omit=optional # slim, ~75% smaller, no native addons
- skillkit install fabricioctelles/skills
- ```
- Target specific agents (46 supported, including Claude Code, Cursor, Codex, Gemini CLI, Windsurf, Copilot, OpenCode, Kiro):
- ```bash
- skillkit install fabricioctelles/skills --agent claude-code,cursor
- ```
- **Cross-agent translation** — rewrites a skill into another agent's format:
- ```bash
- skillkit translate humanizar --to cursor
- skillkit translate --all --to windsurf,codex
- skillkit translate slop-eval --to copilot --dry-run
- ```
- `skillkit recommend` suggests skills based on your project's stack, and `skillkit ui` opens an interactive TUI.
- ### Via [Agent Skills CLI](https://www.agentskills.in/docs)
- ```bash
- npm install -g agent-skills-cli
- ```
- Then install the skills:
- ```bash
- skills add https://github.com/fabricioctelles/skills
- ```
- Or use without global install:
- ```bash
- npx agent-skills-cli install https://github.com/fabricioctelles/skills
- ```
- ### Manual Installation
- 1. Clone this repository:
- ```bash
- git clone https://github.com/fabricioctelles/skills.git
- ```
- 2. Copy the desired skill folder to your agent's skills directory:
- ```bash
- # Example for Cursor
- cp -r skills/geo-optimization .cursor/skills/
- cp -r skills/substack-expert .cursor/skills/
- cp -r skills/pier-cloud .cursor/skills/
- cp -r skills/ultimate-design-system-master .cursor/skills/
- cp -r skills/resume-ats-beater .cursor/skills/
- cp -r skills/coolify-operator .cursor/skills/
- cp -r skills/agent-ready-cloudflare .cursor/skills/
- cp -r skills/ralph-loop-kiro-specs .cursor/skills/
- cp -r skills/loop-architect .cursor/skills/
- cp -r skills/humanizar .cursor/skills/
- cp -r skills/auth-md .cursor/skills/
- cp -r skills/astro-sites-manager .cursor/skills/
- cp -r skills/agent-plugin-eval .cursor/skills/
- # Example for Claude Code
- cp -r skills/geo-optimization .claude/skills/
- cp -r skills/substack-expert .claude/skills/
- cp -r skills/pier-cloud .claude/skills/
- cp -r skills/ultimate-design-system-master .claude/skills/
- cp -r skills/resume-ats-beater .claude/skills/
- cp -r skills/coolify-operator .claude/skills/
- cp -r skills/agent-ready-cloudflare .claude/skills/
- cp -r skills/ralph-loop-kiro-specs .claude/skills/
- cp -r skills/loop-architect .claude/skills/
- cp -r skills/humanizar .claude/skills/
- cp -r skills/auth-md .claude/skills/
- cp -r skills/astro-sites-manager .claude/skills/
- cp -r skills/agent-plugin-eval .claude/skills/
- # Example for Kiro
- cp -r skills/geo-optimization .kiro/skills/
- cp -r skills/substack-expert .kiro/skills/
- cp -r skills/pier-cloud .kiro/skills/
- cp -r skills/ultimate-design-system-master .kiro/skills/
- cp -r skills/resume-ats-beater .kiro/skills/
- cp -r skills/coolify-operator .kiro/skills/
- cp -r skills/agent-ready-cloudflare .kiro/skills/
- cp -r skills/ralph-loop-kiro-specs .kiro/skills/
- cp -r skills/loop-architect .kiro/skills/
- cp -r skills/humanizar .kiro/skills/
- cp -r skills/auth-md .kiro/skills/
- cp -r skills/astro-sites-manager .kiro/skills/
- cp -r skills/agent-plugin-eval .kiro/skills/
- ```
- The Agent Skills format is universal and works with any compatible agent. See the [official specification](https://agentskills.io/specification.md) for details.
- ## Repository Structure
- ```
- skills/
- ├── startup-idea/
- │ ├── SKILL.md
- │ └── evals/ # 3 lenses: Graham, Koe, Godin
- ├── revenue-centric-design/
- │ ├── SKILL.md
- │ ├── references/ # 134 principles + audit output template
- │ └── scripts/ # revenue math: A/B sample size, churn to LTV, CAC
- ├── geo-optimization/
- │ ├── SKILL.md
- │ └── references/ # guiding principles and case studies
- ├── substack-expert/
- │ ├── SKILL.md
- │ └── references/ # formatting best practices, SEO output example
- ├── humanizar/
- │ ├── SKILL.md
- │ └── references/ # 55+ AI patterns specific to Brazilian Portuguese (7 files)
- ├── human-ai/
- │ ├── SKILL.md
- │ ├── references/ # 43 EN patterns, empirical baselines
- │ └── scripts/ # measure.py — deterministic metrics
- ├── pier-cloud/
- │ ├── SKILL.md
- │ ├── scripts/ # Python scripts for API consumption
- │ └── references/ # API reference, troubleshooting guide
- ├── coolify-operator/
- │ ├── SKILL.md
- │ └── evals/ # 8 test scenarios
- ├── astro-sites-manager/
- │ ├── SKILL.md
- │ └── references/ # Astro v7 migration, routing, deploy targets
- ├── security-specialist/
- │ ├── SKILL.md
- │ ├── steering/ # 12 workflow docs including hunting methodology
- │ ├── scripts/ # 5 tools: Python + Node.js validator
- │ └── references/ # 5 spec docs: finding/report format, severity policy
- ├── ultimate-design-system-master/
- │ ├── SKILL.md
- │ └── references/ # briefing questionnaire, 10 specialized prompt files
- ├── design-md-validator/
- │ ├── SKILL.md
- │ └── references/ # Google DESIGN.md spec, lint rules, export formats
- ├── skill-evaluation/
- │ ├── SKILL.md
- │ ├── references/ # 18 criteria across 4 axes, scorecard template
- │ └── scripts/ # trigger eval runner
- ├── slop-eval/
- │ ├── SKILL.md
- │ ├── references/ # 8 axes of the anti-slop law
- │ └── scripts/ # Slop Index calculator
- ├── agent-plugin-eval/
- │ ├── SKILL.md
- │ ├── agents/ # default evaluation agent
- │ ├── references/ # spec checklist, 18-criterion rubric, output template
- │ └── scripts/ # score.py + inspect_plugin.py (static audit)
- ├── agent-ready-cloudflare/
- │ ├── README.md # human-readable documentation with examples
- │ ├── SKILL.md # main skill (API docs, operational flow, prompt templates)
- │ └── */SKILL.md # 25 implementation sub-skills (robots-txt, mcp-server-card, etc.)
- ├── auth-md/
- │ ├── SKILL.md
- │ └── references/ # protocol template, validation rules, metadata schema, example, implementation guide
- ├── pstack-skill/
- │ ├── README.md # human-readable guide: install, use cases, model roles
- │ ├── SKILL.md # the orchestrator (playbook router, principles index, autonomy rules)
- │ ├── UPSTREAM_COMMIT # reviewed upstream reference
- │ ├── playbooks/ # 23 step-by-step workflows copied verbatim onto todolists
- │ ├── references/ # 24 principles, 31 bundled procedures, adapters and upstream review
- │ └── scripts/ # statechart compiler, plan validator, log, audit and upstream checker
- ├── okf-open-knowledge-format/
- │ ├── SKILL.md
- │ ├── references/ # OKF spec, bundle anatomy, enrichment rules
- │ └── scripts/ # validate.sh — bundle validator
- ├── ralph-loop-kiro-specs/
- │ ├── SKILL.md
- │ ├── scripts/ # bash loop runner script
- │ └── references/ # Ralph agent prompt template
- ├── loop-architect/
- │ ├── SKILL.md # loop design coach (adapted from Looper by ksimback)
- │ ├── scripts/ # compiler and model detection
- │ ├── templates/ # portable Python runner
- │ ├── references/ # rubrics (goal, verification, council, control)
- │ ├── schemas/ # loop.yaml JSON schema
- │ └── examples/ # ai-workflow-mapping example
- ├── motion-ad/
- │ ├── SKILL.md
- │ ├── assets/ # template.html — finished 15s 4:5 ad, one CONFIG object
- │ ├── references/ # template anatomy: render contract, CONFIG, geometry, recipes
- │ └── scripts/ # render.cjs (GSAP→MP4), fetch-images.cjs, contact-sheet.py
- └── resume-ats-beater/
- ├── SKILL.md
- └── references/ # diagnostic templates, output structure
- ```
- ## Author
- Created by [ft.ia.br](https://ft.ia.br)
- ## References
- - [Lessons from building Claude Code: How we use skills](https://claude.com/blog/lessons-from-building-claude-code-how-we-use-skills) — Anthropic's skill category framework (9 types)
- - [Best practices for skill creators](https://agentskills.io/skill-creation/best-practices) — Writing guidance from the Agent Skills spec
- - [Evaluating skill output quality](https://agentskills.io/skill-creation/evaluating-skills) — Eval-driven iteration with test cases and benchmarks
- ## License
- Apache 2.0 — see [LICENSE](LICENSE) for details — **except where a skill directory contains its own LICENSE file, which governs that skill instead.**
- ⚠️ **Exception:** [`skills/revenue-centric-design/`](skills/revenue-centric-design/LICENSE) is **source-available, not open-source**. The underlying ideas are the intellectual property of Richard ([@richardrx](https://x.com/richardrx)), used with permission, and **may not be used for gambling, betting, or casino products**. That restriction survives any copy or derivative and is not waived by this repository's Apache 2.0 license.
skills/loop-architect/scripts/looper.py · Bundled script · 822 lines · 1 finding marked
- #!/usr/bin/env python3
- """Loop-architect helper CLI.
- This script belongs to the scaffolding side of loop-architect. It may detect
- installed CLIs, register invocation metadata, compile loop.yaml to
- loop.resolved.json, and render LOOP.md. It must not invoke model CLIs to do
- loop work.
- Based on Looper by Kevin Simback (https://github.com/ksimback/looper), MIT License.
- Adapted for Kiro CLI by ft.ia.br.
- """
- from __future__ import annotations
- import argparse
- import datetime as _dt
- import json
- import os
- from pathlib import Path
- import shlex
- import shutil
- import subprocess
- import sys
- from typing import Any
- DEFAULT_REDACTIONS = [".env", ".env.*", "secrets/**", "**/*.key"]
- REGISTRY_PATH = Path.home() / ".loop-architect" / "models.json"
- MODEL_PROBES: dict[str, dict[str, Any]] = {
- "kiro": {
- "invoke": ["kiro-cli", "chat", "--trust-all-tools", "-p"],
- Note: Starts a coding agent with its permission prompts off
- Line 32 on GitHub
- "probe": ["kiro-cli", "--version"],
- "local": False,
- "install": "Install Kiro CLI: https://kiro.dev/downloads/",
- "capabilities": ["headless", "goal", "subagent", "review_loop"],
- },
- "claude": {
- "invoke": ["claude", "-p"],
- "probe": ["claude", "--version"],
- "local": False,
- "install": "Install and authenticate the Claude CLI.",
- "capabilities": ["headless", "goal"],
- },
- "codex": {
- "invoke": ["codex", "exec"],
- "probe": ["codex", "--version"],
- "local": False,
- "install": "Install and authenticate the Codex CLI.",
- "capabilities": ["headless", "goal"],
- },
- "gemini": {
- "invoke": ["gemini", "-p"],
- "probe": ["gemini", "--version"],
- "local": False,
- "install": "Install and authenticate the Gemini CLI.",
- "capabilities": ["headless"],
- },
- "llm": {
- "invoke": ["llm"],
- "probe": ["llm", "--version"],
- "local": False,
- "install": "Install llm and configure a model/provider.",
- "capabilities": ["headless"],
- },
- "ollama": {
- "invoke": ["ollama", "run"],
- "probe": ["ollama", "--version"],
- "local": True,
- "install": "Install Ollama and pull a local model.",
- "capabilities": ["headless"],
- },
- }
- class LooperError(RuntimeError):
- pass
- def load_yaml(path: Path) -> dict[str, Any]:
- try:
- import yaml # type: ignore
- except ImportError as exc:
- raise LooperError(
- "PyYAML is required to compile loop.yaml. Install with: python -m pip install PyYAML"
- ) from exc
- try:
- with path.open("r", encoding="utf-8") as fh:
- data = yaml.safe_load(fh)
- except OSError as exc:
- raise LooperError(f"Could not read {path}: {exc}") from exc
- except yaml.YAMLError as exc:
- raise LooperError(f"Could not parse YAML in {path}: {exc}") from exc
- if not isinstance(data, dict):
- raise LooperError(f"{path} must contain a YAML mapping at the top level")
- return data
- def load_json(path: Path) -> dict[str, Any]:
- with path.open("r", encoding="utf-8") as fh:
- data = json.load(fh)
- if not isinstance(data, dict):
- raise LooperError(f"{path} must contain a JSON object")
- return data
- def write_json(path: Path, data: Any) -> None:
- path.parent.mkdir(parents=True, exist_ok=True)
- path.write_text(json.dumps(to_jsonable(data), indent=2, sort_keys=True) + "\n", encoding="utf-8")
- def to_jsonable(value: Any) -> Any:
- if isinstance(value, dict):
- return {str(key): to_jsonable(item) for key, item in value.items()}
- if isinstance(value, list):
- return [to_jsonable(item) for item in value]
- if isinstance(value, (_dt.date, _dt.datetime)):
- return value.isoformat()
- return value
- def read_registry(path: Path = REGISTRY_PATH) -> dict[str, Any]:
- if not path.exists():
- return {}
- with path.open("r", encoding="utf-8") as fh:
- data = json.load(fh)
- if not isinstance(data, dict):
- raise LooperError(f"Registry {path} must contain a JSON object")
- return data
- def write_registry(data: dict[str, Any], path: Path = REGISTRY_PATH) -> None:
- path.parent.mkdir(parents=True, exist_ok=True)
- write_json(path, data)
- def run_probe(argv: list[str], timeout_sec: int = 5) -> tuple[bool, str]:
- probe_argv = list(argv)
- if os.name == "nt":
- resolved = shutil.which(argv[0])
- if resolved and Path(resolved).suffix.lower() in {".cmd", ".bat"}:
- probe_argv = ["cmd", "/d", "/c", *argv]
- try:
- completed = subprocess.run(
- probe_argv,
- stdin=subprocess.DEVNULL,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- text=True,
- timeout=timeout_sec,
- check=False,
- )
- except (OSError, subprocess.TimeoutExpired) as exc:
- return False, str(exc)
- output = (completed.stdout or completed.stderr or "").strip()
- return completed.returncode == 0, output.splitlines()[0] if output else ""
- def detect_models() -> dict[str, Any]:
- registry: dict[str, Any] = {}
- for model_id, meta in MODEL_PROBES.items():
- cli = meta["invoke"][0]
- path = shutil.which(cli)
- available = path is not None
- authed = False
- version = ""
- if available:
- authed, version = run_probe(meta["probe"])
- registry[model_id] = {
- "cli": cli,
- "path": path,
- "invoke": meta["invoke"],
- "available": available,
- "authed": authed,
- "local": meta["local"],
- "probe": meta["probe"],
- "version": version,
- "install": meta["install"],
- "capabilities": meta.get("capabilities", []),
- }
- return registry
- def normalize_argv(value: Any, field: str) -> list[str]:
- if isinstance(value, list) and all(isinstance(item, str) for item in value):
- return value
- if isinstance(value, str):
- return shlex.split(value, posix=os.name != "nt")
- raise LooperError(f"{field} must be an argv array or string")
- def criteria_by_id(spec: dict[str, Any]) -> dict[str, dict[str, Any]]:
- criteria = spec.get("goal", {}).get("verification", [])
- if not isinstance(criteria, list):
- raise LooperError("goal.verification must be a list")
- result: dict[str, dict[str, Any]] = {}
- for item in criteria:
- if not isinstance(item, dict):
- raise LooperError("Each verification criterion must be an object")
- cid = item.get("id")
- ctype = item.get("type")
- if not isinstance(cid, str) or not cid:
- raise LooperError("Each verification criterion needs a non-empty id")
- if cid in result:
- raise LooperError(f"Duplicate verification criterion id: {cid}")
- if ctype not in {"programmatic", "judge", "human"}:
- raise LooperError(f"Criterion {cid} has invalid type: {ctype}")
- if ctype == "programmatic":
- item["check"] = normalize_argv(item.get("check"), f"criterion {cid}.check")
- if item.get("expect") not in {"exit_zero", "exit_nonzero", "stdout_contains"}:
- raise LooperError(
- f"Criterion {cid}.expect must be exit_zero, exit_nonzero, or stdout_contains"
- )
- if item.get("expect") == "stdout_contains" and not isinstance(item.get("contains"), str):
- raise LooperError(f"Criterion {cid} with stdout_contains needs contains")
- elif ctype == "judge" and not isinstance(item.get("rubric"), str):
- raise LooperError(f"Criterion {cid} needs a judge rubric")
- elif ctype == "human" and not isinstance(item.get("prompt"), str):
- raise LooperError(f"Criterion {cid} needs a human prompt")
- result[cid] = item
- return result
- def validate_member(member: dict[str, Any]) -> None:
- mid = member.get("id")
- role = member.get("role")
- if not isinstance(mid, str) or not mid:
- raise LooperError("Each council member needs a non-empty id")
- if role not in {"reviewer", "judge"}:
- raise LooperError(f"Council member {mid} role must be reviewer or judge")
- member["invoke"] = normalize_argv(member.get("invoke"), f"council.{mid}.invoke")
- timeout = member.get("timeout_sec", 600)
- if not isinstance(timeout, int) or timeout <= 0:
- raise LooperError(f"Council member {mid}.timeout_sec must be a positive integer")
- member.setdefault("scope", ["plan", "delivery"])
- member.setdefault("local", member.get("cli") == "ollama")
- def validate_gate(
- name: str,
- gate: dict[str, Any],
- criteria: dict[str, dict[str, Any]],
- members: dict[str, dict[str, Any]],
- ) -> None:
- if not isinstance(gate, dict):
- raise LooperError(f"{name} must be an object")
- policy = gate.get("verdict_policy")
- if policy not in {"revise_until_clean", "fixed_passes"}:
- raise LooperError(f"{name}.verdict_policy must be revise_until_clean or fixed_passes")
- max_revisions = gate.get("max_revisions", 1)
- if not isinstance(max_revisions, int) or max_revisions < 0:
- raise LooperError(f"{name}.max_revisions must be a non-negative integer")
- for cid in gate.get("criteria", []):
- if cid not in criteria:
- raise LooperError(f"{name} references unknown criterion: {cid}")
- for mid in gate.get("members", []):
- if mid not in members:
- raise LooperError(f"{name} references unknown council member: {mid}")
- if policy == "revise_until_clean":
- source = gate.get("verdict_source")
- if source == "human":
- return
- if source not in members:
- raise LooperError(f"{name}.verdict_source must be a judge member or human")
- if members[source].get("role") != "judge":
- raise LooperError(f"{name}.verdict_source must name a judge, not a reviewer")
- def normalize_spec(spec: dict[str, Any], source_path: Path) -> dict[str, Any]:
- if spec.get("version") != 1:
- raise LooperError("Only loop.yaml version: 1 is supported")
- goal = spec.get("goal")
- if not isinstance(goal, dict):
- raise LooperError("goal must be an object")
- if not isinstance(goal.get("statement"), str) or not goal["statement"].strip():
- raise LooperError("goal.statement is required")
- if not isinstance(goal.get("definition_of_done"), str) or not goal["definition_of_done"].strip():
- raise LooperError("goal.definition_of_done is required")
- for index, source in enumerate(goal.get("context_sources", [])):
- if not isinstance(source, dict):
- raise LooperError("goal.context_sources entries must be objects")
- if "cmd" in source:
- source["cmd"] = normalize_argv(source["cmd"], f"context_sources[{index}].cmd")
- criteria = criteria_by_id(spec)
- host = spec.get("host")
- if not isinstance(host, dict):
- raise LooperError("host must be an object")
- host["invoke"] = normalize_argv(host.get("invoke"), "host.invoke")
- host.setdefault("timeout_sec", 600)
- if not isinstance(host["timeout_sec"], int) or host["timeout_sec"] <= 0:
- raise LooperError("host.timeout_sec must be a positive integer")
- council_list = spec.get("council", [])
- if not isinstance(council_list, list):
- raise LooperError("council must be a list")
- for member in council_list:
- if not isinstance(member, dict):
- raise LooperError("council entries must be objects")
- validate_member(member)
- members = {member["id"]: member for member in council_list}
- gates = spec.get("gates")
- if not isinstance(gates, dict):
- raise LooperError("gates must be an object")
- for gate_name in ("plan_gate", "delivery_gate"):
- validate_gate(gate_name, gates.get(gate_name), criteria, members)
- control = spec.get("loop_control")
- if not isinstance(control, dict):
- raise LooperError("loop_control must be an object")
- max_iterations = control.get("max_iterations")
- if not isinstance(max_iterations, int) or max_iterations <= 0:
- raise LooperError("loop_control.max_iterations must be a positive integer")
- budget = control.setdefault("budget", {})
- if not isinstance(budget, dict):
- raise LooperError("loop_control.budget must be an object")
- if "wall_clock_min" not in budget:
- budget["wall_clock_min"] = 30
- no_progress = control.setdefault(
- "no_progress",
- {
- "max_stalled_iterations": 2,
- "signals": [
- "same blocking issue repeats",
- "delivery artifact has no material change",
- "verifier output is unchanged",
- ],
- "action": "stop",
- },
- )
- if not isinstance(no_progress, dict):
- raise LooperError("loop_control.no_progress must be an object")
- stalled = no_progress.setdefault("max_stalled_iterations", 2)
- if not isinstance(stalled, int) or stalled <= 0:
- raise LooperError("loop_control.no_progress.max_stalled_iterations must be a positive integer")
- signals = no_progress.setdefault("signals", ["same blocking issue repeats"])
- if not isinstance(signals, list) or not all(isinstance(item, str) for item in signals):
- raise LooperError("loop_control.no_progress.signals must be a list of strings")
- action = no_progress.setdefault("action", "stop")
- if action not in {"stop", "human_checkpoint"}:
- raise LooperError("loop_control.no_progress.action must be stop or human_checkpoint")
- execution = spec.setdefault(
- "execution",
- {
- "mode": "in_session",
- "isolation": "current_workspace",
- "side_effects": {"requires_approval": True, "duplicate_action_check": True},
- },
- )
- if not isinstance(execution, dict):
- raise LooperError("execution must be an object")
- execution.setdefault("mode", "in_session")
- execution.setdefault("isolation", "current_workspace")
- if execution["mode"] not in {"in_session", "external_runner", "orchestrated"}:
- raise LooperError("execution.mode must be in_session, external_runner, or orchestrated")
- if execution["isolation"] not in {"current_workspace", "branch", "worktree", "sandbox"}:
- raise LooperError("execution.isolation must be current_workspace, branch, worktree, or sandbox")
- side_effects = execution.setdefault("side_effects", {})
- if not isinstance(side_effects, dict):
- raise LooperError("execution.side_effects must be an object")
- side_effects.setdefault("requires_approval", True)
- side_effects.setdefault("duplicate_action_check", True)
- observability = spec.setdefault(
- "observability",
- {"state_file": "state.json", "run_log": "run-log.md", "checkpoint_granularity": "gate"},
- )
- if not isinstance(observability, dict):
- raise LooperError("observability must be an object")
- observability.setdefault("state_file", "state.json")
- observability.setdefault("run_log", "run-log.md")
- observability.setdefault("checkpoint_granularity", "gate")
- if not isinstance(observability["state_file"], str) or not observability["state_file"]:
- raise LooperError("observability.state_file must be a non-empty string")
- if not isinstance(observability["run_log"], str) or not observability["run_log"]:
- raise LooperError("observability.run_log must be a non-empty string")
- if observability["checkpoint_granularity"] not in {"gate", "step"}:
- raise LooperError("observability.checkpoint_granularity must be gate or step")
- workspace = spec.setdefault("workspace", {})
- if not isinstance(workspace, dict):
- raise LooperError("workspace must be an object")
- workspace.setdefault("dir", "./loop-workspace")
- layout = workspace.setdefault("layout", ["plan.md", "delivery-{n}.md", "review-{n}.md", "state.json", "run-log.md"])
- if not isinstance(layout, list) or not all(isinstance(item, str) for item in layout):
- raise LooperError("workspace.layout must be a list of strings")
- for required_file in (observability["state_file"], observability["run_log"]):
- if required_file not in layout:
- layout.append(required_file)
- privacy = spec.setdefault("privacy", {})
- if not isinstance(privacy, dict):
- raise LooperError("privacy must be an object")
- egress = privacy.setdefault("egress", [])
- if not isinstance(egress, list):
- raise LooperError("privacy.egress must be a list")
- for entry in egress:
- if not isinstance(entry, dict):
- raise LooperError("privacy.egress entries must be objects")
- entry.setdefault("redact", DEFAULT_REDACTIONS)
- entry.setdefault("consent", "required")
- resolved = {
- "$schema": "https://github.com/ksimback/looper/schema/loop.resolved.v1.json",
- "compiled_at": _dt.datetime.now(_dt.UTC).replace(microsecond=0).isoformat(),
- "source": str(source_path),
- **spec,
- "criteria_by_id": criteria,
- "council_by_id": members,
- }
- return to_jsonable(resolved)
- def clip(text: Any, width: int) -> str:
- value = str(text or "")
- return value if len(value) <= width else value[: width - 1] + "~"
- def ascii_box(*rows: str, width: int = 30) -> list[str]:
- border = "+" + "-" * (width + 2) + "+"
- body = [f"| {clip(row, width):<{width}} |" for row in rows if row is not None]
- return [border, *body, border]
- def render_ascii_diagram(resolved: dict[str, Any]) -> str:
- gates = resolved.get("gates", {})
- control = resolved.get("loop_control", {})
- observability = resolved.get("observability", {})
- plan_gate = gates.get("plan_gate", {})
- delivery_gate = gates.get("delivery_gate", {})
- plan_revisions = plan_gate.get("max_revisions", 0)
- delivery_revisions = delivery_gate.get("max_revisions", 0)
- plan_source = plan_gate.get("verdict_source", "human")
- delivery_source = delivery_gate.get("verdict_source", "human")
- no_progress = control.get("no_progress", {})
- stalled = no_progress.get("max_stalled_iterations", 2)
- budget = control.get("budget", {})
- budget_bits = []
- if budget.get("wall_clock_min") is not None:
- budget_bits.append(f"{budget.get('wall_clock_min')}m")
- if budget.get("usd") is not None:
- budget_bits.append(f"${budget.get('usd')}")
- if budget.get("tokens") is not None:
- budget_bits.append(f"{budget.get('tokens')} tokens")
- budget_text = ", ".join(budget_bits) or "configured caps"
- lines: list[str] = []
- lines.extend(ascii_box("1. Goal + context", "read sources"))
- lines.extend([" |", " v"])
- lines.extend(ascii_box("2. Draft plan.md", f"state -> {observability.get('state_file', 'state.json')}"))
- lines.extend([" |", " v"])
- lines.extend(ascii_box("3. Plan gate", f"verdict: {plan_source}"))
- lines.extend([f" | needs work -> revise <= {plan_revisions} -> step 2", " | pass", " v"])
- lines.extend(ascii_box("4. Write delivery-N.md", f"log -> {observability.get('run_log', 'run-log.md')}"))
- lines.extend([" |", " v"])
- lines.extend(ascii_box("5. Delivery gate", f"verdict: {delivery_source}"))
- lines.extend([f" | needs work -> revise <= {delivery_revisions} -> step 4", " | pass", " v"])
- lines.extend(ascii_box("6. Final output", "all gates clean"))
- lines.extend(
- [
- "",
- f"Stops: pass gates | max {control.get('max_iterations')} iterations | "
- f"no progress x{stalled} | budget {budget_text}",
- ]
- )
- return "\n".join(lines)
- def render_loop(resolved: dict[str, Any]) -> str:
- meta = resolved.get("meta", {})
- goal = resolved.get("goal", {})
- gates = resolved.get("gates", {})
- control = resolved.get("loop_control", {})
- execution = resolved.get("execution", {})
- observability = resolved.get("observability", {})
- title = meta.get("name") or "Looper Generated Loop"
- criteria = goal.get("verification", [])
- council = resolved.get("council", [])
- lines = [
- f"# {title}",
- "",
- meta.get("description", "").strip(),
- "",
- "## Goal",
- "",
- goal.get("statement", "").strip(),
- "",
- "## Definition of Done",
- "",
- goal.get("definition_of_done", "").strip(),
- "",
- "## Verification",
- "",
- ]
- for item in criteria:
- lines.append(f"- `{item['id']}` ({item['type']})")
- lines.extend(["", "## Council", ""])
- if council:
- for member in council:
- lines.append(
- f"- `{member['id']}`: {member.get('role')} via {member.get('cli')} "
- f"({member.get('model', 'default')})"
- )
- else:
- lines.append("- No council members configured.")
- lines.extend(
- [
- "",
- "## Gates",
- "",
- f"- Plan gate: {gates.get('plan_gate', {}).get('verdict_policy')}",
- f"- Delivery gate: {gates.get('delivery_gate', {}).get('verdict_policy')}",
- "",
- "## Loop Control",
- "",
- f"- Max iterations: {control.get('max_iterations')}",
- f"- Budget: `{json.dumps(control.get('budget', {}), sort_keys=True)}`",
- f"- No-progress: `{json.dumps(control.get('no_progress', {}), sort_keys=True)}`",
- "",
- "## Execution Boundary",
- "",
- f"- Mode: `{execution.get('mode', 'in_session')}`",
- f"- Isolation: `{execution.get('isolation', 'current_workspace')}`",
- f"- Side effects: `{json.dumps(execution.get('side_effects', {}), sort_keys=True)}`",
- "",
- "## Observability",
- "",
- f"- State file: `{observability.get('state_file', 'state.json')}`",
- f"- Run log: `{observability.get('run_log', 'run-log.md')}`",
- f"- Checkpoint granularity: `{observability.get('checkpoint_granularity', 'gate')}`",
- "",
- "## Flow Preview",
- "",
- "```text",
- render_ascii_diagram(resolved),
- "```",
- "",
- ]
- )
- return "\n".join(line for line in lines if line is not None)
- def render_session_prompt(resolved: dict[str, Any]) -> str:
- meta = resolved.get("meta", {})
- goal = resolved.get("goal", {})
- gates = resolved.get("gates", {})
- control = resolved.get("loop_control", {})
- workspace = resolved.get("workspace", {})
- execution = resolved.get("execution", {})
- observability = resolved.get("observability", {})
- criteria = goal.get("verification", [])
- council = resolved.get("council", [])
- title = meta.get("name") or "Looper Generated Loop"
- lines = [
- f"# Run `{title}` In This Session",
- "",
- "Use this prompt when the user wants to run the Looper-designed loop in the current LLM session.",
- "This is the default/easy execution path. The Python runner is the advanced path for running later or outside the session.",
- "",
- "## Operator Instructions",
- "",
- "You are executing a Looper-designed loop in this current session.",
- "Follow the resolved spec below, write handoff files into the workspace, and enforce the caps manually.",
- "Do not use `run-loop.py` unless the user explicitly asks for the advanced external runner.",
- "",
- "1. Create the workspace directory if it does not exist.",
- "2. Read the context sources before drafting the plan.",
- "3. Draft `plan.md` in the workspace.",
- "4. Run the plan gate. Apply programmatic checks when available. For judge criteria, use the configured judge only after consent for any non-local egress; otherwise ask the user to approve a human/current-session substitute.",
- "5. Revise until the gate passes or `max_revisions` is reached.",
- "6. Produce `delivery-N.md` in the workspace.",
- "7. Run the delivery gate after each delivery.",
- "8. Stop when all delivery criteria pass, a cap is reached, or the user stops the loop.",
- "9. Keep `state.json` current with status, iteration, last gate, consent, and blockers.",
- "10. Append a compact entry to `run-log.md` after every context read, model call, check, gate verdict, revision, blocker, and stop decision.",
- "11. Compare each blocker against the previous blocker. If the same blocker repeats for the configured no-progress window, stop or ask for the configured human checkpoint instead of revising again.",
- "12. Treat token and USD budgets as operator limits in this session: if exact accounting is unavailable, stop and ask before continuing when the loop appears likely to exceed them.",
- "",
- "## Files",
- "",
- f"- Source spec: `{Path(resolved.get('source', 'loop.yaml')).name}`",
- "- Human summary: `LOOP.md`",
- "- Resolved spec: `loop.resolved.json`",
- f"- Workspace: `{workspace.get('dir', './loop-workspace')}`",
- f"- State file: `{observability.get('state_file', 'state.json')}`",
- f"- Run log: `{observability.get('run_log', 'run-log.md')}`",
- "",
- "## Goal",
- "",
- goal.get("statement", "").strip(),
- "",
- "## Definition Of Done",
- "",
- goal.get("definition_of_done", "").strip(),
- "",
- "## Context Sources",
- "",
- ]
- context_sources = goal.get("context_sources", [])
- if context_sources:
- for source in context_sources:
- if "file" in source:
- lines.append(f"- Read file `{source['file']}`")
- elif "cmd" in source:
- lines.append(f"- Run command `{json.dumps(source['cmd'])}`")
- else:
- lines.append("- No context sources configured.")
- lines.extend(["", "## Verification Criteria", ""])
- for item in criteria:
- if item["type"] == "programmatic":
- lines.append(
- f"- `{item['id']}` programmatic: run `{json.dumps(item['check'])}` and expect `{item['expect']}`"
- )
- elif item["type"] == "judge":
- lines.append(f"- `{item['id']}` judge rubric: {item['rubric']}")
- elif item["type"] == "human":
- lines.append(f"- `{item['id']}` human signoff: {item['prompt']}")
- lines.extend(["", "## Council", ""])
- if council:
- for member in council:
- locality = "local" if member.get("local") else "non-local"
- lines.append(
- f"- `{member['id']}` {member.get('role')} via `{json.dumps(member.get('invoke', []))}` "
- f"({locality}; timeout {member.get('timeout_sec', 600)}s)"
- )
- else:
- lines.append("- No council members configured.")
- lines.extend(["", "## Gates", ""])
- for gate_name in ("plan_gate", "delivery_gate"):
- gate = gates.get(gate_name, {})
- lines.extend(
- [
- f"### {gate_name}",
- "",
- f"- When: `{gate.get('when')}`",
- f"- Policy: `{gate.get('verdict_policy')}`",
- f"- Verdict source: `{gate.get('verdict_source', 'none')}`",
- f"- Criteria: `{', '.join(gate.get('criteria', []))}`",
- f"- Max revisions: `{gate.get('max_revisions')}`",
- "",
- ]
- )
- lines.extend(
- [
- "## Loop Control",
- "",
- f"- Max iterations: `{control.get('max_iterations')}`",
- f"- Budget: `{json.dumps(control.get('budget', {}), sort_keys=True)}`",
- f"- No-progress: `{json.dumps(control.get('no_progress', {}), sort_keys=True)}`",
- f"- Human checkpoints: `{', '.join(control.get('human_checkpoints', [])) or 'none'}`",
- "- Stop conditions:",
- ]
- )
- for condition in control.get("stop_conditions", []):
- lines.append(f" - {condition}")
- lines.extend(
- [
- "",
- "## Execution Boundary",
- "",
- f"- Mode: `{execution.get('mode', 'in_session')}`",
- f"- Isolation: `{execution.get('isolation', 'current_workspace')}`",
- f"- Side effects: `{json.dumps(execution.get('side_effects', {}), sort_keys=True)}`",
- "",
- "If the loop needs scheduled runs, child-agent lifecycle management, concurrency control, or restart-safe step retries, stop and tell the user this Looper spec should be handed to a durable orchestrator.",
- "",
- "## Observability",
- "",
- f"- State file: `{observability.get('state_file', 'state.json')}`",
- f"- Run log: `{observability.get('run_log', 'run-log.md')}`",
- f"- Checkpoint granularity: `{observability.get('checkpoint_granularity', 'gate')}`",
- "",
- "Use `state.json` for the latest resumable status and `run-log.md` for the append-only history of what happened.",
- ]
- )
- lines.extend(["", "## Privacy", ""])
- egress = resolved.get("privacy", {}).get("egress", [])
- if egress:
- for entry in egress:
- lines.append(
- f"- Before sending `{', '.join(entry.get('sends', []))}` to `{entry.get('to')}`, "
- f"confirm consent and apply redactions `{', '.join(entry.get('redact', []))}`."
- )
- else:
- lines.append("- No cross-vendor egress configured.")
- lines.extend(
- [
- "",
- "## Start Now",
- "",
- "If the user asked to run now, begin at step 1 under Operator Instructions and keep going until a stop condition is reached.",
- "",
- ]
- )
- return "\n".join(lines)
- def cmd_detect(args: argparse.Namespace) -> int:
- registry = detect_models()
- if args.write:
- existing = read_registry(args.registry)
- existing.update(registry)
- write_registry(existing, args.registry)
- print(json.dumps(registry, indent=2, sort_keys=True))
- return 0
- def cmd_register(args: argparse.Namespace) -> int:
- if not args.invoke:
- raise LooperError("--invoke needs at least one command token")
- registry = read_registry(args.registry)
- registry[args.model_id] = {
- "cli": args.invoke[0],
- "invoke": args.invoke,
- "available": shutil.which(args.invoke[0]) is not None,
- "authed": args.authed,
- "local": args.local,
- "model": args.model,
- "notes": args.notes or "",
- }
- write_registry(registry, args.registry)
- print(f"Registered {args.model_id} in {args.registry}")
- return 0
- def cmd_compile(args: argparse.Namespace) -> int:
- source = args.loop_yaml.resolve()
- spec = load_yaml(source)
- resolved = normalize_spec(spec, source)
- out = args.out or source.with_name("loop.resolved.json")
- write_json(out, resolved)
- if args.render:
- args.render.parent.mkdir(parents=True, exist_ok=True)
- args.render.write_text(render_loop(resolved), encoding="utf-8")
- if args.session_prompt:
- args.session_prompt.parent.mkdir(parents=True, exist_ok=True)
- args.session_prompt.write_text(render_session_prompt(resolved), encoding="utf-8")
- print(f"Wrote {out}")
- if args.render:
- print(f"Wrote {args.render}")
- if args.session_prompt:
- print(f"Wrote {args.session_prompt}")
- return 0
- def cmd_session_prompt(args: argparse.Namespace) -> int:
- resolved = load_json(args.resolved_json)
- prompt = render_session_prompt(resolved)
- if args.out:
- args.out.parent.mkdir(parents=True, exist_ok=True)
- args.out.write_text(prompt, encoding="utf-8")
- print(f"Wrote {args.out}")
- else:
- print(prompt)
- return 0
- def build_parser() -> argparse.ArgumentParser:
- parser = argparse.ArgumentParser(prog="looper", description="Looper scaffolding helpers")
- sub = parser.add_subparsers(dest="command", required=True)
- detect = sub.add_parser("detect-models", help="Detect model CLIs and print registry JSON")
- detect.add_argument("--write", action="store_true", help="Merge results into the model registry")
- detect.add_argument("--registry", type=Path, default=REGISTRY_PATH)
- detect.set_defaults(func=cmd_detect)
- register = sub.add_parser("register-model", help="Register custom model CLI invocation metadata")
- register.add_argument("model_id")
- register.add_argument("--invoke", nargs="+", required=True)
- register.add_argument("--model", default="")
- register.add_argument("--local", action="store_true")
- register.add_argument("--authed", action="store_true")
- register.add_argument("--notes", default="")
- register.add_argument("--registry", type=Path, default=REGISTRY_PATH)
- register.set_defaults(func=cmd_register)
- compile_cmd = sub.add_parser("compile", help="Compile loop.yaml to loop.resolved.json")
- compile_cmd.add_argument("loop_yaml", type=Path)
- compile_cmd.add_argument("--out", type=Path)
- compile_cmd.add_argument("--render", type=Path)
- compile_cmd.add_argument("--session-prompt", type=Path)
- compile_cmd.set_defaults(func=cmd_compile)
- session_prompt = sub.add_parser(
- "session-prompt", help="Render the in-session execution prompt from loop.resolved.json"
- )
- session_prompt.add_argument("resolved_json", type=Path)
- session_prompt.add_argument("--out", type=Path)
- session_prompt.set_defaults(func=cmd_session_prompt)
- return parser
- def main(argv: list[str] | None = None) -> int:
- parser = build_parser()
- args = parser.parse_args(argv)
- try:
- return int(args.func(args))
- except LooperError as exc:
- print(f"looper: error: {exc}", file=sys.stderr)
- return 2
- if __name__ == "__main__":
- raise SystemExit(main())
skills/ralph-loop-kiro-specs/scripts/ralph-loop-kiro-specs-script.sh · Bundled script · 128 lines · 1 finding marked
- #!/bin/bash
- set -e
- # Ralph Loop for Kiro Specs — Runner Script
- # Based on https://github.com/mreferre/ralph-loop-kiro-specs
- # Licensed under Apache License 2.0
- #
- # Usage: ./ralph-loop-kiro-specs-script.sh <max_iterations> <specs_name>
- # ── Color & style codes ──
- RED='\033[1;31m'
- GREEN='\033[1;32m'
- YELLOW='\033[1;33m'
- BLUE='\033[1;34m'
- CYAN='\033[1;36m'
- MAGENTA='\033[1;35m'
- BOLD='\033[1m'
- DIM='\033[2m'
- NC='\033[0m' # No Color
- MAX_ITERATIONS=${1:-10}
- SPECS_NAME=${2:-}
- if [ -z "$SPECS_NAME" ]; then
- echo -e "${RED}❌ Usage: $0 <max_iterations> <specs_name>${NC}" >&2
- exit 1
- fi
- # Validate MAX_ITERATIONS is a positive integer
- if ! [[ "$MAX_ITERATIONS" =~ ^[1-9][0-9]*$ ]]; then
- echo -e "${RED}❌ Error: <max_iterations> must be a positive integer, got '${BOLD}$MAX_ITERATIONS${RED}'${NC}" >&2
- exit 1
- fi
- # Validate SPECS_NAME is a non-empty string (no whitespace-only)
- if ! [[ "$SPECS_NAME" =~ [^[:space:]] ]]; then
- echo -e "${RED}❌ Error: <specs_name> must be a non-empty string${NC}" >&2
- exit 1
- fi
- SCRIPT_DIR="$(cd "$(dirname \
- "${BASH_SOURCE[0]}")" && pwd)"
- # Set the specs directory path based on the provided specs name
- SPECS_DIR="$SCRIPT_DIR/.kiro/specs/$SPECS_NAME"
- # Check if the specs directory exists, exit with error if not found
- if [ ! -d "$SPECS_DIR" ]; then
- echo -e "${RED}❌ Error: No specs named '${BOLD}$SPECS_NAME${RED}' found in this project${NC}" >&2
- exit 1
- fi
- # Initialize progress log file if it doesn't exist
- if [ ! -f "$SPECS_DIR/progress.md" ]; then
- echo "# Progress Log for spec: $SPECS_NAME" \
- > "$SPECS_DIR/progress.md"
- echo -e "${DIM}📝 Created progress.md${NC}"
- fi
- # Initialize time log file if it doesn't exist
- TIME_LOG="$SPECS_DIR/specs_time.md"
- if [ ! -f "$TIME_LOG" ]; then
- echo "# Time Log for spec: $SPECS_NAME" > "$TIME_LOG"
- echo -e "${DIM}📝 Created specs_time.md${NC}"
- fi
- # Load the prompt template and substitute the specs name placeholder
- PROMPT=$(sed "s/SPECS_NAME/$SPECS_NAME/g" \
- "$SCRIPT_DIR/ralph-loop-kiro-specs-prompt.md")
- echo ""
- echo -e "${MAGENTA}══════════════════════════════════════${NC}"
- echo -e " 🚀 ${BOLD}Starting Ralph${NC}"
- echo -e " ${DIM}spec:${NC} ${CYAN}$SPECS_NAME${NC}"
- echo -e " ${DIM}iterations:${NC} ${CYAN}$MAX_ITERATIONS${NC}"
- echo -e "${MAGENTA}══════════════════════════════════════${NC}"
- echo ""
- # Ask user for iteration mode
- read -r -p "$(echo -e "${YELLOW}🔄 Iterate automatically through tasks? (y/n):${NC} ")" AUTO_MODE
- case "$AUTO_MODE" in
- [yY]|[yY][eE][sS])
- AUTO_MODE=true
- echo -e " ${GREEN}✔ Auto-pilot enabled${NC}"
- ;;
- *)
- AUTO_MODE=false
- echo -e " ${BLUE}✔ Manual mode — you'll confirm each iteration${NC}"
- ;;
- esac
- echo ""
- echo -e "${CYAN}─── 📋 Prompt ───────────────────────────${NC}"
- echo "$PROMPT"
- echo -e "${CYAN}──────────────────────────────────────────${NC}"
- echo ""
- read -r -p "$(echo -e "${YELLOW}👀 Review the prompt above. Press Enter to launch the Ralph loop...${NC} ")"
- echo ""
- for i in $(seq 1 $MAX_ITERATIONS); do
- echo -e "${BLUE}═══════════════════════════════════════${NC}"
- echo -e " 🔁 ${BOLD}Iteration ${CYAN}$i${NC}${BOLD} / ${DIM}$MAX_ITERATIONS${NC}"
- echo -e "${BLUE}═══════════════════════════════════════${NC}"
- OUTPUT=$(echo "$PROMPT" \
- | kiro-cli chat --trust-all-tools --no-interactive 2>&1 \
- Note: Starts a coding agent with its permission prompts off
- Line 105 on GitHub
- | tee /dev/stderr) || true
- if echo "$OUTPUT" | \
- grep -q "<promise>COMPLETE</promise>"
- then
- echo ""
- echo -e "${GREEN}══════════════════════════════════════${NC}"
- echo -e " ✅ ${BOLD}All tasks complete!${NC}"
- echo -e "${GREEN}══════════════════════════════════════${NC}"
- exit 0
- fi
- if [ "$AUTO_MODE" = false ]; then
- echo ""
- read -r -p "$(echo -e "${YELLOW}⏸️ Iteration $i done. Press Enter to continue...${NC} ")"
- fi
- done
- echo ""
- echo -e "${RED}══════════════════════════════════════${NC}"
- echo -e " ⚠️ ${BOLD}Max iterations reached${NC} ${DIM}($MAX_ITERATIONS)${NC}"
- echo -e "${RED}══════════════════════════════════════${NC}"
- exit 1
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.