New to Claude Skills? Learn how to install them →

Clangfuse on GitHub

Create Repo Agent

Free

Automate GitHub tasks with secure repo agents.

by langfuse32.8k stars on langfuse/langfuse
1 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Create Repo Agent does

The Create Repo Agent skill enables developers to design and implement autonomous agents that operate within GitHub repositories while maintaining strict security protocols. This skill is particularly useful for creating agents that can perform tasks such as generating pull requests, managing scheduled actions, and handling prompts without exposing sensitive credentials or granting excessive permissions. By focusing on a read-only architecture, the skill ensures that agents can audit and validate changes before any write operations occur, thus minimizing security risks.

To effectively use this skill, developers must first define the objectives of the maintenance tasks, including which files the agent can access and the expected behavior when no changes are made. The workflow emphasizes a careful selection of capabilities, advocating for the least-privileged runtime environment. This means using scheduled or manual GitHub Actions with read-only access to repositories, thereby preventing unauthorized modifications. The skill also guides users in encoding prompts that specify allowed edits and output formats, ensuring that the agent operates within defined constraints.

Security is a core focus of the Create Repo Agent skill. It outlines non-negotiable rules that prevent the exposure of write-capable tokens and emphasizes the importance of independent validation of changes before publishing. This structured approach not only enhances the reliability of the agents but also ensures compliance with security standards. Developers working on projects that require automated maintenance tasks in GitHub will find this skill invaluable, as it combines automation with robust security practices, allowing for efficient and safe repository management.

When to use it

Use this skill when you need to automate GitHub tasks while ensuring strict security measures are in place.

When not to use it

This skill may not be suitable for scenarios requiring broad access permissions or where security constraints are less critical.

What you can build with it

Automating Pull Requests

Use the Create Repo Agent to automate the generation of pull requests based on predefined criteria, ensuring a secure process.

Scheduled Maintenance Tasks

Set up agents to perform scheduled maintenance tasks in your repository without manual intervention, enhancing efficiency.

Security Audits

Implement agents that conduct security audits and validations on your repository changes before any write operations occur.

How to install Create Repo Agent

View source

1. Install with the skills CLI

npx skills add langfuse/langfuse/create-repo-agent --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by langfuse

Create Repo Agent

Purpose

Build repo agents that can run unattended without granting the model broad write credentials, arbitrary shell, or uncontrolled network access. The default architecture is a read-only audit job that produces a validated patch artifact plus a separate publisher job that owns GitHub writes.

Use this skill together with the domain skill for the files the agent will maintain. For example, a pricing agent must also use add-model-price.

Required Reading

For every repo agent task, read these references before designing or editing:

  1. references/security-standards.md
  2. references/workflow-blueprint.md when implementing or changing a GitHub Actions workflow
  3. references/review-checklist.md before final review or PR publication

Workflow

  1. Define the exact maintenance objective, allowed files, external sources, expected no-change behavior, and PR ownership.
  2. Choose the least-capable runtime: prefer a scheduled/manual GitHub Action with read-only repository checkout and no write credentials in the LLM step.
  3. Encode the prompt with explicit allowed edit surfaces, hard constraints, source-evidence requirements, and structured output.
  4. Give the agent only scoped file tools, domain-scoped fetch tools, and exact deterministic validator commands.
  5. Validate the diff independently of the agent, including untracked files, path allowlists, git diff --check, line-count limits, and domain-specific validators.
  6. Publish from a separate job or step after validation, using a bot credential only for branch push and PR create/update.
  7. If self-improvement is allowed, constrain it to named workflow or skill-reference files and require security invariants to remain unchanged.
  8. Run agent setup checks when .agents/** changes, then publish a normal human-reviewable PR.

Non-Negotiables

  • Never expose a write-capable GitHub token, PAT, GitHub App token, OIDC token, SSH key, cloud credential, or package-publishing token to the LLM agent step.
  • Never rely on prompt instructions as the only security boundary. Enforce file and command limits outside the agent.
  • Never stage a directory wholesale. Stage only the validated file list.
  • Never ignore untracked files in diff validation.
  • Never let self-improvement bypass the same diff allowlist and human PR review as normal edits.
  • Never grant arbitrary Bash, curl, wget, gh, git push, package-manager, interpreter, environment-dump, or process-inspection tools to the LLM agent.
  • Never add id-token: write unless the agent truly needs OIDC and the trust relationship is reviewed explicitly.

Frequently asked questions about Create Repo Agent

Similar skills