Skip to content

docs: add CONTRIBUTING.md and template-only-files strip step - #44

Merged
TomKaltofen merged 3 commits into
mainfrom
docs/contributing-and-readme-rework
May 6, 2026
Merged

docs: add CONTRIBUTING.md and template-only-files strip step#44
TomKaltofen merged 3 commits into
mainfrom
docs/contributing-and-readme-rework

Conversation

@TKaltofen

@TKaltofen TKaltofen commented May 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Extends tk-342 with the dual-audience contributor flow. Builds on #43 (Code of Conduct, issue template, AGENTS/CLAUDE Project Practices).

  • CONTRIBUTING.md (new) — entry point for people improving the template scaffold itself: local setup, toolchain (tox, ruff, mypy, bandit), conventions, PR workflow, plus a "plugin development vs. template contribution" pointer that routes plugin authors to mloda-registry guides instead.
  • README.md reworked — gains a dual-audience intro and a "Contribute to this template" section (Code of Conduct, AGENTS.md, issue template). The contributor flow lives both in the README (visibility) and in CONTRIBUTING.md (canonical detail).
  • New Step 6: "Remove the template-only contributor guide" — instructs the plugin author, after tox passes, to rm CONTRIBUTING.md (the only file that is genuinely template-meta). The remaining baseline files — AGENTS.md/CLAUDE.md (working toolchain doc), CODE_OF_CONDUCT.md, .github/ISSUE_TEMPLATE/ — stay as inherited defaults the plugin author can tune. Step 6 calls out the small, optional edits.
  • docs/getting-started.md — gains the matching strip step in its post-creation checklist.

Test plan

  • tox passes (9 tests, ruff format/check, mypy --strict, bandit)
  • Audited every relative link in README.md: LICENSE, docs/getting-started.md, docs/github-workflows.md, CODE_OF_CONDUCT.md, AGENTS.md, .github/ISSUE_TEMPLATE/issue.yml — all preserved by Step 6. Two intentional dead links remain post-strip: both reference CONTRIBUTING.md, which Step 6 itself removes; plugin authors are expected to rewrite the README anyway.
  • Eyeball that the README's "Use this template" flow still reads cleanly end-to-end
  • Confirm CONTRIBUTING.md shows up in GitHub's "Contributing" auto-surface (Insights → Community Standards) once merged

Decision log

  • Inheritance scope (changed during review): initial draft stripped CODE_OF_CONDUCT, AGENTS, CLAUDE, CONTRIBUTING, ISSUE_TEMPLATE. Narrowed to CONTRIBUTING-only after recognizing AGENTS/CLAUDE describe the same toolchain that scaffolded plugins inherit and are not template metadata. COC and the issue form are sensible baselines that only need small edits (contact email, placeholder paths).

TKaltofen added 3 commits May 6, 2026 18:16
Extends tk-342 with the dual-audience contributor flow:

- CONTRIBUTING.md: new file for people improving the template scaffold
  (setup, toolchain, conventions, PR workflow, plugin-vs-template
  guidance). It is template-only and travels via the strip step below.
- README.md: simplified to one audience (plugin authors). The contributor
  content moved entirely to CONTRIBUTING.md, which GitHub auto-surfaces
  on the repo page. This avoids dead links in scaffolded plugin repos
  after Step 6 runs.
- README Setup Your Plugin: new Step 6 removes template-only files
  (CODE_OF_CONDUCT.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md,
  .github/ISSUE_TEMPLATE/) so scaffolded plugin repos start clean.
- docs/getting-started.md: extended with the matching strip step.
AGENTS.md/CLAUDE.md describe the same toolchain (tox, ruff, mypy,
bandit, Conventional Commits, mloda-registry skills) that scaffolded
plugins inherit, and CODE_OF_CONDUCT.md plus .github/ISSUE_TEMPLATE/
are sensible baselines that only need a small edit (contact email,
placeholder paths). They are working scaffold content, not template
metadata, so Step 6 keeps them.

CONTRIBUTING.md is the only file that is genuinely template-only
(its subject is "contributing to this template repo"), so it stays
in the strip list with optional-edit guidance for the rest.

The README regains its dual-audience intro and "Contribute to this
template" section pointing to CONTRIBUTING.md, AGENTS.md,
CODE_OF_CONDUCT.md, and the issue template, since most of those
links now survive Step 6.
@TomKaltofen
TomKaltofen merged commit d6499dc into main May 6, 2026
4 checks passed
@TomKaltofen
TomKaltofen deleted the docs/contributing-and-readme-rework branch May 6, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants