Skip to content

Commit 8fcabaa

Browse files
authored
docs: add the org banner, badges and agent docs (#6)
1 parent 56ed38f commit 8fcabaa

6 files changed

Lines changed: 131 additions & 2 deletions

File tree

‎AGENTS.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ Every link in `README.md` must be absolute: `https://github.com/modern-python/sq
3939
- **Never use local/inline imports**, tests included. `ruff` catches them.
4040
- Annotate every function argument.
4141
- Docstrings: public API documents the contract; internal helpers get a one-line contract at most.
42+
43+
## Agent skills
44+
45+
### Issue tracker
46+
47+
GitHub issues on `modern-python/sqlalchemy-inbox`, via `gh`. See `docs/agents/issue-tracker.md`.
48+
49+
### Triage labels
50+
51+
The five canonical roles, each label string equal to its name. See `docs/agents/triage-labels.md`.
52+
53+
### Domain docs
54+
55+
Single-context: `CONTEXT.md` and `docs/adr/` at the repo root. See `docs/agents/domain.md`.

‎README.md‎

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1-
# sqlalchemy-inbox
2-
1+
<p align="center">
2+
<picture>
3+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/modern-python/.github/main/brand/projects/sqlalchemy-inbox/lockup-dark.svg">
4+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/modern-python/.github/main/brand/projects/sqlalchemy-inbox/lockup-light.svg">
5+
<img alt="sqlalchemy-inbox" src="https://raw.githubusercontent.com/modern-python/.github/main/brand/projects/sqlalchemy-inbox/lockup.png" width="420">
6+
</picture>
7+
</p>
8+
9+
[![PyPI version](https://img.shields.io/pypi/v/sqlalchemy-inbox.svg)](https://pypi.org/project/sqlalchemy-inbox/)
10+
[![Supported Python versions](https://img.shields.io/pypi/pyversions/sqlalchemy-inbox.svg)](https://pypi.org/project/sqlalchemy-inbox/)
11+
[![Downloads](https://static.pepy.tech/badge/sqlalchemy-inbox/month)](https://pepy.tech/projects/sqlalchemy-inbox)
12+
[![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)](https://github.com/modern-python/sqlalchemy-inbox/actions/workflows/ci.yml)
313
[![CI](https://github.com/modern-python/sqlalchemy-inbox/actions/workflows/ci.yml/badge.svg)](https://github.com/modern-python/sqlalchemy-inbox/actions/workflows/ci.yml)
414
[![License](https://img.shields.io/github/license/modern-python/sqlalchemy-inbox.svg)](https://github.com/modern-python/sqlalchemy-inbox/blob/main/LICENSE)
15+
[![GitHub stars](https://img.shields.io/github/stars/modern-python/sqlalchemy-inbox)](https://github.com/modern-python/sqlalchemy-inbox/stargazers)
16+
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
17+
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
18+
[![ty](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ty/main/assets/badge/v0.json)](https://github.com/astral-sh/ty)
519

620
`sqlalchemy-inbox` records which messages a consumer has processed, in the same PostgreSQL
721
transaction as the consumer's own writes. A redelivered message finds its marker and is skipped. A
@@ -191,4 +205,10 @@ can't tell whether the commit landed.
191205

192206
## Links
193207

208+
- [PyPI](https://pypi.org/project/sqlalchemy-inbox)
194209
- [License](https://github.com/modern-python/sqlalchemy-inbox/blob/main/LICENSE)
210+
211+
## Part of `modern-python`
212+
213+
Browse the full list of templates and libraries in
214+
[`modern-python`](https://github.com/modern-python); see the org profile for the categorized index.

‎docs/agents/domain.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Domain Docs
2+
3+
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
4+
5+
## Before exploring, read these
6+
7+
- **`CONTEXT.md`** at the repo root.
8+
- **`docs/adr/`**: read ADRs that touch the area you're about to work in.
9+
10+
If any of these files don't exist, **proceed silently**. Don't flag their absence; don't suggest creating them upfront. The `/domain-modeling` skill (reached via `/grill-with-docs` and `/improve-codebase-architecture`) creates them lazily when terms or decisions actually get resolved.
11+
12+
## File structure
13+
14+
Single-context repo:
15+
16+
```
17+
/
18+
├── CONTEXT.md
19+
├── docs/adr/
20+
│ └── 0001-postgres-only.md
21+
└── sqlalchemy_inbox/
22+
```
23+
24+
## Use the glossary's vocabulary
25+
26+
When your output names a domain concept (in an issue title, a refactor proposal, a hypothesis, a test name), use the term as defined in `CONTEXT.md`. Don't drift to synonyms the glossary explicitly avoids.
27+
28+
If the concept you need isn't in the glossary yet, that's a signal: either you're inventing language the project doesn't use (reconsider) or there's a real gap (note it for `/domain-modeling`).
29+
30+
## Flag ADR conflicts
31+
32+
If your output contradicts an existing ADR, surface it explicitly rather than silently overriding:
33+
34+
> _Contradicts ADR-0001 (PostgreSQL only), but worth reopening because…_

‎docs/agents/issue-tracker.md‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Issue tracker: GitHub
2+
3+
Issues and specs for this repo live as GitHub issues. Use the `gh` CLI for all operations.
4+
5+
## Conventions
6+
7+
- **Create an issue**: `gh issue create --title "..." --body "..."`. Use a heredoc for multi-line bodies.
8+
- **Read an issue**: `gh issue view <number> --comments`, filtering comments by `jq` and also fetching labels.
9+
- **List issues**: `gh issue list --state open --json number,title,body,labels,comments --jq '[.[] | {number, title, body, labels: [.labels[].name], comments: [.comments[].body]}]'` with appropriate `--label` and `--state` filters.
10+
- **Comment on an issue**: `gh issue comment <number> --body "..."`
11+
- **Apply / remove labels**: `gh issue edit <number> --add-label "..."` / `--remove-label "..."`
12+
- **Close**: `gh issue close <number> --comment "..."`
13+
14+
Infer the repo from `git remote -v`; `gh` does this automatically when run inside a clone.
15+
16+
## Pull requests as a triage surface
17+
18+
**PRs as a request surface: no.** _(Set to `yes` if this repo treats external PRs as feature requests; `/triage` reads this flag.)_
19+
20+
When set to `yes`, PRs run through the same labels and states as issues, using the `gh pr` equivalents:
21+
22+
- **Read a PR**: `gh pr view <number> --comments` and `gh pr diff <number>` for the diff.
23+
- **List external PRs for triage**: `gh pr list --state open --json number,title,body,labels,author,authorAssociation,comments` then keep only `authorAssociation` of `CONTRIBUTOR`, `FIRST_TIME_CONTRIBUTOR`, or `NONE` (drop `OWNER`/`MEMBER`/`COLLABORATOR`).
24+
- **Comment / label / close**: `gh pr comment`, `gh pr edit --add-label`/`--remove-label`, `gh pr close`.
25+
26+
GitHub shares one number space across issues and PRs, so a bare `#42` may be either: resolve with `gh pr view 42` and fall back to `gh issue view 42`.
27+
28+
## When a skill says "publish to the issue tracker"
29+
30+
Create a GitHub issue.
31+
32+
## When a skill says "fetch the relevant ticket"
33+
34+
Run `gh issue view <number> --comments`.
35+
36+
## Wayfinding operations
37+
38+
Used by `/wayfinder`. The **map** is a single issue with **child** issues as tickets.
39+
40+
- **Map**: a single issue labelled `wayfinder:map`, holding the Notes / Decisions-so-far / Fog body. `gh issue create --label wayfinder:map`.
41+
- **Child ticket**: an issue linked to the map as a GitHub sub-issue (`gh api` on the sub-issues endpoint). Where sub-issues aren't enabled, add the child to a task list in the map body and put `Part of #<map>` at the top of the child body. Labels: `wayfinder:<type>` (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev.
42+
- **Blocking**: GitHub's **native issue dependencies**, the canonical, UI-visible representation. Add an edge with `gh api --method POST repos/<owner>/<repo>/issues/<child>/dependencies/blocked_by -F issue_id=<blocker-db-id>`, where `<blocker-db-id>` is the blocker's numeric **database id** (`gh api repos/<owner>/<repo>/issues/<n> --jq .id`, _not_ the `#number` or `node_id`). GitHub reports `issue_dependencies_summary.blocked_by` (open blockers only, the live gate). Where dependencies aren't available, fall back to a `Blocked by: #<n>, #<n>` line at the top of the child body. A ticket is unblocked when every blocker is closed.
43+
- **Frontier query**: list the map's open children (`gh issue list --state open`, scoped to the map's sub-issues / task list), drop any with an open blocker (`issue_dependencies_summary.blocked_by > 0`, or an open issue in the `Blocked by` line) or an assignee; first in map order wins.
44+
- **Claim**: `gh issue edit <n> --add-assignee @me`, the session's first write.
45+
- **Resolve**: `gh issue comment <n> --body "<answer>"`, then `gh issue close <n>`, then append a context pointer (gist + link) to the map's Decisions-so-far.

