Agent skill

memories

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/memories

SKILL.md

JSON File Creation Skill

Overview

Created a new skill called "create JSON file" for generating JSON files from JavaScript/TypeScript objects with proper error handling.

Skill Details

  • Name: "create JSON file"
  • Purpose: Create JSON files from object data with proper formatting and error reporting
  • File patterns: **/*.{js,ts,json}

Implementation Steps

  1. Create an empty file at the specified path
  2. Stringify the object into the new file using JSON.stringify with proper formatting
  3. Report success or failure, and print any error messages encountered

Usage Context

This skill is designed to be automatically applied when working with JavaScript, TypeScript, or JSON files that require JSON file creation functionality. The rule follows agent-requested pattern where the AI decides when to apply it based on the description and file patterns.

Related Files

  • Rule created for automatic application when appropriate
  • Can be used across JavaScript/TypeScript projects for JSON file generation tasks

Didn't find tool you were looking for?

Be as detailed as possible for better results