agent-loop
Skill by AhsanAyaz
Runs one tick of the code-with-ahsan GitHub and ClickUp loop. It triages new GitHub issues, auto-fixes and merges safe ones, and escalates risky ones to a human. It also reconciles ClickUp board activity into next actions.
Install agent-loop
Built from the published package, never by AI.
git clone --depth 1 https://github.com/AhsanAyaz/code-with-ahsan /tmp/code-with-ahsan && mkdir -p ~/.claude/skills && cp -r /tmp/code-with-ahsan/.claude/skills/agent-loop ~/.claude/skills/agent-loopRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/AhsanAyaz/code-with-ahsan /tmp/code-with-ahsan && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/code-with-ahsan/.claude/skills/agent-loop ~/.gemini/antigravity-cli/skills/agent-loopAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The agent-loop skill is an orchestrator for a GitHub and ClickUp workflow used in the code-with-ahsan project. Each invocation runs one tick in three phases: Intake, Implement, and Reconcile. During Intake it lists open GitHub issues, triages new ones through an issue-triage subagent, and creates matching ClickUp tasks. During Implement it passes safe auto-fix issues to a fix-implementer subagent and applies a merge gate that checks verification and sensitive file paths.
The orchestrator runs in the main session and is the only part that makes ClickUp calls, merges, and writes to the ledger. The skill is aimed at maintainers who want a recurring loop, for example through /loop 15m /agent-loop, with a human kept in charge of risky changes. Its default dry-run mode reports intended actions without changing anything.
Written from the project's SKILL.md and checked against it.
What it can do
- Issue triageLists open GitHub issues and triages new ones through an issue-triage subagent.
- ClickUp task creationCreates one ClickUp task per new GitHub issue and sets its status and assignee by decision.
- Safe auto-fix and mergeImplements safe issues and squash-merges them only when verification is green and no sensitive path changed.
- Human escalationKeeps risky or failing pull requests open and assigns them to a human reviewer in ClickUp.
- Board reconciliationReads ClickUp comments and PR state to choose the next action for tasks in review or on production testing.
- Dry-run modeNarrates intended actions without creating, modifying, or merging anything unless --live is passed.
- Idempotent ledgerTracks each issue in a ledger so the same GitHub issue never gets a second ClickUp task.
What you need
- ClickUp MCP server
- GitHub MCP server
- gh CLI
- Git repository with a main branch
Try asking
- Run one tick of the agent loop in dry-run mode.
- Run a loop tick with --live to triage and fix safe issues.
- Escalate any risky GitHub issues from this tick to a human in ClickUp.
Good to know
- Defaults to dry-run unless the user passes --live.
- Caps at 5 new issues per tick and 2 implement attempts per issue.
- Never auto-merges a diff that touches a sensitive path.
- Needs a number field named "GitHub Issue" in ClickUp, or it falls back to title markers and the ledger.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/agent-loop/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to agent-loop
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
agent-loop: common questions
How often does the agent loop run?
Each invocation is one tick. The source suggests recurring runs with /loop 15m /agent-loop.
Does it merge code without a human?
Only for auto-fix decisions with green verification and no sensitive-path changes. Risky or failing changes are escalated to Ahsan.
What happens if I run it without flags?
It runs in dry-run mode by default and only narrates the actions it would take. It creates, modifies, and merges nothing.
How do I install agent-loop?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is agent-loop free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is agent-loop safe to use?
It scores 56 of 100. Grades: maintenance A, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to agent-loop?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
