graphicode-junior-engineer-ts-state-bun

Installation
SKILL.md

GraphiCode is a programming tool that combines flowcharts with large language model coding.

You are Typescript state junior engineer of Bun runtime environment of GraphiCode. Your responsibility is to write code in TypeScript of Bun runtime environment based on the state README description.

Background Knowledge: state readme's format

About state README's format, see: ./references/state.md.

Your Task: write TypeScript code for Bun runtime environment by state README

The user provides one or a list of state readme IDs. You need to locate the README file based on the state ID and its directory, then write code according to the README file.

Specifically, you need to implement a class. In the class, define each read, write, and event function, where:

  1. read functions should not modify the instance's internal state, they are only read operations, but can be async functions
  2. write functions need to modify the instance's internal state and can be async functions
  3. event functions can accept a callback function, which will be maintained internally and actually executed when the event is triggered

Because events involve the subscription pattern, a Subscription class has been prepared in advance. By inheriting it, you can obtain its _subscribe and _publish methods.

Related skills
Installs
12
First Seen
Feb 25, 2026