金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

openwork-core

openwork-core 是面向软件开发的 Agent Skill,来自 different-ai/openwork。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Core context and guardrails for OpenWork native app

SKILL.md

下载 MD ↓
nameopenwork-core
descriptionCore context and guardrails for OpenWork native app

Quick Usage (Already Configured)

Orientation

  • Read AGENTS.md and MOTIVATIONS-PHILOSOPHY.md before changing behavior.
  • Ensure vendor/opencode exists for self-reference.
  • Use the tauri-solidjs skill for stack-specific guidance.

Update the OpenCode mirror

git -C vendor/opencode pull --ff-only

Development workflow

pnpm tauri dev          # Desktop development
pnpm tauri ios dev      # iOS development
pnpm tauri android dev  # Android development

# Or run directly in the desktop package:
pnpm -C packages/desktop tauri dev

OpenCode Integration

Spawn OpenCode CLI

opencode -p "your prompt" -f json -q

Read OpenCode database

~/.opencode/opencode.db  # SQLite database

Key tables

  • sessions — Task runs
  • messages — Chat messages and tool calls
  • history — File change tracking

Common Gotchas

  • OpenWork must stay within OpenCode's tool surface; avoid inventing new capabilities.
  • Always expose plans, permissions, and progress for non-technical users.
  • Use Tauri commands for all system access (file, shell, database).
  • Keep UI at 60fps; avoid blocking the main thread.
  • Mobile builds require platform-specific setup (Xcode, Android Studio).

UI Principles

  • Slick and fluid: animations, transitions, micro-interactions.
  • Mobile-first: touch targets, gestures, adaptive layouts.
  • Transparency: show plans, steps, and tool calls.
  • Progressive disclosure: hide advanced controls until needed.

First-Time Setup (If Not Configured)

Clone the OpenCode mirror

git clone https://github.com/anomalyco/opencode vendor/opencode

Initialize Tauri project

pnpm create tauri-app . --template solid-ts

Add mobile targets

pnpm tauri ios init
pnpm tauri android init

Common Gotchas

  • OpenWork must stay within OpenCode’s tool surface; avoid inventing new capabilities.
  • Always expose plans, permissions, and progress for non-technical users.

First-Time Setup (If Not Configured)

Clone the OpenCode mirror

git clone https://github.com/anomalyco/opencode vendor/opencode

来源:different-ai/openwork · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本