Coding
Write, run, review, and test scripts and code. Uses Bun as the execution runtime. Applies to automation scripts, data transformation, API integration, and technical validation tasks.
- License 许可
- MIT
- 所属仓库
- benmcnulty/orgos
- 最近更新
- 2026-10-25
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Coding
- tools
- [ "bash", "file_read", "file_write" ]
- context
- 4096
- version
- 1.0.0
- description
- Write, run, review, and test scripts and code. Uses Bun as the execution runtime. Applies to automation scripts, data transformation, API integration, and technical validation tasks.
03 SKILL.md 正文
Coding Skill
Provides code writing, execution, and review capabilities using Bun as the runtime.
Operations
Script
Write a TypeScript or JavaScript script to accomplish a task.
Runtime: Bun (prefer Bun built-ins over npm packages) Style: TypeScript with strict types at module boundaries
// Always start with clear intent comment
// Script: <what this does>
// Input: <what it expects>
// Output: <what it produces>
const result = await fetch(url).then(r => r.json());
console.log(JSON.stringify(result, null, 2));
Run
Execute a script or shell command via Bash.
RUN: bun run .system/scripts/<name>.ts
RUN: bun test .system/tests/*.test.ts
Capture output: Always capture stdout/stderr for analysis.
Review
Analyze existing code for issues:
- Correctness: Does it do what it claims?
- Safety: Path traversal, injection, unvalidated input?
- Error handling: Unhandled rejections, silent failures?
- Performance: Unnecessary awaits in loops, unbounded data reads?
- Style: Consistent with project conventions?
Update
Modify existing code based on review findings or new requirements. Always:
- Read the current file
- Understand the change scope
- Apply the minimal change that achieves the goal
- Re-read to verify no unintended changes
Test
Write or run tests to validate behavior.
Framework: Bun's built-in test runner
Location: .system/tests/*.test.ts
Command: bun test .system/tests/*.test.ts
import { test, expect } from "bun:test";
test("description of behavior", () => {
expect(actual).toBe(expected);
});
Code Standards
constoverlet; novarasync/awaitover Promise chains- Optional chaining (
?.) and nullish coalescing (??) - Explicit error messages at boundaries:
throw new Error("X failed: " + detail) - No hardcoded paths — use relative paths from project root
- No external npm packages unless explicitly approved
Anti-Patterns
- Do not write scripts that delete or overwrite files without reading first
- Do not run commands that affect system state outside
.data/and.system/ - Do not loop on a shell command without a clear exit condition
- Do not import packages not already in
package.json - Do not write
// TODOcomments in production code — finish the task or raise it explicitly
04 同仓库更多 Skills
Web Browsing
Search the web via DuckDuckGo, fetch and extract content from URLs, and look up reference material. Use for real-time information, external documentation, and validating facts against public sources.
Vision
Capture screenshots of the application UI and analyze image content. Use for visual verification, UI inspection, accessibility review, and generating image-grounded descriptions.
Staff
Shape the organization structure, assign agent templates to roles, and manage staffed identities in the active organization.
Projects
Define delivery-oriented projects, participants, outputs, and current execution state for the active organization.
organizations
暂无简介
notifications
暂无简介