Skip to content

Google Style Guide bundle - #1

Merged
lars20070 merged 19 commits into
mainfrom
lars20070/googlestyleguide
Aug 5, 2026
Merged

Google Style Guide bundle#1
lars20070 merged 19 commits into
mainfrom
lars20070/googlestyleguide

Conversation

@lars20070

@lars20070 lars20070 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

The pull request adds an okf bundle for the Google Developer Documentation Style Guide and some checks.

Added

  • Google Developer Documentation Style Guide bundle, at
    okf/GoogleStyleGuide.okf.zip. Around 95 pages from
    https://developers.google.com/style, converted to markdown with YAML
    frontmatter and organized into an OKF v0.1 bundle.
  • License and attribution page inside the bundle.
  • make check-okf validates every bundle before it ships: okf/ holds
    nothing but *.okf.zip, each archive unzips cleanly, each contains a
    single top-level directory holding a .okflintrc.json, and each lints
    cleanly with okf-lint.
  • make shellcheck runs ShellCheck across scripts/.
  • GitHub Actions workflow running both checks on pushes and pull requests
    that touch okf/, scripts/, the Makefile, or the workflow itself.
  • macOS metadata (.DS_Store, __MACOSX) is ignored by git and masked
    throughout the checks.
  • MIT LICENSE covering the repository itself, separate from the licenses
    of the bundled content.
  • Agent guidance in AGENTS.md, referenced from CLAUDE.md, describing
    the bundle layout and the checks that gate it.
  • Two agent skills, available to both Claude and Cursor: context7-docs
    fetches current library documentation before code is written against it,
    and debug-third-party checks for a known upstream bug before a
    workaround is built.
  • Context7 and GitHub MCP server configuration.
  • CodeRabbit configuration .
  • cspell dictionary of project-specific terms.

Changed

  • README now explains what an OKF bundle is and walks through adding one,
    from building the folder to opening a pull request.

Summary by CodeRabbit

  • Documentation

    • Added project guidance for researching third-party libraries and investigating related issues.
    • Updated contributor instructions to reference centralized project guidance.
  • Chores

    • Improved automated code review, spelling validation, and development tool configuration.
    • Added integrated documentation and repository-service support.
    • Added automated OKF bundle validation and ShellCheck checks.
    • Updated repository housekeeping rules to ignore macOS system files.
    • Added an MIT license.
  • CI

    • Added automated validation for relevant changes through GitHub Actions.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The change adds MCP and agent configuration, CodeRabbit review automation, repository metadata, licensing, and CI validation for OKF bundles and shell scripts.

Changes

Project tooling and validation

Layer / File(s) Summary
Agent tooling and guidance
.mcp.json, .cursor/mcp.json, .claude/settings.json, AGENTS.md, CLAUDE.md, .claude/skills/*, .cursor/skills/*
Configures Context7 and GitHub MCP access. Adds agent guidance for documentation lookups and dependency investigations.
Review automation settings
.coderabbit.yaml
Configures CodeRabbit review behavior, path instructions, analysis tools, checks, chat behavior, knowledge-base options, and issue enrichment.
Repository validation and metadata
Makefile, scripts/check-okf.sh, .github/workflows/ci.yml, .shellcheckrc, AGENTS.md, .cspell.json, .gitignore, LICENSE
Adds OKF bundle validation, ShellCheck rules, path-filtered CI jobs, repository guidance, spelling terms, macOS metadata exclusions, and an MIT license.

Estimated code review effort: 2 (Simple) | ~15 minutes

Poem

I’m a rabbit with tools in my den,
MCP servers now hop in again.
CI checks each bundle with care,
Shell scripts and spelling stay clear,
While tidy reviews finish the pen.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: adding a Google Style Guide bundle.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch lars20070/googlestyleguide

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/settings.json:
- Around line 3-7: Disable automatic approval of all project MCP servers by
removing enableAllProjectMcpServers or setting it to false in the configuration.
Preserve enabledMcpjsonServers as the explicit allowlist containing context7 and
github.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 20691407-1d78-4eb4-a6d6-f8e021551372

📥 Commits

Reviewing files that changed from the base of the PR and between 330dc68 and 8d5bb6f.

⛔ Files ignored due to path filters (1)
  • okf/GoogleStyleGuide.okf.zip is excluded by !**/*.zip
📒 Files selected for processing (8)
  • .claude/plans/.gitkeep
  • .claude/settings.json
  • .coderabbit.yaml
  • .cspell.json
  • .gitignore
  • .mcp.json
  • AGENTS.md
  • CLAUDE.md

Comment thread .claude/settings.json Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/ci.yml (1)

18-24: 🚀 Performance & Scalability | 🔵 Trivial

Cancel superseded workflow runs.

Without a concurrency group, older checks continue after a newer push or pull request update. Add cancel-in-progress: true to reduce runner usage and stale work.

