Agent SkillsAgent Skills
majiayu000

predictive-intelligence

@majiayu000/predictive-intelligence
majiayu000
180
35 forks
Updated 4/7/2026
View on GitHub

Analyze tasks upfront before execution. Predict task category, identify key files, assess risk level, and detect high-consequence operations. Use proactively when any task description is provided to guide execution strategy.

Installation

$npx agent-skills-cli install @majiayu000/predictive-intelligence
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathskills/design/predictive-intelligence/SKILL.md
Branchmain
Scoped Name@majiayu000/predictive-intelligence

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

npx agent-skills-cli list

Skill Instructions


name: predictive-intelligence description: Analyze tasks upfront before execution. Predict task category, identify key files, assess risk level, and detect high-consequence operations. Use proactively when any task description is provided to guide execution strategy. allowed-tools: Read, Grep, Glob

Predictive Intelligence

Apex2's prediction phase implemented as a Claude Code skill. This skill extracts critical task metadata before any execution begins.

Instructions

When invoked (either explicitly or automatically by Claude), perform these sequential analyses:

1. Task Categorization

Analyze the task description to determine:

  • Primary category: ML/DL, Web Development, Data Analysis, Security, System Admin, DevOps, etc.
  • Complexity level: Simple, Medium, Complex
  • Estimated duration: <5min, 5-30min, >30min
  • Risk profile: Low (reversible), Medium (potentially disruptive), High (irreversible/dangerous)

2. Key File Identification

Extract specific file/folder mentions from the task:

  • Explicit file names mentioned
  • Implicit file patterns based on task type
  • Critical configuration files
  • Test files that may need updating

3. Risk Assessment

Identify potential high-consequence operations:

  • rm -rf or destructive commands
  • Database migrations or data deletion
  • System configuration changes
  • Network service modifications
  • Security credential changes

4. Environment Requirements

Predict what needs to be present:

  • Required packages/libraries
  • Service dependencies
  • File permissions needed
  • Network access requirements

5. Execution Strategy Guidance

Based on analysis, provide strategic recommendations:

  • Should proceed with direct execution?
  • Need further exploration first?
  • Requires multi-step approach?
  • Should create backups first?
  • Needs dry-run testing?

Apex2 Integration Patterns

For ML Tasks

  • Flag that training runs can exceed 5 minutes
  • Recommend parameter search before full runs
  • Suggest validating dataset dimensions first
  • Identify need for GPU resources

For Security Tasks

  • Emphasize irreversible nature of many operations
  • Recommend exact sequence verification
  • Suggest backup verification before destructive commands
  • Flag privilege escalation needs

For Web Development

  • Identify framework conventions used
  • Check for existing test coverage
  • Note dependency management approach
  • Flag potential deployment impacts

Analysis Process

  1. Read the task description carefully
  2. Use Glob to identify relevant file patterns
  3. Use Grep to search for related keywords in files
  4. Use Read to examine key files discovered
  5. Synthesize findings into structured prediction report

Output Format

Provide a concise prediction report with:

Task Analysis:
  Category: [category]
  Complexity: [level]
  Duration: [estimate]
  Risk: [profile]

Key Files:
  - [file1]: [purpose]
  - [file2]: [purpose]

Risks Identified:
  - [risk1]: [mitigation]
  - [risk2]: [mitigation]

Recommended Strategy:
  1. [step1]
  2. [step2]
  3. [step3]

Environment Needs:
  - [requirement1]
  - [requirement2]

When to Use

This skill is automatically useful when:

  • Any new task is described
  • Complex multi-step operations are planned
  • Unfamiliar codebases or domains encountered
  • High-stakes operations are contemplated
  • Quick context is needed before diving in

The goal is to prevent wasted effort and ensure safe, efficient execution by understanding the full scope before beginning.

More by majiayu000

View all
testing-n8n-testing
180

Testing N8n Testing: Test n8n nodes using Jest, nock for HTTP mocking, and local testing workflows with npm link. Use this skill when writing test files in __tests__ folders, mocking HTTP requests with nock, creating mock IExecuteFunctions contexts, testing helper functions, setting up golden file tests, running the linter before publishing, or locally testing nodes in the n8n UI. Apply when organizing test files, mocking external APIs, validating node execution output, or following the pre-publish checklist.

deploying-postgres-k8s
180

Deploys PostgreSQL on Kubernetes using the CloudNativePG operator with automated failover. Use when setting up PostgreSQL for production workloads, high availability, or local K8s development. Covers operator installation, cluster creation, connection secrets, and backup configuration. NOT when using managed Postgres (Neon, RDS, Cloud SQL) or simple Docker containers.

energize-denver-proposals
180

Use when creating or updating Energize Denver compliance proposals including benchmarking, energy audits, compliance pathways, and performance target analysis. Handles proposal generation from template, cost estimation based on building size and service type, timeline planning, and compliance verification against Denver Article XIV requirements for commercial and multifamily buildings (project)

css-styling-standards
180

CSS styling standards and best practices for responsive, accessible, and maintainable web interfaces with special considerations for multilingual content and Chuukese text display. Use when creating or modifying stylesheets and CSS components.