スキル一覧に戻る
Narcis13

node-review

by Narcis13

0🍴 0📅 2026年1月22日
GitHubで見るManusで実行

SKILL.md


name: node-review description: Review workscript node implementations for alignment with NODE_DEVELOPMENT_BLUEPRINT.md and consistency with the new-node skill. Use when reviewing node code, auditing node implementations, checking for compliance with single-edge return pattern, validating ai_hints metadata consistency, or ensuring thorough documentation of state interactions. Triggers on requests like "review this node", "check node compliance", "audit node implementation", or "validate node metadata".

Workscript Node Review Skill

Review workflow node implementations for compliance with the NODE_DEVELOPMENT_BLUEPRINT.md and consistency with the new-node skill patterns.

Review Process

Step 1: Read the Node Implementation

Read the complete node file to understand:

  • Class name and file location
  • Metadata structure (id, name, version, description, inputs, outputs, ai_hints)
  • Execute method logic and return patterns
  • State mutations and edge data

Step 2: Run the Checklist

See references/checklist.md for the complete review checklist covering:

  • Structure compliance
  • Single-edge return pattern
  • Metadata completeness
  • ai_hints consistency
  • State management
  • Error handling
  • Documentation quality

Step 3: Check for Common Issues

See references/common-issues.md for frequent problems and fixes.

Critical consistency issues to verify:

  1. ai_hints.example_usage must use exact node id

    // If metadata.id = 'calculateField'
    
    // WRONG - suffixed with '-1'
    example_usage: '{"calculateField-1": {...}}'
    
    // CORRECT - exact id
    example_usage: '{"calculateField": {...}}'
    
  2. All edge names in example_usage must match expected_edges

    // If expected_edges: ['success', 'error', 'empty']
    
    // WRONG - uses 'done' which isn't in expected_edges
    example_usage: '{"myNode": {"done?": "next"}}'
    
    // CORRECT - uses 'success' which is in expected_edges
    example_usage: '{"myNode": {"success?": "next"}}'
    
  3. State key names must be consistent

    • Document in post_to_state exactly what keys are written
    • Verify the code actually writes those exact keys
    • Use namespaced keys (e.g., filterResult not result)

Step 4: Document State Interactions

For each node, produce a State Interaction Documentation section:

## State Interactions

### Reads from State (get_from_state)
- `$.inputArray` - Array of items to process (resolved by engine before execution)
- `$.config.threshold` - Optional threshold value from nested state

### Writes to State (post_to_state)
- `filterResult` - Array of items matching the filter criteria
- `filterCount` - Number of items that matched
- `filterApplied` - Boolean indicating filter was executed

### Edge Data Returns
- **success**: `{ filtered: [...], count: number, originalCount: number }`
- **empty**: `{ count: 0, criteria: {...} }`
- **error**: `{ error: string, nodeId: string }`

Step 5: Verify Workflow Usage Example

Ensure the node's documentation includes a clear workflow usage example:

{
  "filter-data": {
    "data": "$.items",
    "field": "status",
    "operator": "equals",
    "value": "active",
    "success?": "process-results",
    "empty?": "handle-empty",
    "error?": "log-error"
  }
}

The example must:

  • Use the exact node id (no -1 suffix)
  • Show all required config parameters
  • Show relevant edge routing for all expected_edges
  • Include state references where applicable

Step 6: Generate Review Report

Produce a structured review report:

## Node Review: [NodeName]

### Compliance Status: [PASS/NEEDS FIXES]

### Issues Found
1. [Issue description]
   - Location: [line/section]
   - Fix: [recommended fix]

### Checklist Summary
- [ ] Single-edge return pattern: PASS/FAIL
- [ ] Metadata complete: PASS/FAIL
- [ ] ai_hints consistent: PASS/FAIL
- [ ] State documented: PASS/FAIL
- [ ] Error handling: PASS/FAIL

### State Interaction Documentation
[Include full state documentation]

### Recommended Fixes
[List specific code changes if needed]

Quick Validation Commands

After reviewing, verify the node builds and tests pass:

bun run build:nodes
bun run test:nodes

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です