‎docs/agents/triage-labels.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Triage Labels
2+
3+
The skills speak in terms of five canonical triage roles. This file maps those roles to the actual label strings used in this repo's issue tracker.
4+
5+
| Label in mattpocock/skills | Label in our tracker | Meaning |
6+
| -------------------------- | -------------------- | ---------------------------------------- |
7+
| `needs-triage` | `needs-triage` | Maintainer needs to evaluate this issue |
8+
| `needs-info` | `needs-info` | Waiting on reporter for more information |
9+
| `ready-for-agent` | `ready-for-agent` | Fully specified, ready for an AFK agent |
10+
| `ready-for-human` | `ready-for-human` | Requires human implementation |
11+
| `wontfix` | `wontfix` | Will not be actioned |
12+
13+
When a skill mentions a role (e.g. "apply the AFK-ready triage label"), use the corresponding label string from this table.
14+
15+
Edit the right-hand column to match whatever vocabulary you actually use.

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ asyncio_mode = "auto"
8787
asyncio_default_fixture_loop_scope = "function"
8888

8989
[project.urls]
90+
Homepage = "https://modern-python.org"
9091
Repository = "https://github.com/modern-python/sqlalchemy-inbox"
9192
Issues = "https://github.com/modern-python/sqlalchemy-inbox/issues"
9293
Changelog = "https://github.com/modern-python/sqlalchemy-inbox/releases"

0 commit comments

Comments
 (0)