Proposed configuration
+concurrency:
+  group: check-okf-${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 permissions:
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci.yml around lines 18 - 24, Add a workflow-level
concurrency configuration in .github/workflows/ci.yml with cancel-in-progress
enabled, using a group key that identifies the relevant branch or pull request
workflow so superseded runs are canceled while unrelated runs remain
independent.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.cursor/mcp.json:
- Around line 4-7: Update the Context7 MCP entry in the mcp configuration to
replace the mutable `@latest` version in the npx arguments with a specific
reviewed package version, preserving the existing command and startup options.

In @.github/workflows/ci.yml:
- Around line 5-13: Replace the incorrect workflow path entry in both the push
and pull_request paths filters with the actual .github/workflows/ci.yml path,
preserving the existing okf/** and Makefile entries.

In `@AGENTS.md`:
- Around line 9-13: Clarify the bundle documentation so index.md may contain
only the optional okf_version frontmatter, while every other .md file must
contain a parseable frontmatter block with a non-empty type; remove the
contradictory statement that index.md is the only file allowed frontmatter.

In `@Makefile`:
- Around line 2-8: Update the Makefile target check-okf to require each
top-level *.okf.zip entry to be a regular file, verify its ZIP integrity, and
invoke the repository’s OKF validator for every archive before succeeding.
Preserve the existing rejection of unexpected top-level entries and ensure any
failed file-type, ZIP, or semantic validation exits nonzero.
- Around line 3-8: Update the Makefile validation recipe around the bad
assignment so failures from find are propagated instead of being masked by an
empty result. Check that okf exists before running find, and exit nonzero when
the directory is missing or find fails; retain the existing rejection of
non-*.okf.zip entries.

---

Outside diff comments:
In @.github/workflows/ci.yml:
- Around line 18-24: Add a workflow-level concurrency configuration in
.github/workflows/ci.yml with cancel-in-progress enabled, using a group key that
identifies the relevant branch or pull request workflow so superseded runs are
canceled while unrelated runs remain independent.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 2027ab5d-0532-43a8-91ee-c6a0a7761c83

📥 Commits

Reviewing files that changed from the base of the PR and between 8d5bb6f and e170c15.

📒 Files selected for processing (8)
  • .claude/skills/context7-docs/SKILL.md
  • .claude/skills/debug-third-party/SKILL.md
  • .cursor/mcp.json
  • .cursor/skills/context7-docs/SKILL.md
  • .cursor/skills/debug-third-party/SKILL.md
  • .github/workflows/ci.yml
  • AGENTS.md
  • Makefile

Comment thread .cursor/mcp.json
Comment thread .github/workflows/ci.yml Outdated
Comment thread AGENTS.md Outdated
Comment thread Makefile Outdated
Comment thread Makefile Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci.yml:
- Around line 7-9: Add a workflow-level concurrency configuration to the CI
workflow, grouping runs by workflow name and branch or pull-request identity,
and enable cancel-in-progress so superseded runs are terminated. Keep the
existing trigger and job definitions unchanged.
- Line 25: Pin the executable versions used by the validation gate: in
.github/workflows/ci.yml at lines 25-25, install a reviewed exact pnpm version
or use a SHA-pinned setup action; in scripts/check-okf.sh at lines 52-52, invoke
a reviewed exact `@thisismydesign/okf-lint` version. Verify the current CLI
documentation before selecting versions and use lockfile or equivalent
integrity-controlled sources where applicable.
- Around line 31-32: Update both actions/checkout steps in the CI workflow to
set persist-credentials to false, including the checkout preceding make
shellcheck and the other checkout that executes code from PR-controlled changes.
Keep the existing checkout versions and workflow commands unchanged.

In `@AGENTS.md`:
- Around line 9-14: Update the bundle documentation in the diff so okf_version
is explicitly optional for the bundle-root index.md. Separate the reserved-file
rule from the bundle-root exception, preserving that index.md and log.md
generally have no frontmatter while allowing the root index.md to declare
okf_version when present.

In `@Makefile`:
- Around line 5-6: Update the Makefile shellcheck target to discover shell
scripts recursively under scripts/ using the appropriate recursive glob pattern,
and ensure ShellCheck failures do not terminate the target by preserving a
non-failing command result.

In `@scripts/check-okf.sh`:
- Around line 58-65: Validate that okf_dir is an existing directory before the
find-based contents check and archive validation in scripts/check-okf.sh. If it
is missing or resolves to a regular file, emit an error and exit nonzero;
preserve the existing validation behavior for valid directories.
- Around line 36-42: Update the archive-root validation in the check function
containing roots so it enumerates all immediate entries under dest, including
files, and requires exactly one entry. Then validate that the sole entry is a
real directory before continuing; reject archives containing any extra top-level
files or directories while preserving the existing status and return behavior.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b8b734ae-ebf2-470a-aebf-63554a34f088

📥 Commits

Reviewing files that changed from the base of the PR and between e170c15 and 7b1dc38.

⛔ Files ignored due to path filters (1)
  • okf/GoogleStyleGuide.okf.zip is excluded by !**/*.zip
📒 Files selected for processing (9)
  • .claude/settings.json
  • .cspell.json
  • .cursor/plans/.gitignore
  • .github/workflows/ci.yml
  • .shellcheckrc
  • AGENTS.md
  • LICENSE
  • Makefile
  • scripts/check-okf.sh

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
Comment thread AGENTS.md
Comment thread Makefile
Comment thread scripts/check-okf.sh
Comment thread scripts/check-okf.sh
@lars20070

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 25 minutes.

@lars20070
lars20070 merged commit 4614c67 into main Aug 5, 2026
3 checks passed
@lars20070
lars20070 deleted the lars20070/googlestyleguide branch August 5, 2026 11:18
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.

1 participant