Skip to content

Expand the AI automation suite: agents, skills, guardrail hooks, and workflows - #565

Open
pusewicz wants to merge 20 commits into
RandyGaul:masterfrom
pusewicz:claude-automation-suite
Open

Expand the AI automation suite: agents, skills, guardrail hooks, and workflows#565
pusewicz wants to merge 20 commits into
RandyGaul:masterfrom
pusewicz:claude-automation-suite

Conversation

@pusewicz

@pusewicz pusewicz commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Builds on #482 (cf-api-reviewer + hooks) into a full day-to-day roster for AI-assisted work on CF. Everything lives under .claude/ and AGENTS.md — no framework code or CI changes.

  • Guardrail hooks with a test harness (python3 .claude/hooks/tests/test_hooks.py, 27 passing): block edits to generated files (*_shd.h, the configure_file version files), warn on include-guard/copyright drift, on @tags the docs parser panics on, and on src/test/sample files missing their build registration. Swept against every real header/source — zero false positives (legacy guards like CF_TIMER_H and the deliberately guard-less cute_debug_printf.h are whitelisted).
  • Skills encoding project practice: test-writing (registration points + suite traps), cmake-conventions, perf-benchmarking.
  • New agents (sample-writer, researcher, performance-engineer) alongside the existing writer/reviewer/architect set, now committed in-repo. All agent guidance converges on the correct deprecation convention: prose in @brief/@remarks, never an @deprecated tag (which panics the docs parser).
  • Two multi-agent workflow scripts: pre-PR branch review with adversarial verification, and a docs-vs-implementation audit.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PAgU7PxUwMJ8416AfRK3HA

pusewicz added 20 commits August 5, 2026 13:22
check-include-guard.py derived expected guards purely from filename,
false-nagging cute_time.h (CF_TIMER_H), cute_doubly_list.h
(CF_DOUBLY_LINKED_LIST_H), and cute_debug_printf.h (deliberately no
guard). Added LEGACY_GUARDS/NO_GUARD escape hatches plus a sweep test
over all of include/*.h.

Also null-guard the flatMap calls in branch-review.js and
docs-audit.js against missing findings/issues arrays, normalize
check-docs-tags.py to 644 like the other hooks, and widen its own
header sweep test to include cute.h.
Copilot AI lite review requested due to automatic review settings August 6, 2026 07:55
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Expands the repository’s AI automation collateral under .claude/ and updates AGENTS.md to document the new agents/skills/hooks/workflows and to standardize the “deprecation-in-prose” documentation convention (avoid @deprecated tags that break the docs parser).

Changes:

  • Adds Claude Code workflows for branch review and docs-vs-implementation auditing.
  • Adds skills and agents capturing project practices (tests, CMake, perf, docs, samples, research).
  • Adds/edit hooks (and a Python test harness) to block generated-file edits and warn on include-guard/docs-tag/registration issues.

Reviewed changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
AGENTS.md Documents .claude/ automation and updates deprecation guidance to prose (no @deprecated tag).
.claude/workflows/docs-audit.js New workflow to audit header doc comments vs src/ implementations (report-only).
.claude/workflows/branch-review.js New multi-agent workflow for pre-PR review with adversarial verification.
.claude/skills/test-writing/SKILL.md New skill documenting CF’s pico_unit test workflow and registration traps.
.claude/skills/perf-benchmarking/SKILL.md New skill defining a repeatable benchmarking methodology and reporting requirements.
.claude/skills/header-api-review/SKILL.md Updates header API review guidance to deprecate via prose (no @deprecated tag).
.claude/skills/cmake-conventions/SKILL.md New skill describing consumable-framework CMake conventions and registration points.
.claude/settings.json Wires additional PostToolUse hooks (docs tags + registration).
.claude/hooks/tests/test_hooks.py Adds hook test harness covering block/warn behaviors and regression sweeps.
.claude/hooks/tests/fixtures/include/cute_wrongguard.h Fixture for include-guard mismatch warning.
.claude/hooks/tests/fixtures/include/cute_nocopyright.h Fixture for missing copyright warning.
.claude/hooks/tests/fixtures/include/cute_midtoken.h Fixture ensuring mid-token @ doesn’t trigger docs-tag warnings.
.claude/hooks/tests/fixtures/include/cute_goodfixture.h Fixture representing a clean header for hook tests.
.claude/hooks/tests/fixtures/include/cute_badtag.h Fixture containing unsupported @tags to ensure hook warns.
.claude/hooks/check-registration.py New hook warning on missing build/test/sample/header registration.
.claude/hooks/check-include-guard.py Enhances include-guard hook to also warn on missing copyright, with legacy/no-guard allowlists.
.claude/hooks/check-docs-tags.py New hook warning on docs-parser-breaking @tags anywhere in headers.
.claude/hooks/block-generated-files.py Extends generated-file blocking to include cute_version.h/.cpp configure_file outputs.
.claude/agents/software-architect.md New agent guidance for producing implementation plans (read-only).
.claude/agents/sample-writer.md New agent guidance for writing/registering/verifying samples.
.claude/agents/researcher.md New agent guidance for evidence-backed technical research (read-only).
.claude/agents/performance-engineer.md New agent guidance for measured optimization work.
.claude/agents/doc-writer.md New agent guidance for public-header doc comment editing and docs_parser constraints.
.claude/agents/code-writer.md New agent guidance for implementing changes with CF conventions and verification.
.claude/agents/code-reviewer.md New agent guidance for defect-focused reviews and verification expectations.
.claude/agents/cf-api-reviewer.md Updates API reviewer guidance to match prose deprecation convention.
.claude/.gitignore Adds a .claude-scoped gitignore rule to keep /agents/ unignored.

Comment on lines +65 to +70
main_cpp = read("test/main.cpp")
if not registered(stem, main_cpp):
problems.append(
f"suite '{stem}' is not registered in test/main.cpp "
f"(needs TEST_SUITE({stem}); and RUN_TRACED({stem});)."
)
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