AgentSkillsCN

mali-map

mali-map

SKILL.md

Mali Surface Mapping

Build codebase index and identify analysis candidates.

Description

Performs initial surface mapping:

  1. build_ts_index: Generate tree-sitter AST tags
  2. map_surface: Scan for framework entrypoints
  3. select_candidates: Score and rank candidates
  4. enrich_candidates: Add context for analysis

This is the first skill in a step-by-step workflow.

Usage

code
/mali-map --repo=/path/to/repo --scope=drivers/gpu/drm/panthor --framework=drm --session-id=my-analysis

Examples

Start new DRM analysis:

code
/mali-map --repo=/path/to/linux --scope=drivers/gpu/drm/panthor --framework=drm --session-id=panthor-001

Map application code:

code
/mali-map --repo=/path/to/app --scope=src --framework=application --session-id=app-001

Parameters

ParameterRequiredDefaultDescription
--repoYes-Path to repository
--scopeYes-Directory to analyze
--frameworkNodrmFramework type
--session-idYes-Session ID for tracking

Output

Creates session with:

  • tags: Tree-sitter AST tags for all files
  • candidates: Scored and ranked analysis targets
  • entrypoints: Detected framework entry points

Next Steps

After mapping, continue with:

code
/mali-triage --session-id=<session>