Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .agents/skills/add-script/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,17 @@ pnpm new -- --app=<appId> --name=<ScriptName> --license
```

`--license` はユーザーが不要と明示した場合のみ省略する。
ScriptUI を選んだ場合は `--ui=scriptui` を追加する:

```bash
pnpm new -- --app=<appId> --name=<ScriptName> --license --ui=scriptui
```

実行後に生成されるファイル:

- `es.config.mjs` に `<ScriptName>` エントリが追加される
- `src/<appId>/<ScriptName>/index.ts` にテンプレートが作成される

**ScriptUI を選んだ場合**: 生成後、`index.ts` の `entry` を `entryUI` に書き換える(後述)。

### 5. 用途(purpose)をファイルに記録する

`src/<appId>/<ScriptName>/index.ts` を開き、ファイル先頭に以下のコメントブロックを追加する:
Expand All @@ -135,14 +138,19 @@ pnpm new -- --app=<appId> --name=<ScriptName> --license

`@workflow` はユーザーの `purpose` から推測して記述する。不明な場合は `TODO` として残す。

**ScriptUI の場合**: `entry` を `entryUI` に変更し、以下のテンプレートに書き換える:
**ScriptUI の場合**: 生成済みテンプレートが `entryUI` と `__ES_THIS__` を使っていることを確認する:

```typescript
import "../../init";
import { entryUI } from "../lib/lib";
import { entry, entryUI } from "../../lib/lib";

entryUI("<ScriptName>", __ES_THIS__, (win) => {
// TODO: UI を構築する
const runButton = win.add("button", undefined, "実行");
runButton.onClick = () => {
entry("<ScriptName>", () => {
// TODO: 実行処理を書く
});
};
});
```

Expand Down
7 changes: 7 additions & 0 deletions .codex/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Codex Configuration

このディレクトリは Codex 向けのリポジトリローカル設定を置く場所です。

- 共通ルールの正本はルートの `AGENTS.md` です。
- `.codex/config.toml` はローカルサブエージェントの並列度だけを定義します。
- コマンドの自動承認や sandbox / network 権限は、この repo の設定では広げません。
6 changes: 6 additions & 0 deletions .codex/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Keep repo-local Codex config permission-neutral.
# Command approvals remain controlled by the active Codex session policy.

[agents]
max_threads = 4
max_depth = 2
6 changes: 0 additions & 6 deletions .github/copilot-instructions.md

This file was deleted.

56 changes: 0 additions & 56 deletions .github/instructions/create-script.instructions.md

This file was deleted.

90 changes: 0 additions & 90 deletions .github/instructions/extendscript.instructions.md

This file was deleted.

180 changes: 0 additions & 180 deletions .github/skills/add-script/SKILL.md

This file was deleted.

Loading
Loading