Crawler Summary

es6-refactor answer-first brief

Automatically refactor JavaScript/TypeScript code to use modern ES6+ patterns and features --- name: es6-refactor description: Automatically refactor JavaScript/TypeScript code to use modern ES6+ patterns and features --- Skill: ES6 Refactor 1. Description ES6 Refactor is a code transformation tool that automatically modernizes JavaScript and TypeScript codebases. It converts legacy patterns (var declarations, callbacks, CommonJS) to modern ES6+ equivalents (let/const, async/await, ES modules) while preser Capability contract not published. No trust telemetry is available yet. Last updated 3/1/2026.

Freshness

Last checked 3/1/2026

Best For

es6-refactor is best for general automation workflows where OpenClaw compatibility matters.

Not Ideal For

Contract metadata is missing or unavailable for deterministic execution.

Evidence Sources Checked

editorial-content, GITHUB OPENCLEW, runtime-metrics, public facts pack

Claim this agent
Agent DossierGitHubSafety: 89/100

es6-refactor

Automatically refactor JavaScript/TypeScript code to use modern ES6+ patterns and features --- name: es6-refactor description: Automatically refactor JavaScript/TypeScript code to use modern ES6+ patterns and features --- Skill: ES6 Refactor 1. Description ES6 Refactor is a code transformation tool that automatically modernizes JavaScript and TypeScript codebases. It converts legacy patterns (var declarations, callbacks, CommonJS) to modern ES6+ equivalents (let/const, async/await, ES modules) while preser

OpenClawself-declared

Public facts

4

Change events

1

Artifacts

0

Freshness

Mar 1, 2026

Verifiededitorial-contentNo verified compatibility signals

Capability contract not published. No trust telemetry is available yet. Last updated 3/1/2026.

Trust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Mar 1, 2026

Vendor

Neoskillfactory

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Capability contract not published. No trust telemetry is available yet. Last updated 3/1/2026.

Setup snapshot

git clone https://github.com/NeoSkillFactory/es6-refactor.git
  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Neoskillfactory

profilemedium
Observed Mar 1, 2026Source linkProvenance
Compatibility (1)

Protocol compatibility

OpenClaw

contractmedium
Observed Mar 1, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB OPENCLEW

Extracted files

0

Examples

4

Snippets

0

Languages

typescript

Parameters

Executable Examples

bash

# Refactor a single file
es6-refactor input.js --output output.js

# Refactor with stdin/stdout
cat legacy.js | es6-refactor > modern.js

# Dry run with diff
es6-refactor src/ --dry-run --diff

# Agent mode (used by OpenClaw)
es6-refactor --mode=agent --input=stdin --output=json

# TypeScript-specific transformations
es6-refactor component.tsx --typescript --strict

# Batch processing with glob
es6-refactor "src/**/*.js" --output "modernized/{filename}"

json

{
  "action": "refactor",
  "code": "var x = 1; function foo() { return x; }",
  "language": "javascript",
  "target": "es2020",
  "options": {
    "preserveComments": true,
    "formatOutput": true
  }
}

json

{
    "var-to-const": {
      "pattern": "var {identifier} = {value}",
      "replace": "const {identifier} = {value}",
      "conditions": ["no-reassignment"]
    },
    "callback-to-promise": {
      "pattern": "{func}(arg, function(result) { {body} })",
      "replace": "async function wrapper() { const result = await {func}(arg); {body} }"
    }
  }

json

{
    "optional-chaining": {
      "introduced": "ES2020",
      "node": "14.0.0",
      "browsers": ["Chrome 80+", "Firefox 74+", "Safari 13.1+"]
    }
  }

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB OPENCLEW

Docs source

GITHUB OPENCLEW

Editorial quality

ready

Automatically refactor JavaScript/TypeScript code to use modern ES6+ patterns and features --- name: es6-refactor description: Automatically refactor JavaScript/TypeScript code to use modern ES6+ patterns and features --- Skill: ES6 Refactor 1. Description ES6 Refactor is a code transformation tool that automatically modernizes JavaScript and TypeScript codebases. It converts legacy patterns (var declarations, callbacks, CommonJS) to modern ES6+ equivalents (let/const, async/await, ES modules) while preser

Full README

name: es6-refactor description: Automatically refactor JavaScript/TypeScript code to use modern ES6+ patterns and features

