Skip to content

Commit 43ea7ce

Browse files
committed
fix: rename 'skills' directory to 'skill' for consistency with PAI structure
1 parent 5afb35b commit 43ea7ce

22 files changed

+1196
-54
lines changed

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
PAI is the core Personal AI Infrastructure agent implemented by this plugin. It serves as the primary interface for the OpenCode environment, managing session context, security, logging, and user interactions.
99

1010
## Capabilities
11-
- **Context Management**: Automatically loads the `skills/core/SKILL.md` file from `PAI_DIR`, performing dynamic variable substitution for personalized interaction.
11+
- **Context Management**: Automatically loads the `skill/core/SKILL.md` file from `PAI_DIR`, performing dynamic variable substitution for personalized interaction.
1212
- **Project Requirements**: Detects and loads `.opencode/dynamic-requirements.md` from the current project worktree to inject task-specific constraints.
1313
- **Event Logging**: Logs all session events and tool executions to `PAI_DIR/history/raw-outputs` in an analytics-ready JSONL format.
1414
- **Session Summarization**: Generates human-readable Markdown summaries in `PAI_DIR/history/sessions` when a session ends.
@@ -20,7 +20,7 @@ The agent's behavior is controlled via environment variables:
2020

2121
| Variable | Description | Default |
2222
| :--- | :--- | :--- |
23-
| `PAI_DIR` | Root directory for PAI skills and history | `$XDG_CONFIG_HOME/opencode` |
23+
| `PAI_DIR` | Root directory for PAI skill and history | `$XDG_CONFIG_HOME/opencode` |
2424
| `DA` | Name of your Digital Assistant | `PAI` |
2525
| `ENGINEER_NAME` | Your name/identity | `Operator` |
2626
| `DA_COLOR` | UI color theme for your DA | `blue` |

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This project is an OpenCode-compatible clone of the hook system from **Dan Miess
1313
## Features
1414

1515
### 1. Identity & Context Injection
16-
* **Core Skill Loading**: Automatically injects your `skills/core/SKILL.md` (from `PAI_DIR`) into the system prompt.
16+
* **Core Skill Loading**: Automatically injects your `skill/core/SKILL.md` (from `PAI_DIR`) into the system prompt.
1717
* **Dynamic Substitution**: Supports placeholders like `{{DA}}`, `{{DA_COLOR}}`, and `{{ENGINEER_NAME}}` for personalized interactions.
1818
* **Project Requirements**: Automatically detects and loads `.opencode/dynamic-requirements.md` from your current project, allowing for task-specific instructions.
1919

@@ -37,7 +37,7 @@ The plugin centers around the `PAI_DIR` environment variable.
3737

3838
| Variable | Description | Default |
3939
| :--- | :--- | :--- |
40-
| `PAI_DIR` | Root directory for PAI skills and history | `$XDG_CONFIG_HOME/opencode` |
40+
| `PAI_DIR` | Root directory for PAI skill and history | `$XDG_CONFIG_HOME/opencode` |
4141
| `DA` | Name of your Digital Assistant | `PAI` |
4242
| `ENGINEER_NAME` | Your name/identity | `Operator` |
4343
| `DA_COLOR` | UI color theme for your DA | `blue` |
@@ -56,7 +56,7 @@ Add the plugin to your global `opencode.json` configuration file (typically loca
5656

5757
Upon first run, the plugin will automatically:
5858
1. Detect or create your `PAI_DIR` (default: `$XDG_CONFIG_HOME/opencode`).
59-
2. Initialize the required directory structure for skills and history.
59+
2. Initialize the required directory structure for skill and history.
6060
3. Create a default `SKILL.md` core identity if one does not exist.
6161

6262
## Development & Testing
@@ -73,7 +73,7 @@ We provide scripts to verify the plugin in a pristine environment:
7373

7474
---
7575

76-
**Note**: This plugin is designed to work with the PAI ecosystem. While it auto-initializes a basic structure, you can customize your identity by editing `$PAI_DIR/skills/core/SKILL.md`.
76+
**Note**: This plugin is designed to work with the PAI ecosystem. While it auto-initializes a basic structure, you can customize your identity by editing `$PAI_DIR/skill/core/SKILL.md`.
7777

7878
---
7979

dashboard/bun.lock

Lines changed: 387 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dashboard/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>OpenCode Agent Interface</title>
8+
</head>
9+
<body class="bg-zinc-950">
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

dashboard/package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "opencode-dashboard",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"react": "^18.3.1",
13+
"react-dom": "^18.3.1",
14+
"lucide-react": "^0.400.0",
15+
"clsx": "^2.1.1",
16+
"tailwind-merge": "^2.3.0"
17+
},
18+
"devDependencies": {
19+
"@types/react": "^18.3.3",
20+
"@types/react-dom": "^18.3.0",
21+
"@vitejs/plugin-react": "^4.3.1",
22+
"autoprefixer": "^10.4.19",
23+
"postcss": "^8.4.38",
24+
"tailwindcss": "^3.4.4",
25+
"typescript": "^5.2.2",
26+
"vite": "^5.3.1"
27+
}
28+
}

dashboard/postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

0 commit comments

Comments
 (0)