From 49c814b800059e5278d818340ee80d027ce5f083 Mon Sep 17 00:00:00 2001 From: Samuel Paluba Date: Sun, 15 Nov 2026 13:43:36 +0100 Subject: [PATCH] Use GitHub rich writing across native delivery surfaces --- .codex-plugin/plugin.json | 2 +- .github/pull_request_template.md | 18 +++- .github/release-notes.md | 14 +++ CHANGELOG.md | 6 ++ GITHUB.md | 5 ++ README.md | 32 ++++++- docs/CONFIGURATION.md | 34 +++++++- docs/DECISIONS.md | 7 ++ docs/VERIFICATION.md | 11 +++ .../plans/2026-11-15-github-writing.md | 12 +++ scripts/validate.py | 2 +- skills/full-github/SKILL.md | 6 ++ .../data/configuration-options.json | 86 +++++++++++++++++++ skills/full-github/references/features.md | 5 ++ skills/full-github/references/markdown.md | 67 +++++++++++++++ wiki/Configuration.md | 34 +++++++- wiki/Home.md | 2 +- wiki/Verification.md | 11 +++ wiki/Writing.md | 52 +++++++++++ wiki/_Sidebar.md | 2 + 20 files changed, 399 insertions(+), 9 deletions(-) create mode 100644 docs/superpowers/plans/2026-11-15-github-writing.md create mode 100644 skills/full-github/references/markdown.md create mode 100644 wiki/Writing.md diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index b8f6d3e..68ad898 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "full-github", - "version": "0.4.0", + "version": "0.4.1", "description": "Source-backed GitHub capability discovery and execution for Codex, including repository, organization and enterprise workflows.", "author": { "name": "ThinkHome", diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index d70a037..a983554 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,7 +1,19 @@ -## Change +## Outcome -Closes # +Describe the concrete problem and resulting behavior. Link the actual issue using a closing keyword when this PR completes it. ## Verification -Describe executed checks and live GitHub evidence. +| Check | Result and evidence | +| --- | --- | +| Relevant tests | Record the executed command and observed result | +| Native behavior | Link the actual object, source ref or read-back | +| Rendered content | Verify affected file/comment/Wiki/release surfaces when changed | + +- [ ] Acceptance criteria are satisfied or remaining work is explicitly linked. +- [ ] Existing content, permissions and chronological conversation are preserved. +- [ ] Affected Project, documentation and delivery evidence are current. + +## Limits and reviewer focus + +State meaningful remaining risks and decisions here. Keep required information visible. Use a collapsed section for lengthy secondary logs when useful. diff --git a/.github/release-notes.md b/.github/release-notes.md index 7cb1785..3815263 100644 --- a/.github/release-notes.md +++ b/.github/release-notes.md @@ -24,6 +24,20 @@ Download the ZIP/checksum and inspect the workflow run linked from the repositor The Wiki records release-specific verification, with executable checks and provider/account boundaries. +
+Independent verification commands + +Replace `PATH_TO_ZIP` with the downloaded release ZIP and `TAG` with this release tag. + +```sh +gh attestation verify PATH_TO_ZIP --repo thinkhome-org/full-github --signer-workflow thinkhome-org/full-github/.github/workflows/release.yml --deny-self-hosted-runners +gh release verify TAG --repo thinkhome-org/full-github +``` + +Check the downloaded checksum and inspect the source/version before relying on the artifact. The release-specific Wiki receipt records actual executed results. + +
+ ## Limitations The operation registry and option guidance are dated snapshots. Use current official endpoint documentation, schema errata and target-host verification before a consequential change. Administrative, paid and enterprise capabilities depend on the actual credential, organization policy and entitlement. diff --git a/CHANGELOG.md b/CHANGELOG.md index da36550..eb563bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.4.1 + +- Require active GFM and GitHub writing selection across documentation, conversations, reviews and delivery. +- Add ten source-backed writing decisions covering formatting, visual content, references, media, review suggestions and surface-specific verification. +- Improve README/PR/Wiki writing with useful tables, tasklists, diagram, collapsed details and precise evidence links. + ## 0.4.0 - Require active feature reconciliation and new chronological issue comments during delivery; preserve descriptions and independent worker comments. diff --git a/GITHUB.md b/GITHUB.md index e75f722..0ea45a8 100644 --- a/GITHUB.md +++ b/GITHUB.md @@ -61,3 +61,8 @@ Read skills/full-github/references/issue-lifecycle.md. Append new issue comments Native child issues 15/16 decompose work tracked in 14. Use sub-issues for independently accepted work and dependencies for actual ordering. Read native type, labels, assignee, shared values, Project status/priority, milestone and development links. Preserve organization-only issue field visibility and existing Project views. The public Project-local Priority remains visible without exposing restricted owner fields. Start dates are observations; target dates are explicitly best-effort estimates. Use scripts/audit.py OWNER/REPO --issue NUMBER for issue-level evidence. For full setup/audit use scripts/check_completion.py LEDGER.json with every catalog capability; resolve unfinished rows before claiming full completion. The check validates evidence claims, so linked live state must still be inspected. Ordinary fixes assess all relevant controls without manufacturing irrelevant objects. + + +## Active rich writing + +Read skills/full-github/references/markdown.md and the github-writing option group. Actively use helpful GFM/GitHub formatting in substantial files, comments, PR/reviews, Wiki, Project updates and releases. Use real checkboxes, useful comparisons and diagrams, accessible media, precise references and targeted suggestions. Select alerts/collapsible details for their reader purpose. Preview and verify the actual target; surface-specific limits and client-side rendering matter. New progress remains a new chronological comment. diff --git a/README.md b/README.md index ab2b2da..7df591d 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,39 @@ The first command inspects issue metadata, comments, timeline, shared fields, Pr The skill provides required behavior and executable checks when loaded. Codex controls skill invocation; a plugin cannot globally intercept unrelated agents or guarantee compliance outside its active workflow. +## GitHub writing that carries the work + +| Content | Use actively | Verify | +| --- | --- | --- | +| README and Wiki | Navigation, meaningful tables, clear code examples and useful diagrams | Links, real rendering and supported surface | +| Issues and PRs | Acceptance tasklists, linked evidence, new progress comments and targeted review suggestions | Native relationships, actual checks and preserved conversation | +| Releases and Project updates | Reader-facing changes, installation/evidence links and collapsible secondary details | Published destination and verified delivery | + +```mermaid +flowchart LR + I[Issue and acceptance] --> B[Linked branch and PR] + B --> C[Checks and review] + C --> R[Verified release] + R --> H[New delivery comment and Wiki evidence] +``` + +The issue holds scope, comments preserve chronology, and PR/release records supply implementation and delivery evidence. + +
+Inspect writing options and rendering requirements + +```sh +python3 scripts/operations.py option github-writing +python3 scripts/operations.py describe markdown/render +``` + +The [writing runbook](skills/full-github/references/markdown.md) covers GFM plus GitHub-specific alerts, collapsed sections, diagrams, math, citations, media, review suggestions and references. Select each feature for a concrete reader need and verify its destination. The [Wiki writing guide](https://github.com/thinkhome-org/full-github/wiki/Writing) demonstrates the supported documentation workflow. + +
+ ## Coverage -The 2026-11-15 inventory contains **261 capability families**, **1,281 published REST operations**, **32 GraphQL queries**, **285 GraphQL mutations** and **1,881 GraphQL types**. The configuration layer contains 459 concrete option decisions across 82 groups. Deprecated and retired operations are identified separately. Eighteen confirmed retired operations are blocked by the REST executor. +The 2026-11-15 inventory contains **261 capability families**, **1,281 published REST operations**, **32 GraphQL queries**, **285 GraphQL mutations** and **1,881 GraphQL types**. The configuration layer contains 469 concrete option decisions across 83 groups. Deprecated and retired operations are identified separately. Eighteen confirmed retired operations are blocked by the REST executor. - Repository content, Git, Issues, owner issue fields, sub-issues/dependencies, PR stacks, Agent Merge, reviews, rulesets and merge queues. - Projects fields/options, table/board/roadmap views, view CRUD, workflows, status updates, templates and Insights. diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index 71e2567..0d63247 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -1,6 +1,6 @@ # Configuration decisions -Reviewed 2026-11-15. 82 decision groups contain 459 concrete configuration choices covering every catalog capability. +Reviewed 2026-11-15. 83 decision groups contain 469 concrete configuration choices covering every catalog capability. Choose settings from the project's actual requirements, observed state, access policy and host version. Record the selected value, rationale, owner, historical evidence and read-back verification. Preserve existing custom settings and identities. @@ -2380,3 +2380,35 @@ Capabilities admin-platform-meta, admin-platform-rate-limits, admin-platform-lic - [Official sources 5](https://docs.github.com/en/rest/emojis) - [Official sources 6](https://docs.github.com/en/rest/markdown) +## Active GFM and GitHub rich writing + +Group ID github-writing. + +Capabilities repository-content, issue-comments, pr-review-comments, wiki-pages, wiki-navigation, admin-platform-markdown-rendering. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Surface and dialect | GFM tables/tasks/strikethrough/autolinks; GitHub alerts, diagrams, math and sanitized HTML extensions | Read markdown.md and select features for the actual file/comment/review/Wiki surface; actively improve useful structure without syntax decoration. | Inspect the actual rendered destination; separate API HTML preview from client rendering. | +| Structure and navigation | heading hierarchy, automatic heading anchors, relative paths, custom anchors, explicit URLs | Use descriptive headings and meaningful link labels; preserve stable anchors and cross-page paths. | Follow anchors/links at the real file ref, Wiki route and intended audience. | +| Comparisons and work | aligned tables, escaped pipes, nested lists, standard checkbox tasklists | Use tables for parallel decisions and tasklists for actual acceptance progress; native sub-issues/dependencies remain separate. | Read rendered columns and real checkbox state; reject retired tasklist blocks. | +| Code and review | language-tagged fences, diff blocks, inline code, review suggestion fences | Show executable examples and exact context. Use applicable suggestions in PR review comments only; applying a suggestion can commit code. | Inspect highlighting and review target/current head; prose diff is not an applied patch. | +| Attention and detail | NOTE/TIP/IMPORTANT/WARNING/CAUTION alerts; details/summary; blockquotes | Use alerts sparingly for consequential information and details for secondary logs. Keep required decisions and limitations visible. | Check real alert/collapse rendering, including Markdown blank lines; do not bury blockers. | +| Visual and mathematical content | Mermaid, GeoJSON, TopoJSON, ASCII STL, inline/display math | Use diagrams for real flows/relationships, maps for location data, meshes for geometry and equations for actual mathematical content. | Verify the client-rendered output and provide a textual explanation; do not mistake a returned code block for a rendered diagram. | +| Images and attachments | alt text, relative images, picture/source theme variants; native attachments | Use informative alt text and trusted assets. Feature-detect gh --attach; use native UI if absent. Arbitrary asset URLs do not prove upload. | Inspect intended light/dark context, accessible text, attachment destination and visibility. | +| Citations and references | footnotes, explicit links, issue/PR/commit references, immutable line permalinks | Cite official primary sources and use pinned code references for evidence. Footnotes are not supported in Wiki; shorthand references do not autolink in repository files/Wiki. | Open canonical evidence and verify audience/context. Use explicit Wiki/file links; snippet unfurl differs from a plain permalink. | +| Participation and permissions | quote replies, comment permalinks, mentions, team mentions, emoji/reactions | Link the actual comment answered and retain chronological posts. Mentions notify people; reactions are not acceptance or authorization. | Read back comment body/author/ID and actual authorized review, not a decorative reaction. | +| Publication and preview | POST /markdown mode gfm with repository context; final target preview and browser | Use native preview and source-aware links before publishing; verify the final committed/comment/Wiki/release surface after publication. | Retain source ref/comment ID and actual rendering evidence; preview never publishes or proves client behavior. | + +### Pitfalls + +- Wiki and repository files do not share all conversation autolinking and footnote behavior. +- A successful Markdown API response does not prove client-side diagram, math, attachment or final destination rendering. +- Markdown checkboxes cannot replace native child issues, blockers, required reviews or verified delivery. + +### Official sources + +- [Official sources 1](https://github.github.com/gfm/) +- [Official sources 2](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) +- [Official sources 3](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting) +- [Official sources 4](https://docs.github.com/en/rest/markdown) + diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index 8fd7df6..e470e1e 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -42,3 +42,10 @@ Reviewed release notes accompany generated change history on new drafts. Existin Issue 14 supersedes the assumption that catalog support and PR history sufficiently demonstrate actual use. Existing work issues had zero comments. New comments are required at material events; existing descriptions retain current scope. Retrospective delivery links are explicitly dated as new comments rather than invented past dialogue. Native sub-issues 15/16 separate deliverables; 16 depends on accepting the gate in 15. Full setup/audit claims require the complete ledger gate plus live evidence inspection. A gate validates claims and cannot make source evidence truthful or force unloaded skills. Relevant controls must be actively assessed in ordinary tasks. Organization-only fields retain their access boundaries; public Project Priority remains distinct. Missing arbitrary dates, destructive moderation or unrelated personal/billing objects are not reasons to manufacture state. + + +## 2026-11-15 — Active GFM and GitHub writing + +Issue18 extends active-use behavior to content presentation. Markdown rendering alone did not supply an adequate writing workflow. Use a source-backed runbook and ten concrete decisions across files, comments, reviews, Wiki, Project updates and releases. Improve real navigation/comparisons/acceptance/flow/evidence rather than inserting every syntax into every message. Preserve chronology and authorship. + +Use the existing native rendering endpoint for HTML preview and the browser for destination-specific behavior, including client-side diagrams/math. Standard GFM and GitHub extensions differ by surface; no generic regex Markdown checker or new parser dependency is introduced. Specialized maps/meshes and equations require relevant content, not a demonstration in every project document. diff --git a/docs/VERIFICATION.md b/docs/VERIFICATION.md index fca5d0a..527f5a2 100644 --- a/docs/VERIFICATION.md +++ b/docs/VERIFICATION.md @@ -1,5 +1,16 @@ # Verification record +## Version 0.4.1 + +GitHub writing is now an explicit active-use contract covering repository files, issue comments, PR/reviews, Wiki, Project updates and release notes. The new source-backed runbook distinguishes GFM from product-specific extensions and surface restrictions. Ten new decisions bring the configuration guide to 469 choices in 83 groups. + +- 78 regression tests pass; registry validation and generated source/Wiki checks pass. This release changes guidance/content rather than adding a Markdown parser or runtime dependency. +- Native POST /markdown in gfm mode with repository context rendered README, Writing Wiki source, PR template, release notes and runbook. HTML checks verified tables, disclosures, language fences and task inputs where used. This preview does not publish or establish client-side rendering. +- Real content now uses a delivery-flow Mermaid diagram with prose, comparable evidence tables, acceptance checkboxes, collapsed secondary detail and explicit cross-surface links. The Wiki writing guide includes a targeted tip. +- Browser verification of final README/Wiki/issue/PR/release surfaces and downloaded/install/provenance evidence is recorded in the release-specific Wiki receipt. + +Specialist math/maps/meshes, theme-dependent images, attachment uploads and applying a review suggestion were documented with official surface/permission constraints, not fabricated to decorate this repository. They are not claimed as live exercised features. Wiki footnotes and file/Wiki conversation shorthand are explicitly unsupported; installed CLI attachment flags are feature-detected. + ## Version 0.4.0 The reported conversation gap was reproduced in the live API and browser. All five prior work issues had zero comments. New comments explicitly add retrospective delivery references without recreating a fictional timeline. Current work in issue 14 uses chronological kickoff/findings/review/delivery entries, native children 15/16, a real blocker relationship and attached plan artifact 1. Shared field visibility is preserved. diff --git a/docs/superpowers/plans/2026-11-15-github-writing.md b/docs/superpowers/plans/2026-11-15-github-writing.md new file mode 100644 index 0000000..22329fd --- /dev/null +++ b/docs/superpowers/plans/2026-11-15-github-writing.md @@ -0,0 +1,12 @@ +# GitHub writing implementation plan + +Goal: actively select and verify the full appropriate GFM/GitHub writing surface throughout delivery. + +Approach: extend existing skill references and configuration decisions; use native Markdown API/browser checks. Keep runtime dependencies unchanged. Preserve conversations and stable links. No new parser or decorative all-syntax mandate. + +- [x] Inspect current docs and official surface-specific behavior. +- [x] Add writing decisions, active skill requirements and a source-backed runbook. +- [x] Improve README, PR template, Wiki and release evidence presentation. +- [ ] Independently review guidance; run regression/registry/generated checks and native HTML previews. +- [ ] Merge through linked PR, release/install and inspect final browser rendering plus downloaded artifact. +- [ ] Append real verification/delivery comments and release-specific Wiki receipt. diff --git a/scripts/validate.py b/scripts/validate.py index e1575ef..bc486f2 100644 --- a/scripts/validate.py +++ b/scripts/validate.py @@ -30,7 +30,7 @@ products = policy.get("products") assert products is None or (isinstance(products, list) and all( product in ("chatgpt", "codex", "atlas", "CHATGPT", "CODEX", "ATLAS") for product in products)), "Unsupported product restrictions" -for reference in ("features.md", "workflows.md", "operations.md", "collaboration.md", "delivery-security.md", "administration.md", "collaboration-options.md", "delivery-options.md", "administration-options.md", "history-interaction.md", "issue-lifecycle.md", "completion.md"): +for reference in ("features.md", "workflows.md", "operations.md", "collaboration.md", "delivery-security.md", "administration.md", "collaboration-options.md", "delivery-options.md", "administration-options.md", "history-interaction.md", "issue-lifecycle.md", "completion.md", "markdown.md"): assert (root / "skills/full-github/references" / reference).is_file() assert (root / "skills/full-github/SKILL.md").read_text().startswith("---\n") data = root / "skills/full-github/data" diff --git a/skills/full-github/SKILL.md b/skills/full-github/SKILL.md index 49e0aa2..a74a138 100644 --- a/skills/full-github/SKILL.md +++ b/skills/full-github/SKILL.md @@ -36,6 +36,12 @@ Read references/history-interaction.md before mutation. Supply the linked GitHub After every mutation read back the object and check the intended configuration, not only HTTP success. Preserve confirmed partial progress. On timeout re-read before retrying. Append verified evidence using verify-event only after observing the resulting GitHub state. Reconcile again after setup and verify unchanged IDs/counts and preserved custom content. Include a newly-created object and an existing customized object in meaningful reconciliation acceptance tests. +## Required GitHub writing behavior + +Read references/markdown.md and `operations.py option github-writing` before composing substantial GitHub content. Actively choose useful formatting for the actual audience/surface: headings/navigation, tables for comparable facts, real acceptance tasklists, language-tagged code, exact source/comment links, and diagrams for relationships or flow. Consider alerts, collapsed secondary details, citations, images/media, math and specialized diagram formats where the content warrants them. Use native review suggestions, quote replies and attachment flows in their supported contexts. Do not wait for a user to request better formatting. + +Apply this to README/docs, issue bodies and new chronological comments, PR descriptions/reviews, Wiki, Project updates and release notes. Preserve historical authors/content, accessibility and actual approval semantics. Use native GFM preview with repository context and inspect the final rendered destination; client-side diagrams/math and Wiki differences require target verification. Formatting does not configure a native relationship or prove a task completed. + ## Repository instructions and documentation Write the actual repository rules in GITHUB.md and link them from AGENTS.md. Include Project URLs, field/option mapping, issue types and shared issue fields, branch and review rules, CI commands, deployment and release policies, Wiki maintenance and documented capability gates. Respect existing casing and links. diff --git a/skills/full-github/data/configuration-options.json b/skills/full-github/data/configuration-options.json index bd325db..0b824b3 100644 --- a/skills/full-github/data/configuration-options.json +++ b/skills/full-github/data/configuration-options.json @@ -5460,6 +5460,92 @@ "pitfalls": [ "A successful render or catalog lookup proves only that lookup. It is not evidence of repository configuration or publication." ] + }, + { + "id": "github-writing", + "capability_ids": [ + "repository-content", + "issue-comments", + "pr-review-comments", + "wiki-pages", + "wiki-navigation", + "admin-platform-markdown-rendering" + ], + "title": "Active GFM and GitHub rich writing", + "options": [ + { + "name": "Surface and dialect", + "values": "GFM tables/tasks/strikethrough/autolinks; GitHub alerts, diagrams, math and sanitized HTML extensions", + "decision_rule": "Read markdown.md and select features for the actual file/comment/review/Wiki surface; actively improve useful structure without syntax decoration.", + "verification": "Inspect the actual rendered destination; separate API HTML preview from client rendering." + }, + { + "name": "Structure and navigation", + "values": "heading hierarchy, automatic heading anchors, relative paths, custom anchors, explicit URLs", + "decision_rule": "Use descriptive headings and meaningful link labels; preserve stable anchors and cross-page paths.", + "verification": "Follow anchors/links at the real file ref, Wiki route and intended audience." + }, + { + "name": "Comparisons and work", + "values": "aligned tables, escaped pipes, nested lists, standard checkbox tasklists", + "decision_rule": "Use tables for parallel decisions and tasklists for actual acceptance progress; native sub-issues/dependencies remain separate.", + "verification": "Read rendered columns and real checkbox state; reject retired tasklist blocks." + }, + { + "name": "Code and review", + "values": "language-tagged fences, diff blocks, inline code, review suggestion fences", + "decision_rule": "Show executable examples and exact context. Use applicable suggestions in PR review comments only; applying a suggestion can commit code.", + "verification": "Inspect highlighting and review target/current head; prose diff is not an applied patch." + }, + { + "name": "Attention and detail", + "values": "NOTE/TIP/IMPORTANT/WARNING/CAUTION alerts; details/summary; blockquotes", + "decision_rule": "Use alerts sparingly for consequential information and details for secondary logs. Keep required decisions and limitations visible.", + "verification": "Check real alert/collapse rendering, including Markdown blank lines; do not bury blockers." + }, + { + "name": "Visual and mathematical content", + "values": "Mermaid, GeoJSON, TopoJSON, ASCII STL, inline/display math", + "decision_rule": "Use diagrams for real flows/relationships, maps for location data, meshes for geometry and equations for actual mathematical content.", + "verification": "Verify the client-rendered output and provide a textual explanation; do not mistake a returned code block for a rendered diagram." + }, + { + "name": "Images and attachments", + "values": "alt text, relative images, picture/source theme variants; native attachments", + "decision_rule": "Use informative alt text and trusted assets. Feature-detect gh --attach; use native UI if absent. Arbitrary asset URLs do not prove upload.", + "verification": "Inspect intended light/dark context, accessible text, attachment destination and visibility." + }, + { + "name": "Citations and references", + "values": "footnotes, explicit links, issue/PR/commit references, immutable line permalinks", + "decision_rule": "Cite official primary sources and use pinned code references for evidence. Footnotes are not supported in Wiki; shorthand references do not autolink in repository files/Wiki.", + "verification": "Open canonical evidence and verify audience/context. Use explicit Wiki/file links; snippet unfurl differs from a plain permalink." + }, + { + "name": "Participation and permissions", + "values": "quote replies, comment permalinks, mentions, team mentions, emoji/reactions", + "decision_rule": "Link the actual comment answered and retain chronological posts. Mentions notify people; reactions are not acceptance or authorization.", + "verification": "Read back comment body/author/ID and actual authorized review, not a decorative reaction." + }, + { + "name": "Publication and preview", + "values": "POST /markdown mode gfm with repository context; final target preview and browser", + "decision_rule": "Use native preview and source-aware links before publishing; verify the final committed/comment/Wiki/release surface after publication.", + "verification": "Retain source ref/comment ID and actual rendering evidence; preview never publishes or proves client behavior." + } + ], + "sources": [ + "https://github.github.com/gfm/", + "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax", + "https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting", + "https://docs.github.com/en/rest/markdown" + ], + "community_sources": [], + "pitfalls": [ + "Wiki and repository files do not share all conversation autolinking and footnote behavior.", + "A successful Markdown API response does not prove client-side diagram, math, attachment or final destination rendering.", + "Markdown checkboxes cannot replace native child issues, blockers, required reviews or verified delivery." + ] } ] } diff --git a/skills/full-github/references/features.md b/skills/full-github/references/features.md index 1a27b84..334c354 100644 --- a/skills/full-github/references/features.md +++ b/skills/full-github/references/features.md @@ -24,3 +24,8 @@ Use current official documentation and live schema to settle drift. GitHub Enter ## Nested configuration and history Every capability maps to concrete configuration decisions in data/configuration-options.json. Use options/option for choices and their verification. The complete compressed official REST schema preserves every published nested request/response definition, and schema traverses references. Read source-backed API errata, the domain option references and history-interaction.md before applying changes. + + +## Writing is part of execution + +Use [markdown.md](markdown.md) and the github-writing option group across repository files, conversations, reviews, Wiki and delivery. Select useful GFM and supported GitHub rich-writing extensions proactively; preview and verify the actual destination. Native task relationships, approvals and publication still require their own controls. diff --git a/skills/full-github/references/markdown.md b/skills/full-github/references/markdown.md new file mode 100644 index 0000000..f87cc11 --- /dev/null +++ b/skills/full-github/references/markdown.md @@ -0,0 +1,67 @@ +# GitHub Markdown as an active publishing workflow + +Official sources checked on 2026-11-15. Apply this to every GitHub text artifact you create or materially change. Choose the richest form that helps the reader act or verify the work. Use the relevant features proactively; do not pad every short comment with every possible syntax. Preserve author content and chronological conversation under [issue-lifecycle.md](issue-lifecycle.md). + +## Distinguish syntax from product behavior + +The [GFM specification](https://github.github.com/gfm/) defines CommonMark plus tables, task-list items, strikethrough, extended autolinks and restricted HTML. GitHub also sanitizes and post-processes output. Alerts, issue references, mentions, rich previews, math and diagrams depend on the product surface; a generic Markdown parser is insufficient evidence of their behavior. GitHub Docs' Liquid tags and special frontmatter are for its documentation site, not arbitrary repository Markdown. + +Before writing, identify the host/version, audience, exact destination and source of truth. README files, issue comments, review comments, Wiki pages, release notes and Project updates do not have identical rendering or interaction. Use explicit links and a plain textual fallback when a richer element is unsupported. + +## Select useful formatting every time + +| Reader need | Use and verify | +| --- | --- | +| Find and scan information | Hierarchical headings, short paragraphs, meaningful link labels and focused bold emphasis. Use numbered lists for ordered actions and bullets for alternatives. Verify actual heading anchors and relative paths after rename/move. | +| Compare decisions or results | GFM tables with real column headers and alignment where helpful. Escape literal pipes, including pipes inside inline code. Keep cells short; tables do not contain block-level lists or fenced blocks. Link to detailed sections instead. | +| Track small acceptance steps | `- [ ]` and `- [x]` for actual observed work. Keep these distinct from native sub-issues/dependencies and CI results. Retired tasklist blocks are not a setup target. Native children handle independently accepted deliverables. | +| Keep literal text and line structure | Escape punctuation or use code spans. A single newline behaves differently in conversation text and `.md` files; use blank paragraphs or an explicit hard break deliberately. HTML comments hide rendered text but do not protect secrets in source. | +| Add small semantic cues | Consider italic emphasis, ``/``, thematic breaks and familiar emoji where meaningful. HEX/RGB/HSL inline-code color swatches are conversation-specific; retain written color names/values. | +| Share commands, configuration or output | Inline backticks for identifiers and fenced blocks with the actual language (`sh`, `json`, `yaml`, `python`). Use a longer outer fence when documenting fences. Label `diff` blocks for additions/removals; colored output alone does not establish an applied patch. | +| Explain a past statement | A short blockquote plus the exact comment URL. Use `~~strikethrough~~` only when showing a superseded phrase helps; append consequential changed decisions as new comments. | +| Separate primary result from bulky proof | `
Descriptive evidence label` with blank lines around inner Markdown and a closing `
`. Keep the result, blockers and required actions visible outside. Expand the disclosure to check its contents. | +| Emphasize a crucial requirement | GitHub alerts `NOTE`, `TIP`, `IMPORTANT`, `WARNING`, `CAUTION`. Use the appropriate meaning, generally one or two per article. Alerts cannot be nested in other elements. | +| Add a side explanation | Footnotes where supported, with unique identifiers and resolvable definitions. Footnotes do not render in Wiki; use ordinary links there. | +| Explain a relationship or process | Mermaid with accompanying prose and meaningful labels. Use real nodes/edges and a supported diagram type; check the host's Mermaid version using an `info` diagram when compatibility is uncertain. | +| Express an actual formula | Inline `$...$` or a fenced `math` block for display math. Define variables and retain readable explanatory text. Check literal currency-dollar escaping and the actual MathJax result. | +| Present real spatial or 3D data | Fenced `geojson`, `topojson` or ASCII `stl`, with valid source data, units/location context and a readable fallback. These are specialist renderers, not a reason to invent map/model data for an unrelated repository. | + +Sources: [basic syntax](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax), [tables](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables), [tasklists](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/about-tasklists), [code fences](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks), [collapsed sections](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections), [diagrams](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams), [math](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions). + +## Make links and evidence durable + +Use repository-relative file/image links in versioned documentation where that keeps branches and forks coherent. Use full destination URLs across the separate Wiki repository. Copy the actual rendered section anchor instead of guessing punctuation or duplicate-heading suffixes. Reference-style links help repeated destinations; custom HTML anchors can preserve an intentional stable target. + +Use commit-SHA file/line permalinks for evidence that must survive future edits. A permalink code snippet unfurls only in a comment in its originating repository; another repository receives a link and Markdown files do not embed that snippet. Use ordinary linked code examples in README/Wiki. See [file permalinks](https://docs.github.com/en/repositories/working-with-files/using-files/getting-permanent-links-to-files) and [snippet behavior](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-a-permanent-link-to-a-code-snippet). + +In conversations, native issue/PR/commit references and same-repository label URLs can expose useful titles, state and context. Issue/PR/commit autolink shorthand is not generated in repository files or Wiki; write explicit Markdown links there. External tracker autolinks need actual repository configuration and eligible access. References can generate backlinks. Avoid irrelevant mentions and reference spam; a team/person mention can notify people, including when added by editing a comment. Quote replies are still new chronological issue comments, not nested issue threads. Sources: [autolinks and previews](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls), [external autolink setup](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-autolinks-to-reference-external-resources). + +## Images, attachments and accessible presentation + +Add meaningful alt text, a caption/context when useful, and textual commands instead of screenshots of commands. Use `` with light/dark sources and an `` fallback when a diagram or logo needs theme-specific contrast. Check the actual images in both themes. Keep essential meaning out of color alone and avoid large decorative badges. Badges must link to a real current check, version or artifact. See [responsive images](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/quickstart-for-writing-on-github) and [accessible image guidance](https://docs.github.com/en/contributing/style-guide-and-content-model/style-guide#images). + +Use actual uploaded evidence or committed assets with known access boundaries. Current GitHub CLI documents `--attach` for issue/PR create, edit and comment, requires push access, and supports image/media uploads. Check installed command help first; the reviewed gh 2.96.0 lacks this flag. On a supported client, local Markdown references are rewritten when the same file is attached; preserve deliberate alt text. Otherwise use the browser upload workflow or a legitimate existing asset URL. Other document attachments use the supported browser flow; do not invent a general REST issue-attachment upload endpoint or use the release-asset API as if it were one. + +Files are uploaded immediately in the browser, before comment submission. Public-repository uploads can be public. Inspect sensitive content before upload, then verify the posted destination and intended reader access. A local path pasted into a remote comment does not upload a file. Video playback is codec/browser dependent and needs a textual explanation; CLI video attachments have no alt-text support. Sources: [attachments](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files), [CLI attachments](https://docs.github.com/en/github-cli/github-cli/attaching-files-with-github-cli). + +## Use the destination's native behavior + +| Destination | Default composition and specific checks | +| --- | --- | +| README / versioned docs | Outcome, quick start, useful navigation, language-tagged examples, meaningful badges and diagram/table where it clarifies the architecture. Verify relative assets at the actual ref. Do not import GitHub Docs Liquid or assume scripts/CSS/iframes survive sanitization. | +| Issue / chronological comment | Reproduction or current result, task acceptance where useful, evidence table, quoted exact earlier comment and collapsible redacted logs. Keep substantive progress in new comments; checkboxes do not replace native type, fields, status or relations. | +| PR description / general comment | Explain changed behavior, linked issue and validation. Use real closing keywords only for intended automatic closure and a table when tests/platform results differ. Put long logs behind a disclosure. | +| PR review | Use line-specific review comments and `suggestion` fences for an exact applicable replacement at the reviewed diff. A suggestion fence in ordinary prose is not a configured review suggestion. Applying suggestions changes commits and may invalidate checks/reviews; revalidate afterward. Batch relevant review comments where it avoids notification churn. | +| Wiki | Use real Home/sidebar/footer/page navigation and links to immutable source when needed. Pull/commit/push the separate Wiki Git repository; verify rendered publication. No footnotes or repository issue shorthand. Math/diagrams have documented support but still require target rendering checks. | +| Release notes | Installation/upgrade, concrete changes, compatibility/limits, verification and real asset/PR links. Preserve existing human prose and immutable published history. Verify the release's renderer before relying on a rich client-side extension. | +| Project README / status update | State actual status, decisions, owners and linked work; tables/checkpoints can summarize progress. Inspect this specific rendered surface before relying on diagrams, alerts or special previews. A Markdown summary does not populate Project field values or saved views. | + +Sources: [PR comments and suggestions](https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/commenting-on-a-pull-request), [applying suggestions](https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/incorporating-feedback-in-your-pull-request), [Wiki editing](https://docs.github.com/en/communities/documenting-your-project-with-wikis/editing-wiki-content). + +## Verify publication rather than syntax alone + +1. Read existing content and preserve its source of truth. Pick the useful constructs above before writing; do not leave a dense wall of text where a table, diagram, disclosure or checklist serves the reader. +2. Preview Markdown with the destination repository context. The [Markdown REST API](https://docs.github.com/en/rest/markdown) accepts `mode: gfm` and `context: OWNER/REPO`; the raw endpoint has different request/feature behavior. Inspect sanitized HTML, links, table cells and escaped code. Rendering does not publish anything. +3. Publish using the actual file/comment/review/Wiki/release/Project operation with native history and an appropriate linked work context. Read back the exact content, identity and version/commit. Retry uncertain writes only after reconciliation. +4. Inspect the final rendered target in a browser. Open disclosures, follow anchors and asset links, inspect task state, view rich diagrams/math and test theme-dependent content where used. Server-rendered HTML alone does not prove client-side Mermaid, map, STL or MathJax rendering, interactive suggestions, issue-reference previews or notification behavior. +5. Fix material rendering problems at their source. Record the exact URL/ref, checked constructs and any unsupported target behavior. Keep a plain fallback when needed. If browser inspection is unavailable, state which rich rendering remains unverified instead of claiming full visual acceptance. diff --git a/wiki/Configuration.md b/wiki/Configuration.md index 71e2567..0d63247 100644 --- a/wiki/Configuration.md +++ b/wiki/Configuration.md @@ -1,6 +1,6 @@ # Configuration decisions -Reviewed 2026-11-15. 82 decision groups contain 459 concrete configuration choices covering every catalog capability. +Reviewed 2026-11-15. 83 decision groups contain 469 concrete configuration choices covering every catalog capability. Choose settings from the project's actual requirements, observed state, access policy and host version. Record the selected value, rationale, owner, historical evidence and read-back verification. Preserve existing custom settings and identities. @@ -2380,3 +2380,35 @@ Capabilities admin-platform-meta, admin-platform-rate-limits, admin-platform-lic - [Official sources 5](https://docs.github.com/en/rest/emojis) - [Official sources 6](https://docs.github.com/en/rest/markdown) +## Active GFM and GitHub rich writing + +Group ID github-writing. + +Capabilities repository-content, issue-comments, pr-review-comments, wiki-pages, wiki-navigation, admin-platform-markdown-rendering. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Surface and dialect | GFM tables/tasks/strikethrough/autolinks; GitHub alerts, diagrams, math and sanitized HTML extensions | Read markdown.md and select features for the actual file/comment/review/Wiki surface; actively improve useful structure without syntax decoration. | Inspect the actual rendered destination; separate API HTML preview from client rendering. | +| Structure and navigation | heading hierarchy, automatic heading anchors, relative paths, custom anchors, explicit URLs | Use descriptive headings and meaningful link labels; preserve stable anchors and cross-page paths. | Follow anchors/links at the real file ref, Wiki route and intended audience. | +| Comparisons and work | aligned tables, escaped pipes, nested lists, standard checkbox tasklists | Use tables for parallel decisions and tasklists for actual acceptance progress; native sub-issues/dependencies remain separate. | Read rendered columns and real checkbox state; reject retired tasklist blocks. | +| Code and review | language-tagged fences, diff blocks, inline code, review suggestion fences | Show executable examples and exact context. Use applicable suggestions in PR review comments only; applying a suggestion can commit code. | Inspect highlighting and review target/current head; prose diff is not an applied patch. | +| Attention and detail | NOTE/TIP/IMPORTANT/WARNING/CAUTION alerts; details/summary; blockquotes | Use alerts sparingly for consequential information and details for secondary logs. Keep required decisions and limitations visible. | Check real alert/collapse rendering, including Markdown blank lines; do not bury blockers. | +| Visual and mathematical content | Mermaid, GeoJSON, TopoJSON, ASCII STL, inline/display math | Use diagrams for real flows/relationships, maps for location data, meshes for geometry and equations for actual mathematical content. | Verify the client-rendered output and provide a textual explanation; do not mistake a returned code block for a rendered diagram. | +| Images and attachments | alt text, relative images, picture/source theme variants; native attachments | Use informative alt text and trusted assets. Feature-detect gh --attach; use native UI if absent. Arbitrary asset URLs do not prove upload. | Inspect intended light/dark context, accessible text, attachment destination and visibility. | +| Citations and references | footnotes, explicit links, issue/PR/commit references, immutable line permalinks | Cite official primary sources and use pinned code references for evidence. Footnotes are not supported in Wiki; shorthand references do not autolink in repository files/Wiki. | Open canonical evidence and verify audience/context. Use explicit Wiki/file links; snippet unfurl differs from a plain permalink. | +| Participation and permissions | quote replies, comment permalinks, mentions, team mentions, emoji/reactions | Link the actual comment answered and retain chronological posts. Mentions notify people; reactions are not acceptance or authorization. | Read back comment body/author/ID and actual authorized review, not a decorative reaction. | +| Publication and preview | POST /markdown mode gfm with repository context; final target preview and browser | Use native preview and source-aware links before publishing; verify the final committed/comment/Wiki/release surface after publication. | Retain source ref/comment ID and actual rendering evidence; preview never publishes or proves client behavior. | + +### Pitfalls + +- Wiki and repository files do not share all conversation autolinking and footnote behavior. +- A successful Markdown API response does not prove client-side diagram, math, attachment or final destination rendering. +- Markdown checkboxes cannot replace native child issues, blockers, required reviews or verified delivery. + +### Official sources + +- [Official sources 1](https://github.github.com/gfm/) +- [Official sources 2](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) +- [Official sources 3](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting) +- [Official sources 4](https://docs.github.com/en/rest/markdown) + diff --git a/wiki/Home.md b/wiki/Home.md index 4ea4a51..ab5122d 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -6,7 +6,7 @@ Full GitHub brings source-backed GitHub capability discovery and execution into ## Start -Read [[Installation]] and [[Usage]], then browse [[Capabilities]], [[Configuration]] and [[API]]. Use [[Workflow]] for required active delivery and chronological issue comments. Read [[History]] for execution/decision records and [[Community]] for real questions, proposals and review. [[Architecture]], [[Permissions]] and [[Verification]] explain how the plugin works and what was tested. +Read [[Installation]] and [[Usage]], then browse [[Capabilities]], [[Configuration]] and [[API]]. Use [[Workflow]] and [[Writing]] for required active delivery and chronological issue comments. Read [[History]] for execution/decision records and [[Community]] for real questions, proposals and review. [[Architecture]], [[Permissions]] and [[Verification]] explain how the plugin works and what was tested. ## Complete inventory diff --git a/wiki/Verification.md b/wiki/Verification.md index 9e65698..9459525 100644 --- a/wiki/Verification.md +++ b/wiki/Verification.md @@ -1,5 +1,16 @@ # Verification record +## Version 0.4.1 + +GitHub writing is now an explicit active-use contract covering repository files, issue comments, PR/reviews, Wiki, Project updates and release notes. The new source-backed runbook distinguishes GFM from product-specific extensions and surface restrictions. Ten new decisions bring the configuration guide to 469 choices in 83 groups. + +- 78 regression tests pass; registry validation and generated source/Wiki checks pass. This release changes guidance/content rather than adding a Markdown parser or runtime dependency. +- Native POST /markdown in gfm mode with repository context rendered README, Writing Wiki source, PR template, release notes and runbook. HTML checks verified tables, disclosures, language fences and task inputs where used. This preview does not publish or establish client-side rendering. +- Real content now uses a delivery-flow Mermaid diagram with prose, comparable evidence tables, acceptance checkboxes, collapsed secondary detail and explicit cross-surface links. The Wiki writing guide includes a targeted tip. +- Browser verification of final README/Wiki/issue/PR/release surfaces and downloaded/install/provenance evidence is recorded in the release-specific Wiki receipt. + +Specialist math/maps/meshes, theme-dependent images, attachment uploads and applying a review suggestion were documented with official surface/permission constraints, not fabricated to decorate this repository. They are not claimed as live exercised features. Wiki footnotes and file/Wiki conversation shorthand are explicitly unsupported; installed CLI attachment flags are feature-detected. + ## Version 0.4.0 The reported conversation gap was reproduced in the live API and browser. All five prior work issues had zero comments. New comments explicitly add retrospective delivery references without recreating a fictional timeline. Current work in issue 14 uses chronological kickoff/findings/review/delivery entries, native children 15/16, a real blocker relationship and attached plan artifact 1. Shared field visibility is preserved. diff --git a/wiki/Writing.md b/wiki/Writing.md new file mode 100644 index 0000000..f449ece --- /dev/null +++ b/wiki/Writing.md @@ -0,0 +1,52 @@ +# Writing on GitHub + +Use formatting to make the work easier to understand and verify. Read the [full writing runbook](https://github.com/thinkhome-org/full-github/blob/main/skills/full-github/references/markdown.md) and inspect `operations.py option github-writing` for all choices. + +> [!TIP] +> Keep the result, decision and next action visible. Put only secondary logs or long examples in collapsed sections. + +## Delivery is a conversation + +```mermaid +flowchart TD + S[Scope in issue description] --> K[New kickoff comment] + K --> F[New findings and decisions] + F --> P[Linked PR and review] + P --> V[Verification and release] + V --> D[New delivery comment] +``` + +The description stays current while separate comments preserve progress. Native child issues and blockers represent real work relationships; the diagram explains the process. + +## Choose the appropriate format + +| Reader need | Format | Native proof still needed | +| --- | --- | --- | +| Compare options | Table with descriptive headers | Actual values and sources | +| Track acceptance | Standard checkbox tasklist | Tests and read-back before checking | +| Explain relationships | Mermaid diagram and prose | Actual parent/dependency/PR links | +| Reproduce commands | Language-tagged code block | Executed result in the right environment | +| Find evidence | Explicit source/comment/code permalink | Correct ref, audience and destination | +| Review a line change | Native PR suggestion | Current target, review and applied commit | + +
+Documentation review checklist + +Use this checklist for a real writing change; these boxes are examples rather than claims that work is complete. + +- [ ] Links and heading anchors lead to intended destinations. +- [ ] Code fences are readable and examples match current commands. +- [ ] Diagrams and any math render in the target browser. +- [ ] Images have meaningful alternative text and correct visibility. +- [ ] Required limitations remain visible outside collapsed detail. +- [ ] Evidence distinguishes preview, publication and actual behavior. + +
+ +Wiki links use explicit URLs or native Wiki navigation. Footnotes are unsupported here. Repository-file footnotes, conversation reference unfurls and native attachments have their own surface constraints. See the runbook before choosing them. + +## Preview and publish + +Use the native GFM rendering endpoint with repository context for an HTML preview, then publish through the actual file/comment/Wiki workflow. Preview does not publish and does not verify client-side diagrams or math. Inspect the final destination as its intended audience. + +See [[Workflow]], [[History]] and [[Verification]]. diff --git a/wiki/_Sidebar.md b/wiki/_Sidebar.md index 644c13a..6401173 100644 --- a/wiki/_Sidebar.md +++ b/wiki/_Sidebar.md @@ -6,6 +6,8 @@ [[Workflow]] +[[Writing]] + [[Capabilities]] [[Configuration]]