Skill: ES6 Refactor

1. Description

ES6 Refactor is a code transformation tool that automatically modernizes JavaScript and TypeScript codebases. It converts legacy patterns (var declarations, callbacks, CommonJS) to modern ES6+ equivalents (let/const, async/await, ES modules) while preserving functionality and improving readability.

The skill integrates seamlessly with OpenClaw agent workflows, providing both a CLI for direct use and an API for programmatic access. It's designed for developers who need to upgrade codebases quickly without manual refactoring, ensuring consistency and adherence to modern best practices.

2. Core Capabilities

Syntax Modernization

  • Convert var declarations to let or const based on reassignment analysis
  • Transform traditional function expressions to arrow functions where appropriate
  • Replace string concatenation with template literals
  • Convert for loops to array methods (map, filter, reduce, forEach)
  • Modernize object manipulation (computed properties, shorthand methods, destructuring)
  • Update conditional patterns (ternary operators, optional chaining, nullish coalescing)

Module System Transformation

  • Convert CommonJS require() to ES module import statements
  • Transform module.exports to export/export default syntax
  • Deduplicate and organize imports automatically
  • Handle dynamic imports for conditional loading
  • Preserve named exports and re-exports

TypeScript Support

  • Preserve type annotations during refactoring
  • Improve interface definitions (convert to type aliases when appropriate, use generics)
  • Enhance type inference opportunities
  • Handle JSX syntax for React/TypeScript files
  • Maintain declaration file (.d.ts) compatibility

Code Quality Guarantees

  • Output code passes syntax validation via AST parsing
  • Preserve original comments and formatting where possible
  • Generate properly indented, formatted output consistent with Prettier standards
  • Maintain 100% functional equivalence (no behavior changes)
  • Provide transformation logging for audit trails

Integration Features

  • CLI Interface: Accept files via stdin or file paths, output to stdout or files
  • Agent Mode: Structured input/output for OpenClaw workflow integration
  • Dry Run: Preview changes without writing files
  • Diff Output: Show unified diffs of transformations
  • Configuration: Customizable transformation rules via JSON config

3. Out of Scope

The following are explicitly NOT supported:

  • Performance optimization: Only syntax transformations; no algorithmic improvements
  • Framework patterns: No React hooks, Vue 3 composition API, Angular-specific patterns
  • Non-JS/TS files: CSS, HTML, JSON, configuration files are ignored
  • Architectural changes: No restructuring of project layout or module boundaries
  • Testing: No test generation, test migration, or validation execution
  • Documentation: No JSDoc generation or comment enhancement
  • Minification: Output remains human-readable
  • Polyfills: No runtime compatibility additions

4. Trigger Scenarios

Natural Language Triggers

  • "Refactor this code to use modern JavaScript"
  • "Convert this to ES6+ syntax"
  • "Update this JavaScript to use arrow functions and destructuring"
  • "Modernize this TypeScript code"
  • "Automatically refactor legacy JavaScript patterns"
  • "Convert CommonJS to ES modules"
  • "Replace var with let/const throughout this code"
  • "Transform async callbacks to promises/async-await"
  • "Upgrade this codebase to ES2020"

CLI Commands

# Refactor a single file
es6-refactor input.js --output output.js

# Refactor with stdin/stdout
cat legacy.js | es6-refactor > modern.js

# Dry run with diff
es6-refactor src/ --dry-run --diff

# Agent mode (used by OpenClaw)
es6-refactor --mode=agent --input=stdin --output=json

# TypeScript-specific transformations
es6-refactor component.tsx --typescript --strict

# Batch processing with glob
es6-refactor "src/**/*.js" --output "modernized/{filename}"

Agent API

{
  "action": "refactor",
  "code": "var x = 1; function foo() { return x; }",
  "language": "javascript",
  "target": "es2020",
  "options": {
    "preserveComments": true,
    "formatOutput": true
  }
}

5. Required Resources

Script Dependencies

  • @babel/core: AST parsing and code generation
  • @babel/parser: JavaScript/TypeScript parser with JSX support
  • @babel/traverse: AST traversal for transformation passes
  • @babel/generator: Code generation from transformed AST
  • @babel/preset-env: Feature detection and polyfill guidance
  • @babel/types: AST node type definitions
  • prettier: Code formatting consistency
  • commander: CLI argument parsing
  • glob: File pattern matching for batch operations
  • recast: AST manipulation with source map preservation (optional)

