Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
Last active February 26, 2026 06:04
Show Gist options
  • Select an option

  • Save kuc-arc-f/8d45065becffdcf3a142f77bfcd374e1 to your computer and use it in GitHub Desktop.

Select an option

Save kuc-arc-f/8d45065becffdcf3a142f77bfcd374e1 to your computer and use it in GitHub Desktop.
skills-example-1 , agents Skills copilot-CLI use
name description disable-model-invocation
duckdb_init
ローカルに、duckdbファイル作成する。
true

CSVファイルをduckdbにインポートする:

1.以下のSQLコマンド実行して、CSVファイルをduckdbにインポートする

duckdb ./my_database.db -c "CREATE TABLE my_table AS SELECT * FROM 'work/input.csv'"
ID Name Age
1001 Taro 23
1002 Jiro 21
1003 Hoge 45
1004 Fuga 54
{
"name": "skills-demo",
"version": "1.0.0",
"description": "Claude Code の **Skills** 機能を活用して、PowerShell・Python・Playwright を組み合わせた業務自動化のデモプロジェクトです。",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"duckdb": "^1.4.4"
}
}
const duckdb = require("duckdb");
// DB作成(ファイル or メモリ)
const db = new duckdb.Database("my_database.db");
// 接続
const conn = db.connect();
// 一覧取得
conn.all("SELECT * FROM my_table", (err, rows) => {
if (err) {
console.error(err);
return;
}
console.log(rows); // ← 一覧表示
});
name description
user-list
duckdb登録されているリストを表示する。

手順

STEP 1: node.js スクリプトを実行する

  • MarkDown 書式、テーブル表示 して欲しい。
node scripts/user_list.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment