git-update-in-agent

git-update-in-agent: A tool that automatically checks and updates Git, GitHub, AGENTS.md, and handoff status after a project milestone or task completion. It detects whether the project is a Git repository, whether a GitHub remote is configured, and whether AGENTS.md and docs/HANDOFF.md or other handoff files exist; it initializes or updates these files as needed, commits checkpoints, and prepares for GitHub upload or version branching. Used when users indicate a stage is complete, request sync or saving progress, want improved version management, or need continuity across devices or multiple agents.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "git-update-in-agent" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ae5751a36b9ab58de8f39f6c21eff2223d79cc8450ef304b895ee2391ceaf978. Verify the upstream source and version against https://skillhub.cn/skills/user_11f3afce/gitagent before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

git-update-in-agent: A tool that automatically checks and updates Git, GitHub, AGENTS.md, and handoff status after a project milestone or task completion. It detects whether the project is a Git repository, whether a GitHub remote is configured, and whether AGENTS.md and docs/HANDOFF.md or other handoff files exist; it initializes or updates these files as needed, commits checkpoints, and prepares for GitHub upload or version branching. Used when users indicate a stage is complete, request sync or saving progress, want improved version management, or need continuity across devices or multiple agents.

0 Downloads

Introduction source: third_party · user_11f3afce · 1.0.0 Reference

SkillPi interpretation

Tasks
Automatically check and update a project's Git, GitHub, AGENTS.md, and handoff state after a milestone or completed task. Use when the user says a phase is done, asks to sync or checkpoint work, wants better version management, wants cross-device or multi-agent continuity, or explicitly asks for "git update in agent". The skill detects whether the current project is a Git repo, whether it has a GitHub remote, and whether AGENTS.md and docs/HANDOFF.md or an existing handoff file are present; it initializes or updates them as needed, commits the checkpoint, and prepares GitHub upload or version branches.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: git-update-in-agent
description: Automatically check and update a project's Git, GitHub, AGENTS.md, and handoff state after a milestone or completed task. Use when the user says a phase is done, asks to sync or checkpoint work, wants better version management, wants cross-device or multi-agent continuity, or explicitly asks for "git update in agent". The skill detects whether the current project is a Git repo, whether it has a GitHub remote, and whether AGENTS.md and docs/HANDOFF.md or an existing handoff file are present; it initializes or updates them as needed, commits the checkpoint, and prepares GitHub upload or version branches.

Git Update In Agent

Overview

Use this skill as a milestone checkpoint for Codex-managed projects. It keeps code versioned, pushes durable project context into repo files, and makes it easier for the user to continue work across devices, agents, and future sessions.

Workflow

1. Inspect the project

Run these checks from the user's current project root:

pwd
git rev-parse --show-toplevel
git status --short --branch
git remote -v
find .. -maxdepth 2 \( -iname AGENTS.md -o -iname HANDOFF.md \) -print

If git rev-parse --show-toplevel fails, treat the current directory as the intended project root unless the files clearly indicate a nested app directory. Do not initialize Git in the user's home directory or another broad parent by accident.

2. Initialize Git if missing

If there is no Git repository:

  1. Inspect the directory before initializing.
  2. Create or update .gitignore before git init; exclude generated output, dependency folders, caches, logs, editor state, environment files, build artifacts, and local database/runtime files appropriate to the stack.
  3. Run git init.
  4. Ensure the primary branch is main:
git branch -M main

If a repository already exists, do not reinitialize it. Work inside the existing top-level repo.

3. Maintain AGENTS.md

Use AGENTS.md at the repository root for stable project rules, constraints, and operating conventions.

If AGENTS.md is missing, create a concise file with:

  • project purpose, if known
  • build, run, and test commands discovered from the repo
  • important directories and ownership boundaries
  • coding, deployment, or data-safety rules learned during the session
  • a note that docs/HANDOFF.md carries current session state

If AGENTS.md exists, append or revise only durable project rules. Do not put temporary progress notes there.

4. Maintain the handoff file

Prefer docs/HANDOFF.md. If the repo already has HANDOFF.md, handoff.md, or another obvious handoff file, use the existing file unless the user asks to move it.

If no handoff file exists, create docs/HANDOFF.md with these sections:

# Handoff

## Current Status

## Confirmed Decisions

## Open Questions

## Recommended Next Steps

When updating an existing handoff, add a dated checkpoint instead of overwriting useful prior context. Include:

  1. Current status: where the project is now and what was just completed.
  2. Confirmed decisions: choices that should not be re-litigated without reason.
  3. Open questions: unresolved issues, blockers, risks, or assumptions.
  4. Recommended next steps: the next concrete actions for the user or next agent.

Also include important implementation details from this milestone: changed files, commands run, verification results, deployment URLs, credentials caveats, and known failure modes. Keep it concise enough that the next agent can read it quickly.

5. Commit the checkpoint

Review the diff before committing:

git status --short
git diff --stat
git diff -- AGENTS.md docs/HANDOFF.md HANDOFF.md handoff.md

Stage the relevant project changes for this milestone. Do not discard unrelated user changes. If there are unrelated changes that should not be part of the checkpoint, leave them unstaged and explain that choice.

Use a clear commit message, for example:

git add <relevant-files>
git commit -m "Checkpoint project handoff"

If there is nothing to commit after updating docs, say so and continue to the GitHub check.

6. Check GitHub remote

Inspect remotes:

git remote -v
gh auth status

If there is no GitHub remote:

  1. Use gh repo create when GitHub CLI is authenticated.
  2. Default to a private repo unless the user explicitly requested public.
  3. Use the local directory name as the repo name unless a better project name is obvious.
  4. Push main and set upstream:
gh repo create <repo-name> --private --source . --remote origin --push
git push -u origin main

If gh is unavailable or unauthenticated, stop after the local commit and tell the user the exact next command or authentication step needed.

7. Handle existing GitHub projects and version branches

If the repo already has a GitHub remote:

  1. Fetch remote branches.
  2. If on main and this checkpoint represents a new version or variant, create a version branch instead of overwriting the main working line.
  3. Use a readable branch name such as checkpoint/YYYY-MM-DD-summary or version/YYYY-MM-DD-summary.
  4. Push the branch and set upstream.

Example:

git fetch --all --prune
git switch -c checkpoint/2026-05-26-handoff-update
git push -u origin HEAD

If the user explicitly wants to update main, push main after confirming the local branch is current with the remote.

Reporting

End with a short status report:

  • Git repo: already existed or initialized
  • Documentation: AGENTS.md and handoff created or updated
  • Commit: hash and message, or why no commit was made
  • GitHub: remote created, branch pushed, or blocker
  • Next step: the single most useful follow-up action

Keep the report concrete and include exact file paths and branch names.

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 为多智能体项目提供完整的版本控制与上下文持久化解决方案
  • 解决跨设备/会话连续性的核心痛点,实用价值高
Trigger Precision92/100

Highlights

  • 触发场景描述全面,覆盖用户多种自然表达方式
  • 边界清晰,不易误触或漏触
Structure and Standards88/100

Areas to improve

  • 缺少独立 When to Use 章节 Reported severity: Minor

    文档结构完整但未设置显式“When to Use”章节

    Recommendation: 建议在 Overview 后添加独立“When to Use”章节以增强可读性

Execution Reliability94/100

Highlights

  • 异常处理覆盖全面,包括 Git 初始化、GitHub 认证、分支策略等关键路径
  • 不可逆操作有明确确认机制,安全可靠
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 82

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.