Reference Data

  • references/patterns.json: Legacy-to-modern transformation rules
    {
      "var-to-const": {
        "pattern": "var {identifier} = {value}",
        "replace": "const {identifier} = {value}",
        "conditions": ["no-reassignment"]
      },
      "callback-to-promise": {
        "pattern": "{func}(arg, function(result) { {body} })",
        "replace": "async function wrapper() { const result = await {func}(arg); {body} }"
      }
    }
    
  • references/es6-features.json: Feature compatibility matrix by Node/Browser version
    {
      "optional-chaining": {
        "introduced": "ES2020",
        "node": "14.0.0",
        "browsers": ["Chrome 80+", "Firefox 74+", "Safari 13.1+"]
      }
    }
    

Testing Assets

  • assets/examples//*.js: Sample legacy code files for validation
  • assets//*.d.ts: TypeScript definition files for type checking
  • tests//*.test.js: Unit tests for each transformation rule

Node.js Runtime

  • Minimum Node.js version: 14.x (for optional chaining support)
  • Recommended: 18.x or higher (full ES2022 support)

6. Technical Implementation Notes

Transformation Pipeline

  1. Parse: Use Babel parser to generate AST with accurate location data
  2. Analyze: Determine code patterns and dependencies (imports, types, reassignments)
  3. Transform: Apply rule-based modifications to AST nodes
  4. Type-check: For TypeScript, validate type preservation
  5. Generate: Output code with formatting and source maps
  6. Validate: Syntax check output to ensure no errors

Rule Engine

  • Rules stored in references/patterns.json match AST node types
  • Each rule includes: pattern selector, replacement template, conditional guards
  • Guards inspect scope, variable usage, and type information
  • Rules applied in priority order to avoid conflicts

Error Handling

  • Syntax errors in input code reported with location and message
  • Unsupported patterns logged with suggestions
  • Partial transformations rolled back on unrecoverable errors
  • Exit codes: 0=success, 1=transformation errors, 2=usage error

7. Metadata

  • Skill ID: es6-refactor-001
  • Version: 1.0.0
  • License: MIT
  • Maintainer: OpenClaw Skill Factory
  • Repository: https://github.com/openclaw/skills/tree/main/es6-refactor
  • Keywords: javascript, typescript, refactor, es6, modernize, code-quality, ast, babel
  • OpenClaw Compatibility: 1.0+

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

MissingGITHUB OPENCLEW

Contract coverage

Status

missing

Auth

None

Streaming

No

Data region

Unspecified

Protocol support

OpenClaw: self-declared

Requires: none

Forbidden: none

Guardrails

Operational confidence: low

No positive guardrails captured.
Invocation examples
curl -s "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/snapshot"
curl -s "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/contract"
curl -s "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

Do not use if

Contract metadata is missing or unavailable for deterministic execution.
No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
GITHUB_REPOSactivepieces

Rank

70

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

Traction

No public download signal

Freshness

Updated 2d ago

OPENCLAW
GITHUB_REPOScherry-studio

Rank

70

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSAionUi

Rank

70

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSCopilotKit

Rank

70

The Frontend for Agents & Generative UI. React + Angular

Traction

No public download signal

Freshness

Updated 23d ago

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "missing",
  "authModes": [],
  "requires": [],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": null,
  "outputSchemaRef": null,
  "dataRegion": null,
  "contractUpdatedAt": null,
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/snapshot",
    "contractUrl": "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/contract",
    "trustUrl": "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/trust"
  },
  "curlExamples": [
    "curl -s \"https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/snapshot\"",
    "curl -s \"https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/contract\"",
    "curl -s \"https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_OPENCLEW",
      "generatedAt": "2026-04-17T05:36:53.473Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile"
}

Facts JSON

[
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Neoskillfactory",
    "href": "https://github.com/NeoSkillFactory/es6-refactor",
    "sourceUrl": "https://github.com/NeoSkillFactory/es6-refactor",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-03-01T06:01:50.923Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-03-01T06:01:50.923Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/trust",
    "sourceUrl": "https://xpersona.co/api/v1/agents/neoskillfactory-es6-refactor/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub · GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to es6-refactor and adjacent AI workflows.