Skip to content

Move corpus add/validate/extract tooling into the corpus repo - #1

Merged
sclintonowasp merged 2 commits into
mainfrom
add-corpus-tooling
Oct 28, 2026
Merged

sclintonowasp merged 2 commits into
mainfrom
add-corpus-tooling

Conversation

@sclintonowasp

Copy link
Copy Markdown
Member

Makes this repo the authoritative, self-contained place to add, validate, and process corpus resources, for both the Advisor skill and the MCP server.

The MANIFEST header referenced README.md, a validate-corpus CI check, and the PDF extraction script/workflow, but those only existed in GenAI-Security-Advisor, where the corpus was first built. This brings them over:

  • scripts/validate_corpus.py, scripts/extract_pdf_text.py, scripts/requirements.txt (copied unchanged)
  • .github/workflows/validate-corpus.yaml (PR check) and extract-pdf-text.yaml (regenerates corpus/_extracted/ on push to main)
  • README.md with the add/update process, CONTRIBUTING.md, CODEOWNERS, LICENSE (Apache-2.0 for repo-native files), .gitignore
  • MANIFEST header and docs state this repo is authoritative; the skills repo's corpus/ is a copy made by a GitHub Action and should not be edited directly

Tested locally: the validator passes on all 19 entries; extraction runs on all 13 PDFs. pypdf is unpinned, so the first extraction run after merge may rewrap the existing _extracted/ text.


Generated by Claude Code

The MANIFEST header referenced README.md, the validate-corpus CI check,
and the PDF extraction script/workflow, but those only existed in
GenAI-Security-Advisor, where the corpus was originally built. Bring
them here so adding and processing resources happens in this repo:

- scripts/validate_corpus.py, extract_pdf_text.py, requirements.txt
- .github/workflows/validate-corpus.yaml (PR check) and
  extract-pdf-text.yaml (regenerates corpus/_extracted/ on main)
- README.md with the add/update process, CONTRIBUTING.md, CODEOWNERS,
  LICENSE (Apache-2.0 for repo-native files), .gitignore
- MANIFEST header now points at README.md and names both consumers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015bzez2N6vdSh6qXV7Y44P9
The Advisor skill's corpus/ is a copy made by a GitHub Action; make that
explicit so corpus edits land here rather than in the skills repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015bzez2N6vdSh6qXV7Y44P9
@sclintonowasp
sclintonowasp merged commit 49e46fb into main Oct 28, 2026
1 check passed
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