analysis-jobs
Skill by cartography-cncf
Adds post-ingestion typed analysis jobs to a Cartography module, so the graph gets computed relationships and properties after sync. Written for developers who maintain or extend Cartography modules.
Install analysis-jobs
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cartography-cncf/cartography /tmp/cartography && mkdir -p ~/.claude/skills && cp -r /tmp/cartography/.agents/skills/analysis-jobs ~/.claude/skills/analysis-jobsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cartography-cncf/cartography /tmp/cartography && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cartography/.agents/skills/analysis-jobs ~/.gemini/antigravity-cli/skills/analysis-jobsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The analysis-jobs skill explains how to add a post-ingestion typed analysis job to a Cartography module. Analysis jobs are Python definitions under cartography/analysis/*/analysis.py. They run after data is loaded and add computed relationships and properties, such as internet exposure, inherited permissions, or links to canonical ontology nodes. Custom JSON jobs are also supported for local extensions and legacy cleanup.
Jobs are either global, running once after all accounts or projects, or scoped, running once per account, project, or tenant. The skill covers writing Cypher statements with effects, iterative queries that return COUNT(*) AS TotalCompleted, cleanup of stale data, statement ordering, and wiring the call into a module. It is aimed at developers who maintain or extend Cartography modules.
Written from the project's SKILL.md and checked against it.
What it can do
- Global typed jobsRuns an analysis job once after all accounts, projects or tenants are synced.
- Scoped typed jobsRuns an analysis job once per account, project or tenant.
- Iterative queriesBatches large Cypher statements that return COUNT(*) AS TotalCompleted.
- Dependency checkingrun_typed_analysis_and_ensure_deps checks that required upstream modules have synced.
- Stale data cleanupGenerated cleanup removes outdated properties and relationships between syncs.
- Statement orderingGuidance to MERGE relationships before deleting stale ones to avoid read windows.
- Integration testingAsserts analysis-produced edges and properties with check_nodes and check_rels.
What you need
- Python
- A Cartography module
- Neo4j graph database
Try asking
- Add a global analysis job that computes internet exposure for my module
- Write a scoped analysis job that runs once per AWS account
- Wire run_typed_analysis_and_ensure_deps into my module's sync
Good to know
- Relationships should be MERGEd before stale edges are deleted, to avoid readers seeing missing edges.
- A node-property effect needs a label so cleanup knows which label owns the property.
- PropertyEffect without a cleanup stamp is rejected when cleanup runs before statements.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/analysis-jobs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/examples.md5 KB
Alternatives to analysis-jobs
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
analysis-jobs: common questions
When should I use a global analysis job instead of a scoped one?
Use a global job when it needs to see resources across all accounts, such as security groups for internet exposure. Scoped jobs run once per account, project or tenant, such as an IAM instance profile analysis per AWS account.
How do analysis jobs avoid leaving stale edges behind?
The skill says to clean up stale data the job creates. For relationships, it recommends MERGE first, then deleting edges where r.lastupdated does not equal the current UPDATE_TAG.
What must an iterative analysis query return?
It must return COUNT(*) AS TotalCompleted. The matched set should shrink on each iteration so the query terminates.
How do I install analysis-jobs?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is analysis-jobs free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is analysis-jobs safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to analysis-jobs?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
