Add /seed-ea Claude Code skill and fix README inaccuracies - #437
Add /seed-ea Claude Code skill and fix README inaccuracies#437CAWilson94 wants to merge 4 commits into
Conversation
- .claude/commands/seed-ea.md: Claude Code slash command for populating EA pages - SEED_EA_SKILL.md: full documentation for the skill - .gitignore: allow .claude/commands/ to be tracked - README: fix Node.js version (24.13.1 → 24.18.0) - README: add missing commands risk-score-v2, generate-entity-maintainers-data, leads - README: improve agent skills section to distinguish Claude Code vs agent skill formats
|
|
||
| Use `security-documents-generator` to populate Entity Analytics pages for development or testing. | ||
|
|
||
| Run commands from the repo root with: `yarn start <command>` |
There was a problem hiding this comment.
maybe good to teach to use nvm to always select the proper node version and skip de failure + figuring it out how to do it?
|
|
||
| Run commands from the repo root with: `yarn start <command>` | ||
|
|
||
| ## Input |
There was a problem hiding this comment.
Maybe also as input potential target cluster?
| ## Full End-to-End Sequence | ||
|
|
||
| When the user wants everything populated, recommend these in order: | ||
|
|
||
| ```bash | ||
| # 1. Core: entity store, risk engine, criticality, watchlists | ||
| yarn start risk-score-v2 --entity-kinds host,idp_user,local_user,service --hosts 20 --users 20 --services 10 --alerts-per-entity 10 | ||
|
|
||
| # 2. Risk history + relationships + anomaly behaviours (flyouts, home history panel) | ||
| yarn start generate-entity-maintainers-data --space default --quick | ||
|
|
||
| # 3. Privileged user monitoring | ||
| yarn start privmon-quick --space default | ||
|
|
||
| # 4. AI insights + anomaly records (ai_summary, flyout panels) | ||
| yarn start generate-entity-ai-insights --v2 --correlate-with-entity-store -h 20 -u 20 -s default | ||
|
|
||
| # 5. Threat hunting leads (requires inference connector pre-configured in Kibana) | ||
| yarn start leads --space default | ||
| # → choose "Generate leads now" | ||
|
|
||
| # 6. Generic entities (for generic flyout — not covered by risk-score-v2) | ||
| yarn start quick-entity-store --space default |
There was a problem hiding this comment.
Honestly I don't feel strong about it, this will get the UI fully populated, but the information does not correlates, I think for this we should focus on a single command that does it all by ingesting source logs, creating detection rules, watchlists, criticality and installing the ML jobs. Then kick-offs the entity store extraction and all the maintainers. Its a bit more work letting it process everything instead of populate the entity store indices directly, but then it would be helpful to catch entity store / maintainers errors as well
…ster input Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a Claude Code /seed-ea slash command (and supporting documentation) to help developers choose/run the correct security-documents-generator commands for seeding Entity Analytics UI pages, and updates the README to correct/expand command + skills documentation.
Changes:
- Added Claude Code skill definition at
.claude/commands/seed-ea.mdplus end-user docs inSEED_EA_SKILL.md. - Updated
README.mdto match the Node engine version and to document additional existing commands + clarify “AI assistant skills” vs agent skills. - Updated
.gitignoreintent to allow tracking Claude Code command files (but needs a small fix to work as intended).
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
SEED_EA_SKILL.md |
Adds user-facing /seed-ea documentation, page→command mapping, and an end-to-end seeding sequence. |
README.md |
Updates Node version, documents missing commands, and clarifies Claude Code skills vs agent skills. |
.gitignore |
Attempts to allow .claude/commands/ to be tracked while keeping other Claude artifacts ignored. |
.claude/commands/seed-ea.md |
Defines the Claude Code slash command behavior and the recommended command mappings/flags. |
| | AI summary / anomalies | `generate-entity-ai-insights --v2` | | ||
| | Entity flyouts — host/user/service | `generate-entity-maintainers-data` + `generate-entity-ai-insights --v2` | | ||
| | Entity flyout — generic | `quick-entity-store` | | ||
| | Explore pages (hosts/users/network) | `risk-score-v2` alerts + `generate-alerts` | | ||
| | CSP / cloud posture | `csp --data-sources elastic_all` | |
| - `--no-setup` — skip entity store installation (use when already installed) | ||
| - `--space <id>` — target a non-default space | ||
| - `--dangerous-clean` — wipe existing data before seeding (use with care) |
Updated the title formatting and removed unnecessary text.
Summary
New: /seed-ea Claude Code skill
Adds a Claude Code slash command that helps developers populate every Entity Analytics V2 page in Kibana without needing to remember which security-documents-generator command covers which page.
Open the repo in Claude Code, type /seed-ea followed by what you want to populate, and it gives you the exact yarn start command - or runs it for you.
.claude/commands/seed-ea.md - skill definition (auto-discovered by Claude Code)
SEED_EA_SKILL.md - full documentation: usage examples, page→command mapping, known gaps
.gitignore - allow .claude/commands/ to be tracked (same pattern already used for .cursor/rules/)
README fixes
The bulk of the README diff is prettier reformatting table column widths - the actual content changes are small: