一键导入
project-initialization
Initialize a project with AI agent rules and documentation. Use when setting up a new repository for AI agent collaboration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Initialize a project with AI agent rules and documentation. Use when setting up a new repository for AI agent collaboration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use the Xero MCP server — obtain/refresh OAuth2 bearer tokens, troubleshoot authentication, and pick up other operational notes for working with Xero MCP tools. Use when Xero MCP tools fail with authentication errors, when the bearer token has expired (tokens last ~30 min), before starting any Xero workflow, or for general guidance on Xero MCP usage.
General Xero browser automation notes. Use when automating any Xero page with agent-browser — covers non-standard UI patterns, waiting, and dropdown menus.
Size the agent-browser Chromium window to fill its current screen, leaving a configurable bottom margin for the desktop panel. Use before any agent-browser automation that needs the full screen visible without elements overlapping or scrolling off (e.g. Xero, dense web apps).
Review all unreviewed documents in Hubdoc. Use when reviewing, processing or publishing Hubdoc receipts and bills.
Convert XLSX spreadsheets (single or multi-sheet) to CSV files you can read and grep. Use whenever you need to process an .xlsx report from Xero, Cryptio, bank exports, or any tool that delivers spreadsheet output.
Create Claude Code slash commands, OpenCode command files, and Pi prompt templates that delegate to the right subagent or skill. Use when creating new commands or refactoring existing ones to follow platform conventions.
| name | project-initialization |
| description | Initialize a project with AI agent rules and documentation. Use when setting up a new repository for AI agent collaboration. |
Improve the results of running the /init command to create AI agent rules.
Use this skill when:
CLAUDE.md nor AGENTS.md exists/init command has been run but needs improvementThe /init command creates CLAUDE.md, but this is only useful for Claude Code.
This skill ensures the same file contents are discoverable and readable by
multiple AI agents looking in different places.
This follows the standard documented at: https://agent-rules.org/
Perform the following steps:
Check existing files: Verify if CLAUDE.md and/or AGENTS.md exist
Handle new project: If neither file exists, first run Claude's /init process to generate initial content
Rename if needed: If only CLAUDE.md exists, rename it to AGENTS.md
Create symlinks: Generate symlinks so different agents can find the rules:
CLAUDE.md → points to AGENTS.mdFix unsafe git push commands: Scan all agent instruction files
(AGENTS.md, CLAUDE.md, and any other files they reference) for
bare or underspecified git push invocations that could
accidentally push to the wrong branch. This is a common problem
with instructions added by tools like beads.
What to look for: any git push that does NOT specify both
a remote and a refspec, e.g.:
git push (no arguments at all)git push origin (remote but no refspec)git push --force (flags but no remote/refspec)Why this matters: a bare git push relies on the upstream
tracking branch configuration. If you're on a feature branch
that happens to track main, git push will push your feature
commits directly to main. Using git push origin HEAD is much
safer because it pushes the current branch to a remote branch of
the same name, preventing accidental pushes to trunk branches.
How to fix: replace bare git push with
git push origin HEAD. Preserve any flags that were present,
e.g. git push --force → git push origin HEAD --force.
Edge cases to handle:
```) and inline code (`)[ ] 6. git push (push to remote)git push # deploygit push origin main,
git push origin HEAD)Verify: Confirm the symlinks work by checking file accessibility
ls CLAUDE.md AGENTS.md# Check existing files
ls -la CLAUDE.md AGENTS.md
# Rename if needed
mv CLAUDE.md AGENTS.md
# Create symlinks
ln -s AGENTS.md CLAUDE.md
# Verify
cat CLAUDE.md
git pushSearch agent instruction files for bare git push:
# Find bare git push commands in agent files
grep -n 'git push' AGENTS.md CLAUDE.md .beads/context/*.md
Example transformations:
| Before | After |
|---|---|
git push | git push origin HEAD |
git push --force | git push origin HEAD --force |
git push origin | git push origin HEAD |
[ ] 6. git push | [ ] 6. git push origin HEAD |
Leave these unchanged (already safe):
| Already safe |
|---|
git push origin HEAD |
git push origin main |
git push origin HEAD --force |
git push -u origin HEAD |
After this process:
AGENTS.md contains the authoritative AI agent rulesCLAUDE.md is a symlink to AGENTS.mdgit push commands in agent instructions explicitly
specify remote and refspec to prevent accidental pushes
to trunk branches