Skip to content

Commit 53c5726

Browse files
committed
chore: share Gemini guidance with all agents
1 parent 71550d5 commit 53c5726

6 files changed

Lines changed: 69 additions & 1 deletion

File tree

‎.gemini/.env.example‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GOOGLE_GENAI_USE_VERTEXAI=true
2+
GOOGLE_CLOUD_PROJECT=your-project-id
3+
GOOGLE_CLOUD_LOCATION=us-central1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
description = "Prepare a versioned release candidate without publishing it"
2+
3+
prompt = """
4+
Prepare python-substack release {{args}} end to end, stopping before commit,
5+
tag, push, GitHub release creation, PyPI publication, or announcement.
6+
7+
Read GEMINI.md, docs/releasing.md, CHANGELOG.md, pyproject.toml,
8+
substack/__init__.py, the relevant Git history, and the current worktree first.
9+
Require one explicit semantic version argument and refuse to reuse an existing
10+
version or tag. Preserve unrelated worktree changes.
11+
12+
Implement any remaining release preparation that is supported by the actual
13+
changes: synchronize the version in pyproject.toml and substack/__init__.py,
14+
add the top CHANGELOG.md entry, and create docs/releases/<version>.md. Do not
15+
invent features or claims. Run the offline validation and package checks from
16+
docs/releasing.md that are safe in the current worktree. Do not run live tests.
17+
18+
Finish with the changed files, exact validation results, unresolved blockers,
19+
and the maintainer actions still required before publication.
20+
"""
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
description = "Verify a release candidate without publishing it"
2+
3+
prompt = """
4+
Verify the current python-substack release candidate against GEMINI.md and
5+
docs/releasing.md. Inspect the worktree and version-bearing files first.
6+
Confirm pyproject.toml, substack/__init__.py, CHANGELOG.md, and the release page
7+
agree, and confirm the target version does not already have a Git tag.
8+
9+
Run all safe offline tests, collection checks, Poetry validation, build,
10+
distribution metadata checks, and base plus MCP wheel smoke checks that are
11+
possible in this environment. Do not run live Substack tests, publish, tag,
12+
push, create a GitHub release, or modify release content merely to make a check
13+
pass.
14+
15+
Report failures first, then successful checks and the exact remaining manual or
16+
CI-gated release steps.
17+
"""

‎.gemini/policies/git-override.toml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[[rule]]
2+
toolName = "run_shell_command"
3+
commandPrefix = ["git", "gh"]
4+
decision = "allow"
5+
priority = 500
6+
modes = ["default", "autoEdit"]

‎.gitignore‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ env.bak/
111111
venv.bak/
112112

113113
# Gemini CLI and Testing artifacts
114-
.gemini/
114+
.gemini/*
115+
!.gemini/.env.example
116+
!.gemini/commands/
117+
!.gemini/commands/**
118+
!.gemini/policies/
119+
!.gemini/policies/**
115120
tmp_pytest/
116121

117122
# Spyder project settings

‎AGENTS.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Shared agent instructions
2+
3+
`GEMINI.md` is the authoritative project memory for every agent working in
4+
this repository. Read it completely before inspecting, changing, or running
5+
the project, and follow it for the entire task.
6+
7+
Repository workflows and policies under `.gemini/` are shared agent settings,
8+
not Gemini-only guidance. Read the relevant files before performing the
9+
corresponding operation. If an agent does not support the Gemini slash-command
10+
syntax, follow the command prompt manually:
11+
12+
- `.gemini/commands/release/prepare.toml` defines release preparation.
13+
- `.gemini/commands/release/verify.toml` defines release verification.
14+
- `.gemini/policies/git-override.toml` records repository Git tool policy.
15+
16+
Tool policies never override the user's request, the host's permissions, or
17+
higher-priority safety instructions.

0 commit comments

Comments
 (0)