Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Agent Instructions

## CLI Output Style

Use compact Unicode symbols for terminal output, not emoji. This keeps new and
updated terminal output consistent and avoids rendering issues across terminals.

**Preferred symbols:**
- `✓` success, approved, merged
- `✗` failure, conflict, changes requested
- `●` active, pending, in progress
- `○` inactive, skipped, none
- `—` unknown, not applicable

**Avoid in terminal output:** `✅`, `❌`, `🟢`, `🔴`, `📝`, `⚠️`, `🔄`, `📦`, `🤖`, `🔗`
and other emoji. They can render at inconsistent widths across terminals and
break column alignment.

**Exception:** Emoji are acceptable in markdown output destined for GitHub
(PR comments, CI summaries) where they render consistently.
2 changes: 1 addition & 1 deletion mergify_cli/stack/hooks/scripts/pre-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if test "$has_change_id" -eq 0; then
fi

echo ""
echo "This branch is managed by Mergify stacks."
echo "This branch is managed by Mergify stacks."
echo " Use 'mergify stack push' instead of 'git push'."
echo ""
echo " 'mergify stack push' will:"
Expand Down
15 changes: 7 additions & 8 deletions mergify_cli/stack/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,16 @@ def _install_skill_stub(
if existing_content == _SKILL_STUB_CONTENT:
if verbose:
console.print(
f" Skill stub: up to date ({skill_stub_path})",
f" Skill stub: up to date ({skill_stub_path})",
style="green",
)
return

skill_stub_path.write_text(_SKILL_STUB_CONTENT, encoding="utf-8")
if verbose:
action = "updated" if is_update else "installed"
emoji = "🔄" if is_update else "📦"
console.print(
f" {emoji} Skill stub: {action} ({skill_stub_path})",
f" Skill stub: {action} ({skill_stub_path})",
style="bold green",
)

Expand Down Expand Up @@ -322,12 +321,12 @@ def _install_claude_hooks(*, verbose: bool = False) -> None:
dest_file.chmod(0o755)
if verbose:
console.print(
f" 🔄 Hook script: updated ({src_file.name})",
f" Hook script: updated ({src_file.name})",
style="bold cyan",
)
elif verbose:
console.print(
f" Hook script: up to date ({src_file.name})",
f" Hook script: up to date ({src_file.name})",
style="green",
)

Expand Down Expand Up @@ -362,7 +361,7 @@ def _install_claude_hooks(*, verbose: bool = False) -> None:
if already_installed:
if verbose:
console.print(
f" Settings hook: up to date ({settings_file})",
f" Settings hook: up to date ({settings_file})",
style="green",
)
else:
Expand All @@ -383,7 +382,7 @@ def _install_claude_hooks(*, verbose: bool = False) -> None:
)
if verbose:
console.print(
f" 🔗 Settings hook: installed ({settings_file})",
f" Settings hook: installed ({settings_file})",
style="bold cyan",
)

Expand Down Expand Up @@ -480,7 +479,7 @@ async def stack_setup(*, force: bool = False, global_install: bool = False) -> N
_install_git_hook(hooks_dir, hook_name, force=force)

# Install Claude hooks for session ID tracking (global)
console.print("\n🤖 Claude Code integration:", style="bold")
console.print("\nClaude Code integration:", style="bold")
_install_claude_hooks(verbose=True)

# Install skill stub for AI tool bootstrapping (project-level)
Expand Down
Loading