diff --git a/AGENTS.md b/AGENTS.md index f0d16f1..287e0ff 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,6 +26,9 @@ Consumer plugin for **apps that depend on** PyPI [`archipy`](https://pypi.org/pr | OpenTelemetry | `/scaffold-observability`, `/docs-observability` | | Docs | `/docs-quickstart`, `/docs-adapters`, `/docs-helpers`, `/docs-config`, `/docs-errors`, `/docs-testing`, `/docs-observability`, `/docs-health-checks` | +Issues, branches, PRs, checklists and merges: use the `pr-steward` plugin skills (`new-issue`, `split-issue`, `open-pr`, +`tick-checklist`, `merge-pr`; https://github.com/SyntaxArc/pr-steward). This plugin no longer ships a contributing rule. + Bundled cheat sheet: `skills/archipy-docs/reference.md`. When a skill runs, read its `SKILL.md` in full before generating files. Resolve @@ -48,7 +51,7 @@ Live docs: https://syntaxarc.github.io/ArchiPy/ - Ownership/precedence: `rules/rules-index-for-apps.mdc` - Always-on: `architecture-for-apps.mdc`, `python-code-style-for-apps.mdc`, `security-for-apps.mdc`, - `tooling-for-apps.mdc`, `contributing-for-apps.mdc` + `tooling-for-apps.mdc` - Python typing: `typing-for-apps.mdc` - Layers: `using-archipy-models.mdc`, `using-archipy-adapters.mdc`, `using-archipy-repositories.mdc`, `using-archipy-logics.mdc`, `using-archipy-services.mdc` diff --git a/CHANGELOG.md b/CHANGELOG.md index e68acca..47d739e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Removed + +- `contributing-for-apps.mdc`: the commit, branch, PR and merge workflow moved to the `pr-steward` plugin. + ## [0.22.0] - 2026-10-18 ### Changed diff --git a/README.md b/README.md index 699515f..ede3480 100644 --- a/README.md +++ b/README.md @@ -70,9 +70,20 @@ Then restart Claude Code or run `/reload-plugins`. /plugin install archipy@archipy ``` +### Companion plugin: pr-steward + +The issue, branch, PR, checklist and merge workflow is not part of this plugin. Install +[`pr-steward`](https://github.com/SyntaxArc/pr-steward) next to it and use its skills (`new-issue`, `split-issue`, +`open-pr`, `tick-checklist`, `merge-pr`) for the git and PR flow in your app: + +```bash +/plugin marketplace add SyntaxArc/pr-steward +/plugin install pr-steward@pr-steward +``` + ## What’s included -### Rules (17) +### Rules (16) | Rule file | Applies when | |----------------------------------|--------------------------------------------------| @@ -81,7 +92,6 @@ Then restart Claude Code or run `/reload-plugins`. | `python-code-style-for-apps.mdc` | Always | | `security-for-apps.mdc` | Always | | `tooling-for-apps.mdc` | Always | -| `contributing-for-apps.mdc` | Always | | `typing-for-apps.mdc` | `**/*.py` | | `using-archipy-adapters.mdc` | `**/repositories/**/adapters/**/*.py` | | `using-archipy-utils.mdc` | `**/helpers/utils/**/*.py` | @@ -253,9 +263,9 @@ Always-on layer map, call flow (`services → logics → repositories → adapte ### Cross-cutting app rules -`python-code-style-for-apps`, `typing-for-apps`, `security-for-apps`, `tooling-for-apps`, and -`contributing-for-apps` carry the consumer-safe parts of ArchiPy's core standards: Python 3.14 style, complete typing, -runtime-evaluated type safety, secrets/logging controls, parameterized queries, `uv`, and focused PR workflow. App +`python-code-style-for-apps`, `typing-for-apps`, `security-for-apps`, and `tooling-for-apps` carry the consumer-safe parts of ArchiPy's core standards: Python 3.14 style, complete typing, +runtime-evaluated type safety, secrets/logging controls, parameterized queries, and `uv`. The commit, branch, PR and merge workflow lives in the +`pr-steward` plugin (`SyntaxArc/pr-steward`). App tooling wins when stricter; library-only Make targets and per-file exemptions are not copied. ### `using-archipy-adapters` diff --git a/rules/contributing-for-apps.mdc b/rules/contributing-for-apps.mdc deleted file mode 100644 index 38ef713..0000000 --- a/rules/contributing-for-apps.mdc +++ /dev/null @@ -1,28 +0,0 @@ ---- -description: ArchiPy app contribution workflow — focused changes, conventional commits, branches, and PR checks -alwaysApply: true ---- - -# Contributing to ArchiPy Apps - -## Changes and Commits - -- Keep changes focused on one purpose; do not mix unrelated refactors or lockfile churn. -- Preserve pre-existing user changes. -- Use conventional commit types: `feat`, `fix`, `chore`, `docs`, `refactor`, `test`, `perf`, `ci`. -- Write concise imperative subjects; explain non-obvious reasons in the body. -- Reference the app's issue tracker when applicable. - -## Branches and Pull Requests - -- Prefer short single-purpose branches such as `feat/`, `fix/`, or `chore/`. -- Keep PRs/MRs reviewable. Describe what changed, why, and how it was tested. -- Keep the description current when behavior changes during review. -- Never include secrets, generated credentials, large artifacts, or unrelated changes. - -## Before Merge - -Run the app's configured formatter, linter/type checker, targeted Behave/unit tests, and security checks appropriate to -the change. Network adapters, auth, cryptography, uploads, and secret/config changes require security validation. - -Do not update changelogs, versions, tags, or releases unless the app's policy or user explicitly requires it. diff --git a/rules/rules-index-for-apps.mdc b/rules/rules-index-for-apps.mdc index ca610fb..569c154 100644 --- a/rules/rules-index-for-apps.mdc +++ b/rules/rules-index-for-apps.mdc @@ -14,7 +14,7 @@ alwaysApply: true | Strict typing | `typing-for-apps.mdc` | | Security, secrets, query safety, suppressions | `security-for-apps.mdc` | | Dependencies and local checks | `tooling-for-apps.mdc` | -| Commits, branches, PRs/MRs | `contributing-for-apps.mdc` | +| Commits, branches, PRs/MRs | `pr-steward` plugin skills (`open-pr`, `merge-pr`) | | Config and dependency injection | `config-and-di.mdc` | | Models and domain errors | `using-archipy-models.mdc` | | Domain adapters and infrastructure boundaries | `using-archipy-adapters.mdc` | diff --git a/scripts/check_catalog.py b/scripts/check_catalog.py index 263e232..3899cce 100755 --- a/scripts/check_catalog.py +++ b/scripts/check_catalog.py @@ -75,7 +75,6 @@ REVIEWER_AGENT = "archipy-reviewer.md" REQUIRED_APP_RULES = { "architecture-for-apps.mdc", - "contributing-for-apps.mdc", "python-code-style-for-apps.mdc", "rules-index-for-apps.mdc", "security-for-apps.mdc", diff --git a/tests/test_scripts.py b/tests/test_scripts.py index 2fb6bbd..224a7fd 100644 --- a/tests/test_scripts.py +++ b/tests/test_scripts.py @@ -281,7 +281,6 @@ def test_claude_session_start_injects_architecture_rule(self) -> None: context = self._claude_context(payload, "SessionStart") self.assertIn("# ArchiPy App Rules Index", context) self.assertIn("# Architecture for ArchiPy Apps", context) - self.assertIn("# Contributing to ArchiPy Apps", context) self.assertIn("# Python Code Style for ArchiPy Apps", context) self.assertIn("# Security for ArchiPy Apps", context) self.assertIn("# Tooling for ArchiPy Apps", context)