From f72e181b3cd26fb2f164557898ecb20cdf0bfa66 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sun, 30 Nov 2025 08:29:49 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 12 + README.md | 3 + plugin.lock.json | 116 +++ .../.claude-plugin/marketplace.json | 33 + .../junghan0611__org-mode-skills/.gitignore | 39 + skills/junghan0611__org-mode-skills/LICENSE | 69 ++ .../junghan0611__org-mode-skills/README-KO.md | 414 +++++++++ skills/junghan0611__org-mode-skills/README.md | 329 +++++++ skills/junghan0611__org-mode-skills/SKILL.md | 432 +++++++++ skills/junghan0611__org-mode-skills/TODO.org | 643 ++++++++++++++ ...์—…-๋กœ๊ทธ__project_skills_denote_anthropic_worklog.org | 828 ++++++++++++++++++ ... „ํŠธ-ํ•™์Šต-์‹คํ—˜__agent_learning_experiment.org | 420 +++++++++ ...skills-๋“ฑ๋ก-๊ด€๋ฆฌ-๊ฐ€์ด๋“œ__skills_claude.org | 85 ++ ...-glg-skills-ํ™œ์šฉ-๊ฐ€์ด๋“œ__skills_opencode.org | 110 +++ .../references/api_reference.md | 34 + .../scripts/example.py | 19 + .../scripts/org_headings_toc.py | 97 ++ .../skill-creator/LICENSE.txt | 202 +++++ .../skill-creator/SKILL.md | 209 +++++ .../skill-creator/scripts/init_skill.py | 303 +++++++ .../skill-creator/scripts/package_skill.py | 110 +++ .../skill-creator/scripts/quick_validate.py | 65 ++ 22 files changed, 4572 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 plugin.lock.json create mode 100644 skills/junghan0611__org-mode-skills/.claude-plugin/marketplace.json create mode 100644 skills/junghan0611__org-mode-skills/.gitignore create mode 100644 skills/junghan0611__org-mode-skills/LICENSE create mode 100644 skills/junghan0611__org-mode-skills/README-KO.md create mode 100644 skills/junghan0611__org-mode-skills/README.md create mode 100644 skills/junghan0611__org-mode-skills/SKILL.md create mode 100644 skills/junghan0611__org-mode-skills/TODO.org create mode 100644 skills/junghan0611__org-mode-skills/docs/20251021T113500--denote-org-skills-ํ”„๋กœ์ ํŠธ-์‹œ์ž‘-๋ฐฐ๊ฒฝ-๋ฐ-์ž‘์—…-๋กœ๊ทธ__project_skills_denote_anthropic_worklog.org create mode 100644 skills/junghan0611__org-mode-skills/docs/20251022T120000--skills-์—์ด์ „ํŠธ-ํ•™์Šต-์‹คํ—˜__agent_learning_experiment.org create mode 100644 skills/junghan0611__org-mode-skills/docs/20251118T120000--claude-skills-๋“ฑ๋ก-๊ด€๋ฆฌ-๊ฐ€์ด๋“œ__skills_claude.org create mode 100644 skills/junghan0611__org-mode-skills/docs/20251118T121000--opencode์—์„œ-glg-skills-ํ™œ์šฉ-๊ฐ€์ด๋“œ__skills_opencode.org create mode 100644 skills/junghan0611__org-mode-skills/references/api_reference.md create mode 100755 skills/junghan0611__org-mode-skills/scripts/example.py create mode 100644 skills/junghan0611__org-mode-skills/scripts/org_headings_toc.py create mode 100644 skills/junghan0611__org-mode-skills/skill-creator/LICENSE.txt create mode 100644 skills/junghan0611__org-mode-skills/skill-creator/SKILL.md create mode 100755 skills/junghan0611__org-mode-skills/skill-creator/scripts/init_skill.py create mode 100755 skills/junghan0611__org-mode-skills/skill-creator/scripts/package_skill.py create mode 100755 skills/junghan0611__org-mode-skills/skill-creator/scripts/quick_validate.py diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..bab9d99 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "denote-org", + "description": "Pure Denote/org-mode PKM skill (no external document skills).", + "version": "0.0.0-2025.11.28", + "author": { + "name": "Junghan Kim", + "email": "junghanacs@gmail.com" + }, + "skills": [ + "./skills/junghan0611__org-mode-skills" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..ddb03b3 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# denote-org + +Pure Denote/org-mode PKM skill (no external document skills). diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..3716846 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,116 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:junghan0611/org-mode-skills:denote-org", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "ee80851f6de5108a26d5dc3ef7969e666f81b6f3", + "treeHash": "7b947748d004a7ef9ea3d12bdfe216ef28a34af52c8dcfd33983f7da5f60b479", + "generatedAt": "2025-11-28T10:19:21.619230Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "denote-org", + "description": "Pure Denote/org-mode PKM skill (no external document skills)." + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "7fb13198d196e48b8bf2376b513ec111d7a486328888790dadd47a96384e4bc5" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "3d8e3e57779fafff1cd1d26897a7501c37cd6fe710a80b7ffbf0b6238f85a75b" + }, + { + "path": "skills/junghan0611__org-mode-skills/README-KO.md", + "sha256": "dc07a39f473207fe21330f9b1e6145dcc7c99a890856f4b29d6094afbca22c9c" + }, + { + "path": "skills/junghan0611__org-mode-skills/LICENSE", + "sha256": "fbcf76ca202d4a32f81dbe80a665a8187ce06a878a82ca6dccf3417de4200246" + }, + { + "path": "skills/junghan0611__org-mode-skills/TODO.org", + "sha256": "4d81d46ea0960be4e4500f94a9c8224c950e3b97f225883e687c353fca08857b" + }, + { + "path": "skills/junghan0611__org-mode-skills/README.md", + "sha256": "58fbd678199a5d68bac4de7188d22f69cf80f2ad6819ce7fae4995ecdb76cb74" + }, + { + "path": "skills/junghan0611__org-mode-skills/.gitignore", + "sha256": "79318f8e3b420fdc13254bbcd51f51000e1b0cc7a6b8a769af0a1d1fab2d0281" + }, + { + "path": "skills/junghan0611__org-mode-skills/SKILL.md", + "sha256": "0e466ba0843d2f7fce825a5062015eab8fa12074ca772ed589712b140e6a3bb7" + }, + { + "path": "skills/junghan0611__org-mode-skills/references/api_reference.md", + "sha256": "b48c1aaceb5d76a2c0c8ad2609ecfa60e8331a0e6eda7d790f68b497f2e22810" + }, + { + "path": "skills/junghan0611__org-mode-skills/docs/20251118T121000--opencode์—์„œ-glg-skills-ํ™œ์šฉ-๊ฐ€์ด๋“œ__skills_opencode.org", + "sha256": "4ec24627f63bac22fac278a5aea1e4c4991aa1df454855a69e9c4a464044a0d8" + }, + { + "path": "skills/junghan0611__org-mode-skills/docs/20251021T113500--denote-org-skills-ํ”„๋กœ์ ํŠธ-์‹œ์ž‘-๋ฐฐ๊ฒฝ-๋ฐ-์ž‘์—…-๋กœ๊ทธ__project_skills_denote_anthropic_worklog.org", + "sha256": "f7d9d4905f2a447708c6c11df816f32c618435b5f4960f0cb6f8c1d0d5dc592e" + }, + { + "path": "skills/junghan0611__org-mode-skills/docs/20251022T120000--skills-์—์ด์ „ํŠธ-ํ•™์Šต-์‹คํ—˜__agent_learning_experiment.org", + "sha256": "1cd8ca3deaf9ecdf88d830624bd28a39bb46fa5f24524d5f953678b9f11093b0" + }, + { + "path": "skills/junghan0611__org-mode-skills/docs/20251118T120000--claude-skills-๋“ฑ๋ก-๊ด€๋ฆฌ-๊ฐ€์ด๋“œ__skills_claude.org", + "sha256": "d8c8603d0543d6df735dd9a8a9473c962dca21778b32e5ccc3d05434e086167a" + }, + { + "path": "skills/junghan0611__org-mode-skills/skill-creator/SKILL.md", + "sha256": "8c0ce23bb87be91f5b0853c2e9815617c3858b63acdddfe5da47d2c2d3a60816" + }, + { + "path": "skills/junghan0611__org-mode-skills/skill-creator/LICENSE.txt", + "sha256": "58d1e17ffe5109a7ae296caafcadfdbe6a7d176f0bc4ab01e12a689b0499d8bd" + }, + { + "path": "skills/junghan0611__org-mode-skills/skill-creator/scripts/init_skill.py", + "sha256": "0bba250b94caa4cb2b28b15dad26fdcf371aeda4c9797b8120e55c2e33e0c73c" + }, + { + "path": "skills/junghan0611__org-mode-skills/skill-creator/scripts/package_skill.py", + "sha256": "692525dd8096aee51730ab142fb2605894a6f1a4135bcffebbf4f8ed3cf8715e" + }, + { + "path": "skills/junghan0611__org-mode-skills/skill-creator/scripts/quick_validate.py", + "sha256": "41647b79d15e7e51b944d56843e9f87a33f4c66e64ded5964d1f95bad2fe634a" + }, + { + "path": "skills/junghan0611__org-mode-skills/scripts/example.py", + "sha256": "9b70271feeacb4e371f1b58a36609b4034a14f3f7b40afbda60c8aeccaf7973d" + }, + { + "path": "skills/junghan0611__org-mode-skills/scripts/org_headings_toc.py", + "sha256": "f09087a5ec5f42c9f880d68ab441a377ab435c6c1bafb62a9d45a2af39dd030a" + }, + { + "path": "skills/junghan0611__org-mode-skills/.claude-plugin/marketplace.json", + "sha256": "cef92d5b418dd1ec1384c0b7487a4a7e33760a454c9e1eb564ff13489a8ae455" + } + ], + "dirSha256": "7b947748d004a7ef9ea3d12bdfe216ef28a34af52c8dcfd33983f7da5f60b479" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file diff --git a/skills/junghan0611__org-mode-skills/.claude-plugin/marketplace.json b/skills/junghan0611__org-mode-skills/.claude-plugin/marketplace.json new file mode 100644 index 0000000..bfb131b --- /dev/null +++ b/skills/junghan0611__org-mode-skills/.claude-plugin/marketplace.json @@ -0,0 +1,33 @@ +{ + "name": "glg-skills", + "owner": { + "name": "Junghan Kim", + "email": "junghanacs@gmail.com" + }, + "metadata": { + "description": "GLG skills: Denote/org-mode PKM and related workflows.", + "version": "0.1.0" + }, + "plugins": [ + { + "name": "denote-org", + "description": "Pure Denote/org-mode PKM skill (no external document skills).", + "source": "./", + "strict": false, + "skills": [ + "./" + ] + }, + { + "name": "denote-org-pack", + "description": "Local convenience pack: denote-org plus Anthropic document skills (PDF/XLSX) for daily work.", + "source": "./", + "strict": false, + "skills": [ + "./", + "../skills/document-skills/pdf", + "../skills/document-skills/xlsx" + ] + } + ] +} diff --git a/skills/junghan0611__org-mode-skills/.gitignore b/skills/junghan0611__org-mode-skills/.gitignore new file mode 100644 index 0000000..ecd4ad7 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/.gitignore @@ -0,0 +1,39 @@ +# Python +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +env/ +venv/ +ENV/ +*.egg-info/ +dist/ +build/ + +# Emacs +*~ +\#*\# +.\#* +*.elc +auto-save-list +tramp +.\#* + +# OS +.DS_Store +Thumbs.db + +# IDE +.vscode/ +.idea/ + +# Logs +*.log + +# Test outputs +test-output/ +*.test.org + +# Temp files +temp/ diff --git a/skills/junghan0611__org-mode-skills/LICENSE b/skills/junghan0611__org-mode-skills/LICENSE new file mode 100644 index 0000000..7313768 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/LICENSE @@ -0,0 +1,69 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + +(b) You must cause any modified files to carry prominent notices stating that You changed the files; and + +(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +Copyright 2025 Junghan Kim + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/skills/junghan0611__org-mode-skills/README-KO.md b/skills/junghan0611__org-mode-skills/README-KO.md new file mode 100644 index 0000000..c669b7f --- /dev/null +++ b/skills/junghan0611__org-mode-skills/README-KO.md @@ -0,0 +1,414 @@ +# Denote-Org Skills for Claude + +> **Anthropic Life Sciences ํŒจ๋Ÿฌ๋‹ค์ž„์„ ์‚ถ ์ „๋ฐ˜์œผ๋กœ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค** + +Claude AI๋ฅผ ์œ„ํ•œ ํฌ๊ด„์ ์ธ Denote PKM ์‹œ์Šคํ…œ ์ง€์›. **3,000๊ฐœ ์ด์ƒ์˜ org ํŒŒ์ผ**๋กœ ๊ฒ€์ฆ๋œ ์‹ค์ œ ์šด์˜ ์‹œ์Šคํ…œ์ž…๋‹ˆ๋‹ค. + +**Denote ์ค‘์‹ฌ. Org-mode ๊ธฐ๋ฐ˜. ์‚ถ์˜ ๊ทœ๋ชจ๋กœ ์ฆ๋ช…๋จ.** + +[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE) +[![Files](https://img.shields.io/badge/๊ฒ€์ฆ๋จ-3000%2B%20ํŒŒ์ผ-green.svg)]() +[![Status](https://img.shields.io/badge/๋ฒ„์ „-0.1--dev-orange.svg)]() + +## ๐ŸŒŸ ๋น„์ „: Life Sciences โ†’ Life Everything + +Anthropic์€ **๋„๋ฉ”์ธ ์ปจํ…์ŠคํŠธ + AI = ์ „๋ฌธ๊ฐ€ ์ˆ˜์ค€ ํ˜‘์—…**์„ Life Sciences(PubMed, Benchling, 10x Genomics)๋กœ ์ฆ๋ช…ํ–ˆ์Šต๋‹ˆ๋‹ค. + +์ด ํ”„๋กœ์ ํŠธ๋Š” ๊ทธ ํŒจ๋Ÿฌ๋‹ค์ž„์„ **์ƒ๋ช…๊ณผํ•™(Biology)**์—์„œ **์‚ถ(Living)**์œผ๋กœ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค: + +**Life Sciences (์ƒ๋ช…๊ณผํ•™)** โ†’ **Life Everything (์‚ถ ์ „๋ฐ˜)** + +Claude๊ฐ€ PubMed ์ปจํ…์ŠคํŠธ๋กœ ๊ณผํ•™์ž๊ฐ€ ๋˜๋“ฏ์ด, Denote ์ปจํ…์ŠคํŠธ๋กœ **๋‹น์‹ ์˜ ๊ฐœ์ธ ์ง€์‹ ํŒŒํŠธ๋„ˆ**๊ฐ€ ๋ฉ๋‹ˆ๋‹ค. + +### ํŒจํ„ด ๋น„๊ต + +| ์˜์—ญ | ์ปจํ…์ŠคํŠธ | ๊ฒฐ๊ณผ | +|------|---------|------| +| **Anthropic** | PubMed (์ˆ˜๋ฐฑ๋งŒ ๋…ผ๋ฌธ) + Claude | ๊ณผํ•™ ์—ฐ๊ตฌ AI | +| **์ด ํ”„๋กœ์ ํŠธ** | Denote (3,000+ org ํŒŒ์ผ) + Claude | ๊ฐœ์ธ ์ง€์‹ AI | + +**๊ฐ™์€ ๋ฐฉ๋ฒ•๋ก . ๋‹ค๋ฅธ ๋„๋ฉ”์ธ. ๋ณดํŽธ์  ํŒจ๋Ÿฌ๋‹ค์ž„.** + +## ์™œ Skills์ธ๊ฐ€? ๋‹จ์ˆœ ํ”„๋กฌํ”„ํŠธ๊ฐ€ ์•„๋‹Œ ์ด์œ  + +**Anthropic Skills ์ฒ ํ•™:** + +> "Skills๋Š” Claude๋ฅผ ๋ฒ”์šฉ ์—์ด์ „ํŠธ์—์„œ **์ ˆ์ฐจ์  ์ง€์‹**์„ ๊ฐ–์ถ˜ ์ „๋ฌธ ์—์ด์ „ํŠธ๋กœ ๋ณ€ํ™˜์‹œํ‚ต๋‹ˆ๋‹ค. ์ด๋Š” ์–ด๋–ค ๋ชจ๋ธ๋„ ์™„์ „ํžˆ ๊ฐ€์งˆ ์ˆ˜ ์—†๋Š” ์ง€์‹์ž…๋‹ˆ๋‹ค." +> +> โ€” [Equipping agents for the real world with Agent Skills](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills) + +**PDF/XLSX Skills์™€ ๋™์ผํ•œ ํŒจํ„ด:** +- **PDF Skill**: ๋ณต์žกํ•œ Forms ์ฒ˜๋ฆฌ (8๊ฐœ Python ์Šคํฌ๋ฆฝํŠธ๋กœ bounding box, ๊ฒ€์ฆ...) +- **XLSX Skill**: ๊ณต์‹ ์œ ์ง€ (LibreOffice ์—ฐ๋™ recalc.py) +- **Denote-Org Skill**: 3,000 ํŒŒ์ผ ์ง€์‹ ๊ทธ๋ž˜ํ”„ (finder, graph builder, silo manager) + +**Skills๋Š” ํ”„๋กฌํ”„ํŠธ๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์šด์˜ ์‹œ์Šคํ…œ์ž…๋‹ˆ๋‹ค.** + +## ํ•ด๊ฒฐํ•˜๋Š” ๋ฌธ์ œ + +### Skills ์—†์ด + +โŒ Claude๊ฐ€ Denote ํŒŒ์ผ๋ช…์„ ๋ชจ๋ฆ„: `20251021T105353--์ œ๋ชฉ__ํƒœ๊ทธ.org` +โŒ 3,000๊ฐœ ํŒŒ์ผ ๊ฒ€์ƒ‰์— ๋งค๋ฒˆ ํ† ํฐ ์†Œ๋ชจ +โŒ ์ง€์‹ ๊ทธ๋ž˜ํ”„ ํƒ์ƒ‰์ด ๋А๋ฆฌ๊ณ  ์˜ค๋ฅ˜ ๋ฐœ์ƒ +โŒ Literate programming (`:tangle`, `:results`)์ด org ๊ตฌ์กฐ ๊นจ๋œจ๋ฆผ +โŒ ์—ฌ๋Ÿฌ silo (`~/org/`, `~/claude-memory/`) ํ˜ผ๋ž€ + +### Skills ์žˆ์œผ๋ฉด + +โœ… **Denote ๋„๋ฉ”์ธ ์ง€์‹** ๋‚ด์žฅ (ํŒŒ์ผ๋ช…, frontmatter, links) +โœ… **Python ์Šคํฌ๋ฆฝํŠธ**๋กœ ํšจ์œจ์  ์—ฐ์‚ฐ (finder, graph, executor) +โœ… **์ง€์‹ ๊ทธ๋ž˜ํ”„** ์บ์‹ฑ ๋ฐ ์žฌ์‚ฌ์šฉ +โœ… **์•ˆ์ „ํ•œ ์ฝ”๋“œ ์‹คํ–‰** (org-babel ํ˜ธํ™˜) +โœ… **Silo ๊ด€๋ฆฌ** (์—ฌ๋Ÿฌ ์ง€์‹ ๋„๋ฉ”์ธ) + +**ํŒŒ์ผ ๋ณ€ํ™˜๊ธฐ๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์šด์˜ ๊ฐ€๋Šฅํ•œ ์ง€์‹ ์‹œ์Šคํ…œ์ž…๋‹ˆ๋‹ค.** + +## ๐ŸŽฏ Denote๋ž€? + +Denote๋Š” Emacs๋ฅผ ์œ„ํ•œ **๋‹จ์ˆœํ•˜์ง€๋งŒ ๊ฐ•๋ ฅํ•œ** ๋…ธํŠธ ์ž‘์„ฑ ์‹œ์Šคํ…œ์ž…๋‹ˆ๋‹ค: + +- **ํŒŒ์ผ๋ช… ๊ทœ์น™**: `YYYYMMDDTHHMMSS--์ œ๋ชฉ__ํƒœ๊ทธ1_ํƒœ๊ทธ2.org` +- **์ง€์‹ ๊ทธ๋ž˜ํ”„**: `[[denote:TIMESTAMP]]` ๋งํฌ +- **Silo ๊ฐœ๋…**: ๋‹ค์–‘ํ•œ ์ง€์‹ ๋„๋ฉ”์ธ์„ ์œ„ํ•œ ๋ณ„๋„ ๋””๋ ‰ํ† ๋ฆฌ +- **Org-mode ๊ธฐ๋ฐ˜**: Heading, property, timestamp, code block + +**์ œ์ž‘์ž:** [Protesilaos Stavrou](https://protesilaos.com/emacs/denote) + +## ๐Ÿ“Š ๊ทœ๋ชจ: ์‹ค์ œ ์šด์˜์œผ๋กœ ๊ฒ€์ฆ๋จ + +์ด Skill์€ **์‹ค์ œ PKM ์‹œ์Šคํ…œ**์„ ์œ„ํ•ด ๋งŒ๋“ค์–ด์กŒ์Šต๋‹ˆ๋‹ค (์žฅ๋‚œ๊ฐ ์˜ˆ์ œ ์•„๋‹˜): + +- โœ… **3,000๊ฐœ ์ด์ƒ org ํŒŒ์ผ** (๋Œ€๊ทœ๋ชจ ๊ฒ€์ฆ) +- โœ… **์—ฌ๋Ÿฌ silo** (`~/org/`, `~/claude-memory/`, ํ”„๋กœ์ ํŠธ `docs/`) +- โœ… **Denote ์ง€์‹ ๊ทธ๋ž˜ํ”„** (์ˆ˜์ฒœ ๊ฐœ์˜ `[[denote:ID]]` ๋งํฌ) +- โœ… **๋งค์ผ ์‚ฌ์šฉ** (Claude Code์™€ ํ•จ๊ป˜) +- โœ… **9๊ฐœ ๋ ˆ์ด์–ด "Tools for Life" ์‹œ์Šคํ…œ์˜ ์ผ๋ถ€** + +## ๐Ÿ—๏ธ 9๊ฐœ ๋ ˆ์ด์–ด ์‹œ์Šคํ…œ์˜ ์ผ๋ถ€ + +์ด Skill์€ ์™„์ „ํ•œ AI-์ธ๊ฐ„ ํ˜‘์—… ์•„ํ‚คํ…์ฒ˜์—์„œ **Layer 3** (์ง€์‹ ์ดํ•ด)๋ฅผ ๋‹ด๋‹นํ•ฉ๋‹ˆ๋‹ค: + +``` +Layer 7: ์ง€์‹ ํผ๋ธ”๋ฆฌ์‹ฑ (notes.junghanacs.com) +Layer 6: ์—์ด์ „ํŠธ ์˜ค์ผ€์ŠคํŠธ๋ ˆ์ด์…˜ (meta-config) +Layer 5a: ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ (memex-kb) +Layer 5b: ์‚ถ์˜ ํƒ€์ž„๋ผ์ธ (memacs-config) +Layer 4: AI ๋ฉ”๋ชจ๋ฆฌ (claude-config) +Layer 3.5: RAG/Vector DB (embedding-config) +Layer 3: ์ง€์‹ ๊ด€๋ฆฌ (Zotero, denote-org ๐Ÿ†•) +Layer 2: ๊ฐœ๋ฐœ ํ™˜๊ฒฝ (Doom Emacs) +Layer 1: ์ธํ”„๋ผ (NixOS) +``` + +**์—ฐ๊ด€ ํ”„๋กœ์ ํŠธ:** +- [claude-config](https://github.com/junghan0611/claude-config) - PARA ๋ฐฉ๋ฒ•๋ก  AI ๋ฉ”๋ชจ๋ฆฌ ์‹œ์Šคํ…œ +- [memex-kb](https://github.com/junghan0611/memex-kb) - ๋ฒ”์šฉ KB ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ (Google Docs, Dooray...) +- [embedding-config](https://github.com/junghan0611/embedding-config) - Vector RAG (9,477 ๋ธ”๋ก, 85% ํ•ด๊ฒฐ๋ฅ ) + +**์ฒ ํ•™:** Anthropic Life Sciences์™€ ๋™์ผ - **AI๋Š” ํŒŒํŠธ๋„ˆ, ๋„๊ตฌ๊ฐ€ ์•„๋‹˜** + +## ๐Ÿš€ ์‹ค์ œ ์‚ฌ์šฉ ์‚ฌ๋ก€ + +### ์‚ฌ๋ก€ 1: ์ง€์‹ ๊ทธ๋ž˜ํ”„ ํƒ์ƒ‰ +```bash +์‚ฌ์šฉ์ž: "20251021T105353์™€ ์—ฐ๊ฒฐ๋œ ๋ชจ๋“  ํŒŒ์ผ ์ฐพ์•„์ค˜" +Claude: denote_graph.py ์‚ฌ์šฉ +๊ฒฐ๊ณผ: 1์ดˆ ์ด๋‚ด ์—ฐ๊ฒฐ ํŒŒ์ผ ๋ฐ˜ํ™˜ (๋ฐ˜๋ณต ํ† ํฐ ๊ฒ€์ƒ‰ ์•„๋‹˜) +``` + +### ์‚ฌ๋ก€ 2: 3,000 ํŒŒ์ผ ์ค‘ ํƒœ๊ทธ ๊ฒ€์ƒ‰ +```bash +์‚ฌ์šฉ์ž: "2025๋…„ 10์›” llmlog ํŒŒ์ผ ์ „๋ถ€" +Claude: denote_finder.py --tags llmlog --date 202510* ์‚ฌ์šฉ +๊ฒฐ๊ณผ: ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ์™€ ํ•จ๊ป˜ ์ฆ‰์‹œ ๋ฐ˜ํ™˜ +``` + +### ์‚ฌ๋ก€ 3: Silo ๊ด€๋ฆฌ +```bash +์‚ฌ์šฉ์ž: "์ด๊ฒŒ ~/org/์— ์žˆ๋‚˜ ~/claude-memory/์— ์žˆ๋‚˜?" +Claude: denote_silo.py find_in_silos() ์‚ฌ์šฉ +๊ฒฐ๊ณผ: ์ž๋™์œผ๋กœ ๋ชจํ˜ธํ•จ ํ•ด๊ฒฐ +``` + +### ์‚ฌ๋ก€ 4: Literate Programming +```bash +์‚ฌ์šฉ์ž: "org ํŒŒ์ผ ์ฝ”๋“œ ๋ธ”๋ก ์‹คํ–‰ํ•ด์ค˜" +Claude: org_execute.py ์‚ฌ์šฉ (org-babel ํ˜ธํ™˜) +๊ฒฐ๊ณผ: ์•ˆ์ „ํ•œ ์‹คํ–‰, ๊ตฌ์กฐ ๋ณด์กด, :results ์—…๋ฐ์ดํŠธ +``` + +### ์‚ฌ๋ก€ 5: Denote ๋งํฌ ํ•ด๊ฒฐ +```bash +ํŒŒ์ผ ๋‚ด์šฉ: [[denote:20251021T105353]] +Claude: denote_links.py resolve_link() ์‚ฌ์šฉ +๊ฒฐ๊ณผ: ~/org/llmlog/20251021T105353--์ „์ฒด-ํŒŒ์ผ๋ช….org +``` + +## ๐Ÿ’ก ๊ธฐ๋Šฅ + +### Denote ํ•ต์‹ฌ +- โœ… ํŒŒ์ผ๋ช…: `20251021T105353--์ œ๋ชฉ__ํƒœ๊ทธ1_ํƒœ๊ทธ2.org` +- โœ… Frontmatter ํŒŒ์‹ฑ (title, date, filetags, identifier) +- โœ… ๋งํฌ ํ•ด๊ฒฐ (`[[denote:ID]]`) +- โœ… ํƒœ๊ทธ ๊ธฐ๋ฐ˜ ๊ฒ€์ƒ‰ +- โœ… Silo ๊ด€๋ฆฌ (์—ฌ๋Ÿฌ ์ง€์‹ ๋„๋ฉ”์ธ) +- โœ… ์ง€์‹ ๊ทธ๋ž˜ํ”„ (3,000+ ํŒŒ์ผ ๊ฒ€์ฆ) + +### Org-mode ๊ธฐ๋ฐ˜ +- โœ… Heading/property ํŒŒ์‹ฑ +- โœ… ์ฝ”๋“œ ๋ธ”๋ก ์‹คํ–‰ (literate programming) +- โœ… Timestamp ์ฒ˜๋ฆฌ +- โœ… Export (markdown, PDF, HTML) +- โœ… Table ์—ฐ์‚ฐ + +### ์„ฑ๋Šฅ +- โœ… Python ์Šคํฌ๋ฆฝํŠธ (ํ† ํฐ ์ƒ์„ฑ ์•„๋‹˜) +- โœ… ๋ฐ˜๋ณต ์—ฐ์‚ฐ ์บ์‹ฑ +- โœ… ํšจ์œจ์ ์ธ ๊ทธ๋ž˜ํ”„ ํƒ์ƒ‰ +- โœ… ๋ฐฐ์น˜ ์ฒ˜๋ฆฌ ์ง€์› + +## ๐Ÿ“ฆ ์„ค์น˜ + +### ์‚ฌ์ „ ์š”๊ตฌ์‚ฌํ•ญ +```bash +# Python 3.8+ +pip install orgparse pypandoc pyyaml + +# Pandoc (export์šฉ) +# ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ €๋กœ ์„ค์น˜ +``` + +### Claude Code +```bash +git clone https://github.com/junghan0611/orgmode-skills.git +cd orgmode-skills +/plugin add . +``` + +### Claude API +```python +# Skills API ํ†ตํ•ฉ ๋ฌธ์„œ ์ฐธ์กฐ +import anthropic + +client = anthropic.Client(api_key="your-api-key") +# Skills API ์‚ฌ์šฉ๋ฒ• +``` + +## ๐Ÿ”ง ๋น ๋ฅธ ์‹œ์ž‘ + +### ์˜ˆ์ œ 1: Denote ํŒŒ์ผ ์ฐพ๊ธฐ +```python +from scripts.denote_finder import find_denote_file + +# ID๋กœ ์ฐพ๊ธฐ +filepath = find_denote_file("20251021T105353", silos=["~/org/"]) +# ๋ฐ˜ํ™˜: ~/org/llmlog/20251021T105353--์ „์ฒด-ํŒŒ์ผ๋ช….org + +# ํƒœ๊ทธ๋กœ ์ฐพ๊ธฐ +files = find_by_tags(["llmlog", "denote"], silo="~/org/") +``` + +### ์˜ˆ์ œ 2: ์ง€์‹ ๊ทธ๋ž˜ํ”„ ์ถ”์ถœ +```python +from scripts.denote_graph import build_knowledge_graph, get_connected_nodes + +# ๊ทธ๋ž˜ํ”„ ๊ตฌ์ถ• (์บ์‹ฑ๋จ) +graph = build_knowledge_graph("~/org/") + +# ์—ฐ๊ฒฐ๋œ ํŒŒ์ผ ๊ฐ€์ ธ์˜ค๊ธฐ +connected = get_connected_nodes("20251021T105353", hops=2) +``` + +### ์˜ˆ์ œ 3: Org ์ฝ”๋“œ ๋ธ”๋ก ์‹คํ–‰ +```python +from scripts.org_execute import execute_org_blocks + +# ๋ชจ๋“  ์ฝ”๋“œ ๋ธ”๋ก ์‹คํ–‰ (:tangle, :results ์ค€์ˆ˜) +results = execute_org_blocks("file.org") +``` + +## ๐Ÿ“‚ ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ + +``` +orgmode-skills/ +โ”œโ”€โ”€ README.md # ์˜์–ด ๋ฒ„์ „ +โ”œโ”€โ”€ README-KO.md # ํ•œ๊ธ€ ๋ฒ„์ „ (์ด ํŒŒ์ผ) +โ”œโ”€โ”€ LICENSE # Apache 2.0 +โ”œโ”€โ”€ SKILL.md # Claude์šฉ ๋ฉ”์ธ ๊ฐ€์ด๋“œ +โ”œโ”€โ”€ docs/ # ๊ฐœ๋ฐœ ๋กœ๊ทธ (Denote ํ˜•์‹) +โ”‚ โ””โ”€โ”€ 20251021T113500--*.org +โ”œโ”€โ”€ denote-core.md # Denote ๋ช…์„ธ +โ”œโ”€โ”€ denote-silo.md # Silo ๊ด€๋ฆฌ +โ”œโ”€โ”€ denote-knowledge-graph.md # ๊ทธ๋ž˜ํ”„ ์—ฐ์‚ฐ +โ”œโ”€โ”€ orgmode-base.md # Org-mode ๊ธฐ๋Šฅ +โ”œโ”€โ”€ literate.md # Literate programming +โ”œโ”€โ”€ export.md # Export ๊ธฐ๋Šฅ +โ””โ”€โ”€ scripts/ + โ”œโ”€โ”€ denote_finder.py # ํŒŒ์ผ ๊ฒ€์ƒ‰ + โ”œโ”€โ”€ denote_links.py # ๋งํฌ ํ•ด๊ฒฐ + โ”œโ”€โ”€ denote_silo.py # Silo ๊ด€๋ฆฌ + โ”œโ”€โ”€ denote_graph.py # ์ง€์‹ ๊ทธ๋ž˜ํ”„ + โ”œโ”€โ”€ org_parser.py # Org ํŒŒ์‹ฑ + โ”œโ”€โ”€ org_execute.py # ์ฝ”๋“œ ์‹คํ–‰ + โ”œโ”€โ”€ org_export.py # Export + โ””โ”€โ”€ requirements.txt +``` + +## ๐Ÿ—บ๏ธ 0.1 ๋ฒ„์ „ ๋กœ๋“œ๋งต + +**Phase 1: ํ•ต์‹ฌ (ํ˜„์žฌ)** +- [x] ํ”„๋กœ์ ํŠธ ์„ค์ • +- [x] README.md, README-KO.md +- [ ] ๊ฐœ๋ฐœ ๋กœ๊ทธ (docs/) +- [ ] SKILL.md (Denote ์ค‘์‹ฌ) + +**Phase 2: Denote ํ•ต์‹ฌ** +- [ ] denote_finder.py (ํŒŒ์ผ ๊ฒ€์ƒ‰) +- [ ] denote_links.py (๋งํฌ ํ•ด๊ฒฐ) +- [ ] denote_silo.py (silo ๊ด€๋ฆฌ) +- [ ] denote-core.md ๋ฌธ์„œํ™” + +**Phase 3: Org-mode ๊ธฐ๋ฐ˜** +- [ ] org_parser.py (orgparse) +- [ ] org_execute.py (์ฝ”๋“œ ๋ธ”๋ก) +- [ ] orgmode-base.md ๋ฌธ์„œํ™” + +**Phase 4: 0.1 ๋ฆด๋ฆฌ์ฆˆ** +- [ ] 3,000+ ํŒŒ์ผ ํ…Œ์ŠคํŠธ +- [ ] ์˜ˆ์ œ ์ถ”๊ฐ€ +- [ ] Public ๊ณต๊ฐœ + +## ๐Ÿค ๊ธฐ์—ฌ + +์ด ํ”„๋กœ์ ํŠธ๋Š” ์‹ค์ œ 3,000๊ฐœ ์ด์ƒ ํŒŒ์ผ์„ ์šด์˜ํ•˜๋Š” Denote PKM ์‹œ์Šคํ…œ์œผ๋กœ ๊ฒ€์ฆ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. Denote ์‚ฌ์šฉ์ž ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค! + +## ๐Ÿ“– ์ฒ ํ•™: Tools for Life (์ธ์ƒ ๋„๊ตฌ) + +**์ œ์ž‘์ž์˜ ๋ง:** + +> "์ €์—๊ฒŒ ํ•„์š”ํ•œ ๊ฒƒ์€ ๊ฒฝ์Ÿ๋ ฅ ์žˆ๋Š” ์ง€์‹ ๋…ธ๋™์ž๋กœ ์‚ด ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์ด์—ˆ์Šต๋‹ˆ๋‹ค." +> +> "๋„๊ตฌ๋Š” ์กด์žฌ์— ๋…น์•„๋“ ๋‹ค" +> +> "์‚ถ์ด ๋‚˜์—๊ฒŒ ์งˆ๋ฌธํ•˜๊ณ  ์žˆ์—ˆ๋‹ค" + +์ด Skill์€ "Tools for Life" ์ฒ ํ•™์„ ๊ตฌํ˜„ํ•ฉ๋‹ˆ๋‹ค - Anthropic์˜ Life Sciences ์ ‘๊ทผ์„ ์ƒ๋ช…๊ณผํ•™ ์—ฐ๊ตฌ์—์„œ ๊ฐœ์ธ ์ง€์‹ ์ž‘์—…์œผ๋กœ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค. + +**Life Sciences (์ƒ๋ช…๊ณผํ•™)** โ†’ **Life Everything (์‚ถ ์ „๋ฐ˜)** + +## ๐Ÿง  Skills์˜ ๋ณธ์งˆ ์ดํ•ด + +### Anthropic์ด ๋ฐํžŒ Skills์˜ 4๊ฐ€์ง€ ๋ชฉ์  + +1. **์ปจํ…์ŠคํŠธ ๊ด€๋ฆฌ** - ๋ฒˆ๋“ค ํŒŒ์ผ์„ ํ†ตํ•ด "์‚ฌ์‹ค์ƒ ๋ฌด์ œํ•œ" ์ปจํ…์ŠคํŠธ +2. **์žฌ์‚ฌ์šฉ์„ฑ** - "์กฐํ•ฉ ๊ฐ€๋Šฅํ•œ ๋ฆฌ์†Œ์Šค"๋กœ ํŒ€ ๊ฐ„ ๊ณต์œ  +3. **์ฝ”๋“œ ์‹คํ–‰ ํšจ์œจ** - ํ† ํฐ ์ƒ์„ฑ ๋Œ€์‹  ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ +4. **์กฐ์ง ์ง€์‹ ์บก์ฒ˜** - "์‹ ์ž… ์‚ฌ์›์„ ์œ„ํ•œ ์˜จ๋ณด๋”ฉ ๊ฐ€์ด๋“œ" + +### Denote-Org Skills๊ฐ€ ํ•„์š”ํ•œ ๊ตฌ์ฒด์  ์ด์œ  + +#### ๋ฌธ์ œ 1: Denote ํŒŒ์ผ๋ช… = ํŠน์ˆ˜ ๋„๋ฉ”์ธ ์ง€์‹ +``` +20251021T105353--ํ”„๋กœ์ ํŠธ-์ œ๋ชฉ__llmlog_denote_orgmode.org +โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ””โ”€ ํƒœ๊ทธ (underscore) +โ”‚ โ””โ”€ ํ•œ๊ธ€ ์ œ๋ชฉ (hyphen) +โ””โ”€ Timestamp (Denote ID) +``` + +**Skills ์—†์ด:** Claude๊ฐ€ ๋งค๋ฒˆ ํŒŒ์ผ๋ช… ํŒŒ์‹ฑ ๋กœ์ง ์ƒ์„ฑ โ†’ **ํ† ํฐ ๋‚ญ๋น„** +**Skills ์žˆ์œผ๋ฉด:** `denote_parser.py` ํ•œ ๋ฒˆ ์ž‘์„ฑ, ์žฌ์‚ฌ์šฉ + +#### ๋ฌธ์ œ 2: 3,000 ํŒŒ์ผ ๊ฒ€์ƒ‰ = ๋ณต์žกํ•œ ์ ˆ์ฐจ +**Skills ์—†์ด:** ๋งค๋ฒˆ `find ~/org -name "*ID*"` ์‹คํ–‰ โ†’ **๋А๋ฆผ** +**Skills ์žˆ์œผ๋ฉด:** `denote_finder.py` ์บ์‹ฑ โ†’ **์ฆ‰์‹œ ๋ฐ˜ํ™˜** + +#### ๋ฌธ์ œ 3: ์ง€์‹ ๊ทธ๋ž˜ํ”„ = ๋ณต์žก๋„ ํญ๋ฐœ +**Skills ์—†์ด:** ๊ฐ ๋งํฌ๋งˆ๋‹ค ํŒŒ์ผ ์ฐพ๊ธฐ, 2-hop ์—ฐ๊ฒฐ? โ†’ **ํ† ํฐ ํญ๋ฐœ** +**Skills ์žˆ์œผ๋ฉด:** `denote_graph.py` ํ•œ ๋ฒˆ ๊ตฌ์ถ•, ์บ์‹ฑ โ†’ **์ฆ‰์‹œ ๋ฐ˜ํ™˜** + +#### ๋ฌธ์ œ 4: Literate Programming = Emacs ๋™์ž‘ ์žฌํ˜„ +**Skills ์—†์ด:** Claude๊ฐ€ `:tangle` ์˜ต์…˜ ์ˆ˜๋™ ํŒŒ์‹ฑ โ†’ **๊ตฌ์กฐ ๊นจ์งˆ ์œ„ํ—˜** +**Skills ์žˆ์œผ๋ฉด:** `org_execute.py` Emacs org-babel ์žฌํ˜„ โ†’ **์•ˆ์ „** + +## ๐Ÿ—๏ธ 9๊ฐœ ๋ ˆ์ด์–ด "์‹œ๊ฐ„๊ณผ์ •์‹ ์˜๋ฐฉ" ์ƒํƒœ๊ณ„ + +์ด ํ”„๋กœ์ ํŠธ๋Š” ์™„์ „ํ•œ ์ธ๊ฐ„-AI ํ˜‘์—… ์‹œ์Šคํ…œ์˜ ์ผ๋ถ€์ž…๋‹ˆ๋‹ค: + +### Layer 7: ์ง€์‹ ํผ๋ธ”๋ฆฌ์‹ฑ +- **notes.junghanacs.com** (Quartz) +- 1,400+ org โ†’ markdown +- Public Digital Garden + +### Layer 6: ์—์ด์ „ํŠธ ์˜ค์ผ€์ŠคํŠธ๋ ˆ์ด์…˜ +- **meta-config** +- ๊ณ„์ธต์  ์—์ด์ „ํŠธ (Meta โ†” Domain Agents) +- ACP + A2A + MCP (JSON-RPC 2.0) + +### Layer 5a: ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ +- **memex-kb** +- Backend ์ค‘๋ฆฝ (Google Docs, Dooray, Confluence...) +- Denote ํ˜•์‹์œผ๋กœ ํ†ตํ•ฉ + +### Layer 5b: ์‚ถ์˜ ํƒ€์ž„๋ผ์ธ +- **memacs-config** +- ์‹œ๊ฐ„ ๊ธฐ๋ฐ˜ ํ†ตํ•ฉ (์ˆ˜๋ฉด, ์ž‘์—…, Git...) +- Memex ์‹คํ˜„ + +### Layer 4: AI ๋ฉ”๋ชจ๋ฆฌ +- **claude-config** +- PARA ๋ฐฉ๋ฒ•๋ก  +- Git ๋ฒ„์ „ ๊ด€๋ฆฌ + +### Layer 3.5: RAG/Vector DB +- **embedding-config** +- Notion CS 9,477 ๋ธ”๋ก +- ํ™ˆ์นด๋ฉ”๋ผ 85% ํ•ด๊ฒฐ๋ฅ  + +### Layer 3: ์ง€์‹ ๊ด€๋ฆฌ (์ด ํ”„๋กœ์ ํŠธ!) +- **Zotero** (156k+ lines ์„œ์ง€) +- **denote-org Skills** (3,000+ ํŒŒ์ผ) ๐Ÿ†• + +### Layer 2: ๊ฐœ๋ฐœ ํ™˜๊ฒฝ +- **dotdoom-starter** +- ํ„ฐ๋ฏธ๋„ ์ตœ์ ํ™” +- ํฌ๋กœ์Šค ํ”Œ๋žซํผ (Ubuntu/NixOS/Termux) + +### Layer 1: ์ธํ”„๋ผ +- **nixos-config** +- ์„ ์–ธ์  ํ™˜๊ฒฝ +- ์žฌํ˜„์„ฑ 100% + +## ๐ŸŽ“ ์—ฐ๊ด€ ํ”„๋กœ์ ํŠธ + +**์‹œ๊ฐ„๊ณผ์ •์‹ ์˜๋ฐฉ (Hyperbolic Time Chamber) ์ƒํƒœ๊ณ„:** +- [nixos-config](https://github.com/junghan0611/nixos-config) - ์„ ์–ธ์  ์ธํ”„๋ผ +- [doomemacs-config](https://github.com/junghan0611/doomemacs-config) - ํ„ฐ๋ฏธ๋„ ์ตœ์ ํ™” Emacs +- [zotero-config](https://github.com/junghan0611/zotero-config) - AI ์ฟผ๋ฆฌ ๊ฐ€๋Šฅํ•œ ์„œ์ง€ (156k+ lines) + +**๋””์ง€ํ„ธ ๊ฐ€๋“ :** [notes.junghanacs.com](https://notes.junghanacs.com) + +## ๐Ÿ“š ๋ฆฌ์†Œ์Šค + +- [Denote ํŒจํ‚ค์ง€](https://protesilaos.com/emacs/denote) by Protesilaos Stavrou +- [Anthropic Skills ๋ฌธ์„œ](https://support.claude.com/en/articles/12512176-what-are-skills) +- [Agent Skills ์—”์ง€๋‹ˆ์–ด๋ง ๋ธ”๋กœ๊ทธ](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills) +- [Org-mode](https://orgmode.org/) + +## ๐Ÿ“„ ๋ผ์ด์„ ์Šค + +Apache 2.0 (Anthropic Skills ์ƒํƒœ๊ณ„์™€ ํ˜ธํ™˜) + +## ๐Ÿ™ ๊ฐ์‚ฌ + +- **Anthropic** - Agent Skills ํŒจ๋Ÿฌ๋‹ค์ž„๊ณผ Life Sciences ์ฒญ์‚ฌ์ง„ +- **Protesilaos Stavrou** - Denote ์ œ์ž‘ +- **Org-mode ์ปค๋ฎค๋‹ˆํ‹ฐ** - ๊ธฐ๋ฐ˜ ๊ธฐ์ˆ  +- **AIONS ํด๋Ÿฝ ์ธํ„ฐ๋‚ด์…”๋„** - ์ง‘๋‹จ์ง€์„ฑ ๋น„์ „ + +--- + +**์ƒํƒœ:** ๐ŸŸก ๊ฐœ๋ฐœ ์ค‘ (0.1 public ๋ฆด๋ฆฌ์ฆˆ ๋ชฉํ‘œ) +**๊ด€๋ฆฌ์ž:** [@junghan0611](https://github.com/junghan0611) +**์ƒ์„ฑ์ผ:** 2025-10-21 diff --git a/skills/junghan0611__org-mode-skills/README.md b/skills/junghan0611__org-mode-skills/README.md new file mode 100644 index 0000000..56a1d58 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/README.md @@ -0,0 +1,329 @@ +# Denote-Org Skills for Claude + +> **Bringing Anthropic's Life Sciences paradigm to Life Everything** + +Comprehensive Denote PKM system support for Claude AI, validated with **3,000+ org files** in production knowledge bases. + +**Denote-first. Org-mode powered. Life-scale proven.** + +[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE) +[![Files](https://img.shields.io/badge/validated-3000%2B%20files-green.svg)]() +[![Status](https://img.shields.io/badge/version-0.1--dev-orange.svg)]() + +## ๐ŸŒŸ Vision: Life Sciences โ†’ Life Everything + +Anthropic proved that **domain context + AI = expert-level collaboration** with Life Sciences (PubMed, Benchling, 10x Genomics). + +This project extends that paradigm from **Biology** to **Living**: + +**Life Sciences (Biology)** โ†’ **Life Everything (Living)** + +Just as Claude becomes a scientist with PubMed context, Claude becomes your **personal knowledge partner** with Denote context. + +### The Pattern + +| Domain | Context | Result | +|--------|---------|--------| +| **Anthropic** | PubMed (millions of papers) + Claude | Scientific AI | +| **This Project** | Denote (3,000+ org files) + Claude | Personal Knowledge AI | + +**Same methodology. Different domain. Universal paradigm.** + +## Why This is a Skill, Not Just a Prompt + +**Anthropic's Skills Philosophy:** + +> "Skills transform Claude from a general-purpose agent into a specialized agent equipped with **procedural knowledge** that no model can fully possess." +> +> โ€” [Equipping agents for the real world with Agent Skills](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills) + +**Just like:** +- **PDF Skill** solves complex forms (8 Python scripts for bounding boxes, validation...) +- **XLSX Skill** maintains formulas (recalc.py with LibreOffice integration) +- **Denote-Org Skill** handles 3,000-file knowledge graphs (finder, graph builder, silo manager) + +**Skills are NOT prompts. They are operational systems.** + +## The Problem This Solves + +### Without This Skill + +โŒ Claude doesn't know Denote file naming: `20251021T105353--title__tags.org` +โŒ Finding files in 3,000+ requires repeated token-heavy searches +โŒ Knowledge graph navigation is slow and error-prone +โŒ Literate programming (`:tangle`, `:results`) often breaks org structure +โŒ Multiple silos (`~/org/`, `~/claude-memory/`) cause confusion + +### With This Skill + +โœ… **Denote domain knowledge** bundled (file naming, frontmatter, links) +โœ… **Python scripts** for efficient operations (finder, graph, executor) +โœ… **Knowledge graph** cached and reusable +โœ… **Safe code execution** (org-babel compatible) +โœ… **Silo management** (multiple knowledge domains) + +**Not a file converter. An operational knowledge system.** + +## ๐ŸŽฏ What is Denote? + +Denote is a **simple yet powerful** note-taking system for Emacs: + +- **File naming convention**: `YYYYMMDDTHHMMSS--title__tag1_tag2.org` +- **Knowledge graph**: `[[denote:TIMESTAMP]]` links +- **Silo concept**: Separate directories for different knowledge domains +- **Org-mode foundation**: Headings, properties, timestamps, code blocks + +**Created by:** [Protesilaos Stavrou](https://protesilaos.com/emacs/denote) + +## ๐Ÿ“Š Scale: Production-Validated + +This skill is built for **real-world PKM systems**, not toy examples: + +- โœ… **3,000+ org files** (validated at scale) +- โœ… **Multiple silos** (`~/org/`, `~/claude-memory/`, project `docs/`) +- โœ… **Denote knowledge graph** (thousands of `[[denote:ID]]` links) +- โœ… **Daily usage** with Claude Code +- โœ… **Part of 9-layer "Tools for Life" system** + +## ๐Ÿ—๏ธ Part of the 9-Layer System + +This skill is **Layer 3** (Knowledge Understanding) in a complete AI-human collaboration architecture: + +``` +Layer 7: Knowledge Publishing (notes.junghanacs.com) +Layer 6: Agent Orchestration (meta-config) +Layer 5a: Migration (memex-kb) +Layer 5b: Life Timeline (memacs-config) +Layer 4: AI Memory (claude-config) +Layer 3.5: RAG/Vector DB (embedding-config) +Layer 3: Knowledge Mgmt (Zotero, denote-org ๐Ÿ†•) +Layer 2: Dev Environment (Doom Emacs) +Layer 1: Infrastructure (NixOS) +``` + +**Related projects:** +- [claude-config](https://github.com/junghan0611/claude-config) - AI Memory System with PARA methodology +- [memex-kb](https://github.com/junghan0611/memex-kb) - Universal KB Migration (Google Docs, Dooray...) +- [embedding-config](https://github.com/junghan0611/embedding-config) - Vector RAG (9,477 blocks, 85% success rate) + +**Philosophy:** Same as Anthropic Life Sciences - **AI as Partner, not Tool** + +## ๐Ÿš€ Real Use Cases + +### Case 1: Knowledge Graph Navigation +```bash +User: "Find all files linked to 20251021T105353" +Claude: Uses denote_graph.py +Result: Connected files in <1 second (not repeated token searches) +``` + +### Case 2: Tag-based Search Across 3,000 Files +```bash +User: "All llmlog files from October 2025" +Claude: Uses denote_finder.py --tags llmlog --date 202510* +Result: Instant results with metadata +``` + +### Case 3: Silo Management +```bash +User: "Is this in ~/org/ or ~/claude-memory/?" +Claude: Uses denote_silo.py find_in_silos() +Result: Resolves ambiguity automatically +``` + +### Case 4: Literate Programming +```bash +User: "Execute code blocks in this org file" +Claude: Uses org_execute.py (org-babel compatible) +Result: Safe execution, structure preserved, :results updated +``` + +### Case 5: Denote Link Resolution +```bash +File contains: [[denote:20251021T105353]] +Claude: Uses denote_links.py resolve_link() +Result: ~/org/llmlog/20251021T105353--full-filename.org +``` + +## ๐Ÿ’ก Features + +### Denote Core +- โœ… File naming: `20251021T105353--title__tag1_tag2.org` +- โœ… Frontmatter parsing (title, date, filetags, identifier) +- โœ… Link resolution (`[[denote:ID]]`) +- โœ… Tag-based search +- โœ… Silo management (multiple knowledge domains) +- โœ… Knowledge graph (3,000+ files validated) + +### Org-mode Base +- โœ… Heading/property parsing +- โœ… Code block execution (literate programming) +- โœ… Timestamp handling +- โœ… Export (markdown, PDF, HTML) +- โœ… Table operations + +### Performance +- โœ… Python scripts (not token generation) +- โœ… Caching for repeated operations +- โœ… Efficient graph traversal +- โœ… Batch processing support + +## ๐Ÿ“ฆ Installation + +### Prerequisites +```bash +# Python 3.8+ +pip install orgparse pypandoc pyyaml + +# Pandoc (for export) +# Install via your package manager +``` + +### Claude Code +```bash +git clone https://github.com/junghan0611/orgmode-skills.git +cd orgmode-skills +/plugin add . +``` + +### Claude API +```python +# See API documentation for skills integration +import anthropic + +client = anthropic.Client(api_key="your-api-key") +# Skills API usage +``` + +## ๐Ÿ”ง Quick Start + +### Example 1: Find Denote File +```python +from scripts.denote_finder import find_denote_file + +# By identifier +filepath = find_denote_file("20251021T105353", silos=["~/org/"]) +# Returns: ~/org/llmlog/20251021T105353--full-filename.org + +# By tags +files = find_by_tags(["llmlog", "denote"], silo="~/org/") +``` + +### Example 2: Extract Knowledge Graph +```python +from scripts.denote_graph import build_knowledge_graph, get_connected_nodes + +# Build graph (cached) +graph = build_knowledge_graph("~/org/") + +# Get connected files +connected = get_connected_nodes("20251021T105353", hops=2) +``` + +### Example 3: Execute Org Code Blocks +```python +from scripts.org_execute import execute_org_blocks + +# Execute all code blocks (respects :tangle, :results) +results = execute_org_blocks("file.org") +``` + +## ๐Ÿ“‚ Project Structure + +``` +orgmode-skills/ +โ”œโ”€โ”€ README.md # This file +โ”œโ”€โ”€ README-KO.md # Korean version +โ”œโ”€โ”€ LICENSE # Apache 2.0 +โ”œโ”€โ”€ SKILL.md # Claude's main guide +โ”œโ”€โ”€ docs/ # Development logs (Denote format) +โ”‚ โ””โ”€โ”€ 20251021T113500--*.org +โ”œโ”€โ”€ denote-core.md # Denote specification +โ”œโ”€โ”€ denote-silo.md # Silo management +โ”œโ”€โ”€ denote-knowledge-graph.md # Graph operations +โ”œโ”€โ”€ orgmode-base.md # Org-mode features +โ”œโ”€โ”€ literate.md # Literate programming +โ”œโ”€โ”€ export.md # Export capabilities +โ””โ”€โ”€ scripts/ + โ”œโ”€โ”€ denote_finder.py # File search + โ”œโ”€โ”€ denote_links.py # Link resolution + โ”œโ”€โ”€ denote_silo.py # Silo management + โ”œโ”€โ”€ denote_graph.py # Knowledge graph + โ”œโ”€โ”€ org_parser.py # Org parsing + โ”œโ”€โ”€ org_execute.py # Code execution + โ”œโ”€โ”€ org_export.py # Export + โ””โ”€โ”€ requirements.txt +``` + +## ๐Ÿ—บ๏ธ Roadmap to 0.1 + +**Phase 1: Core (Current)** +- [x] Project setup +- [ ] README.md, README-KO.md +- [ ] Development log (docs/) +- [ ] SKILL.md (Denote-focused) + +**Phase 2: Denote Core** +- [ ] denote_finder.py (file search) +- [ ] denote_links.py (link resolution) +- [ ] denote_silo.py (silo management) +- [ ] denote-core.md documentation + +**Phase 3: Org-mode Base** +- [ ] org_parser.py (orgparse) +- [ ] org_execute.py (code blocks) +- [ ] orgmode-base.md documentation + +**Phase 4: 0.1 Release** +- [ ] Testing with 3,000+ files +- [ ] Examples +- [ ] Public release + +## ๐Ÿค Contributing + +This project is validated with real-world 3,000+ file Denote PKM systems. Denote users welcome! + +## ๐Ÿ“– Philosophy: Tools for Life + +**From the creator:** + +> "์ €์—๊ฒŒ ํ•„์š”ํ•œ ๊ฒƒ์€ ๊ฒฝ์Ÿ๋ ฅ ์žˆ๋Š” ์ง€์‹ ๋…ธ๋™์ž๋กœ ์‚ด ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์ด์—ˆ์Šต๋‹ˆ๋‹ค." +> +> "๋„๊ตฌ๋Š” ์กด์žฌ์— ๋…น์•„๋“ ๋‹ค" + +This skill embodies the "Tools for Life" philosophy - extending Anthropic's Life Sciences approach from biology research to personal knowledge work. + +**Life Sciences (Biology)** โ†’ **Life Everything (Living)** + +## ๐Ÿ“š Resources + +- [Denote Package](https://protesilaos.com/emacs/denote) by Protesilaos Stavrou +- [Anthropic Skills Documentation](https://support.claude.com/en/articles/12512176-what-are-skills) +- [Agent Skills Engineering Blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills) +- [Org-mode](https://orgmode.org/) + +## ๐Ÿ”— Related Projects + +Part of the **"์‹œ๊ฐ„๊ณผ์ •์‹ ์˜๋ฐฉ" (Hyperbolic Time Chamber)** ecosystem: +- [nixos-config](https://github.com/junghan0611/nixos-config) - Declarative infrastructure +- [doomemacs-config](https://github.com/junghan0611/doomemacs-config) - Terminal-optimized Emacs +- [zotero-config](https://github.com/junghan0611/zotero-config) - AI-queryable bibliography (156k+ lines) + +**Digital Garden:** [notes.junghanacs.com](https://notes.junghanacs.com) + +## ๐Ÿ“„ License + +Apache 2.0 (compatible with Anthropic Skills ecosystem) + +## ๐Ÿ™ Acknowledgments + +- **Anthropic** for the Agent Skills paradigm and Life Sciences blueprint +- **Protesilaos Stavrou** for creating Denote +- **Org-mode community** for the foundation +- **AIONS Clubs International** for the vision of collective intelligence + +--- + +**Status:** ๐ŸŸก Development (targeting 0.1 public release) +**Maintainer:** [@junghan0611](https://github.com/junghan0611) +**Created:** 2025-10-21 diff --git a/skills/junghan0611__org-mode-skills/SKILL.md b/skills/junghan0611__org-mode-skills/SKILL.md new file mode 100644 index 0000000..f2e0ea3 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/SKILL.md @@ -0,0 +1,432 @@ +--- +name: denote-org +description: "Comprehensive support for Denote-based PKM systems with org-mode foundation. Handles 3,000+ file knowledge bases with Denote file naming (timestamp--title__tags.org), knowledge graph navigation via [[denote:ID]] links, multi-silo management, and literate programming. When Claude needs to: (1) Find Denote files by ID/tags in large knowledge bases, (2) Navigate knowledge graphs with thousands of [[denote:]] links, (3) Execute org-mode code blocks with :tangle/:results options, (4) Manage multiple Denote silos (~/org/, ~/claude-memory/...), or (5) Work with Denote-structured PKM systems at scale." +--- + +# Denote-Org Skills + +## Overview + +This skill enables Claude to work with Denote-based Personal Knowledge Management (PKM) systems at scale. Denote is a simple yet powerful note-taking system for Emacs that combines file naming conventions, org-mode structure, and knowledge graph links. This skill provides procedural knowledge and executable scripts for handling 3,000+ file knowledge bases efficiently. + +## When to Use This Skill + +Claude should use this skill when: + +1. **Working with Denote files** - Files named `YYYYMMDDTHHMMSS--title__tag1_tag2.org` +2. **Large-scale PKM systems** - Knowledge bases with hundreds or thousands of org files +3. **Knowledge graph navigation** - Following `[[denote:TIMESTAMP]]` links across files +4. **Multi-silo management** - Searching across multiple Denote directories (~/org/, ~/claude-memory/, project docs/) +5. **Literate programming** - Executing org-mode code blocks with `:tangle` and `:results` options +6. **Denote metadata extraction** - Parsing file names and org-mode frontmatter +7. **Org-mode as primary collaboration format** - When both `.org` and `.md` exist for the same content, treat the org file as the primary, authoritative source and use markdown only as an export/share format. + +## What is Denote? + +Denote is a note-taking system created by Protesilaos Stavrou that uses: + +- **File naming**: `YYYYMMDDTHHMMSS--title__tag1_tag2.org` + - Timestamp = Unique identifier (Denote ID) + - Title = Hyphen-separated (supports ํ•œ๊ธ€/Korean) + - Tags = Underscore-separated (English) + +- **Org-mode frontmatter**: + ```org + #+title: Title + #+date: [2025-10-21 Tue 10:53] + #+filetags: :tag1:tag2:tag3: + #+identifier: 20251021T105353 + ``` + +- **Knowledge graph**: `[[denote:20251021T105353]]` links between files + +- **Silo concept**: Separate directories for different knowledge domains + +**Validated with 3,000+ org files in production PKM systems.** + +## Core Capabilities + +> **Important behavioral rule:** When the user explicitly asks to "read" or "understand" an org-mode document, do not immediately fall back to raw grep searches unless the user asks for grep specifically. First, use the structured org-mode reading strategy below (headings โ†’ history โ†’ focused sections) and only then use grep as a secondary tool. + +### 1. Denote File Name Parsing + +Parse Denote file names to extract metadata: + +```python +# Use scripts/denote_parser.py +from scripts.denote_parser import parse_denote_filename + +metadata = parse_denote_filename("20251021T105353--project-title__llmlog_denote.org") +# Returns: +# { +# 'timestamp': '20251021T105353', +# 'title': 'project title', +# 'tags': ['llmlog', 'denote'], +# 'extension': 'org' +# } +``` + +**When to use:** +- Extracting Denote ID from filename +- Getting title and tags without opening file +- Processing multiple files in batch + +**Edge cases handled:** +- Korean (ํ•œ๊ธ€) titles +- Filenames without tags +- Multiple hyphens in title + +### 2. Finding Denote Files + +Search for Denote files by ID, tags, or date patterns: + +```python +# Use scripts/denote_finder.py +from scripts.denote_finder import find_denote_file, find_by_tags + +# Find by ID +filepath = find_denote_file("20251021T105353", silos=["~/org/"]) + +# Find by tags +files = find_by_tags(["llmlog", "denote"], silo="~/org/") + +# Find by date pattern +files = find_by_date_range("202510*", silo="~/org/") +``` + +**When to use:** +- User asks "Find file 20251021T105353" +- Search by tags: "Show me all llmlog files" +- Date range queries: "Files from October 2025" + +**Performance:** +- Uses caching for repeated searches +- Generator pattern for large result sets +- Typical search: <100ms for 3,000+ files + +### 3. Denote Link Resolution + +Resolve `[[denote:ID]]` links to actual file paths: + +```python +# Use scripts/denote_links.py +from scripts.denote_links import resolve_denote_link + +filepath = resolve_denote_link("denote:20251021T105353", silos=["~/org/", "~/claude-memory/"]) +# Returns: ~/org/llmlog/20251021T105353--full-filename.org +``` + +**When to use:** +- File contains `[[denote:...]]` links +- Need to open linked files +- Validate link integrity + +**Error recovery:** +- Exact match (full timestamp) +- Fallback: Partial match (first 8 chars) +- Returns suggestions if not found + +### 4. Knowledge Graph Operations + +Build and navigate knowledge graphs from Denote links: + +```python +# Use scripts/denote_graph.py +from scripts.denote_graph import build_knowledge_graph, get_connected_nodes + +# Build graph (cached) +graph = build_knowledge_graph("~/org/") + +# Get connected files +connected = get_connected_nodes("20251021T105353", hops=2) + +# Detect circular references +cycles = detect_circular_refs(graph) +``` + +**When to use:** +- "Show files linked to this" +- "Find related notes" +- Discover knowledge clusters +- Detect broken or circular links + +**Performance:** +- First build: ~10 seconds for 3,000 files +- Cached: <1 second +- Incremental updates supported + +### 5. Multi-Silo Management + +#### 5.1 Preferred org-mode reading strategy + +When working with org-mode files in this environment, follow this structured process instead of treating them as plain text: + +1. **Identify org-context and silos** + - If a file path matches any of the following, assume it is part of a Denote/org knowledge base and prefer org-mode behavior over ad-hoc grep: + - `~/org/**` + - `~/org/meta/**` + - `~/org/bib/**` + - `~/org/notes/**` + - `~/org/llmlog/**` + - `~/claude-memory/**` + - `~/repos/gh/*/docs/**` + - `~/repos/work/*/docs/**` + - Treat these as **silos** with different roles: + - `~/org/meta` : meta-level models, config, and system design + - `~/org/bib` : bibliography and reference material + - `~/org/notes` : long-form notes and thinking + - `~/org/llmlog`: LLM conversation logs and experiments + - project `docs/`: per-repo documentation tied to code + +2. **Parse headings before content** + - For large org files, do not read the entire file into context at once. + - Instead, first extract only: + - The top-level headings (`*`, `**`, `***`) + - Their titles and hierarchy + - Build a lightweight table of contents (TOC) and use that to decide which sections to inspect in detail. + +3. **Locate and summarize history sections early** + - If any heading matches common history patterns, treat it as a version/change log and inspect it early: + - `* ํžˆ์Šคํ† ๋ฆฌ`, `* HISTORY`, `* History`, `* ์ž‘์—… ๋กœ๊ทธ`, `* Changelog`, or similar + - Summarize: + - How the document has evolved over time + - Recent significant changes + - Any explicit version markers or dates + +4. **Drill down into relevant sections only** + - After building the TOC and understanding history, only expand the specific headings that are relevant to the current task or user question. + - Use grep/rg as a **secondary tool** to locate candidate sections, then return to structured org parsing for interpretation. + +5. **Prefer org over markdown when both exist** + - If both `X.org` and `X.md` exist for the same conceptual document: + - Treat `X.org` as canonical for structure, metadata, and detailed reasoning. + - Use `X.md` only as an export/share artifact or when the user explicitly prefers markdown. + +This strategy exists to maximize collaboration on org documents as first-class knowledge artifacts, not just as flat text blobs. + + +Search across multiple Denote directories: + +```python +# Use scripts/denote_silo.py +from scripts.denote_silo import find_in_silos + +# Search in multiple locations +filepath = find_in_silos( + "20251021T105353", + silos=["~/org/", "~/claude-memory/", "~/repos/*/docs/"], + priority=True # Return first match +) +``` + +**When to use:** +- Files could be in multiple locations +- Cross-silo link resolution +- Silo statistics and analysis + +**Common silos:** +- `~/org/` - Main knowledge base (3,000+ files) +- `~/claude-memory/` - AI memory system +- `~/repos/*/docs/` - Project-specific docs + +### 6. Org-mode Code Block Execution + +Execute org-mode code blocks (literate programming): + +```python +# Use scripts/org_execute.py +from scripts.org_execute import execute_org_blocks + +# Execute all code blocks +results = execute_org_blocks("file.org") + +# Execute specific named block +result = execute_named_block("file.org", "example-block") + +# Tangle code to files +tangle_org_file("file.org", output_dir="/tmp/") +``` + +**When to use:** +- User asks to "execute code blocks" +- Literate programming workflows +- Generate files from `:tangle` options + +**Org-babel compatibility:** +- Supports `:tangle`, `:results`, `:name` options +- Languages: bash, python, etc. +- Preserves org structure +- Updates `#+RESULTS` blocks + +## Quick Start Examples + +### Example 1: Find and Open Denote File + +``` +User: "Open file 20251021T105353" + +Claude: Uses denote_finder.py +Result: ~/org/llmlog/20251021T105353--anthropic-skill-creator-๋ถ„์„__llmlog_skills.org +``` + +### Example 2: Knowledge Graph Exploration + +``` +User: "Show me all files connected to this note" + +Claude: Uses denote_graph.py +Result: +- Direct links: 5 files +- 2-hop connections: 23 files +- Clusters: AI/Skills, PKM, Tools for Life +``` + +### Example 3: Tag-based Search + +``` +User: "Find all llmlog files from October 2025" + +Claude: Uses denote_finder.py +Result: 47 files matching criteria +``` + +### Example 4: Execute Literate Programming + +``` +User: "Execute the bash blocks in this org file" + +Claude: Uses org_execute.py +Result: +- Executed 3 code blocks +- Updated #+RESULTS +- Tangled to /tmp/script.sh +``` + +## Common Pitfalls + +### Pitfall 1: Denote ID Collision +**Problem:** Files created in same second have identical timestamps +**Solution:** Scripts use full filename as tiebreaker + +### Pitfall 2: Cross-Silo Links +**Problem:** Link from ~/org/ to ~/claude-memory/ file +**Solution:** Always search multiple silos, use `find_in_silos()` + +### Pitfall 3: Circular References +**Problem:** A โ†’ B โ†’ C โ†’ A creates cycle in knowledge graph +**Solution:** `detect_circular_refs()` identifies cycles + +### Pitfall 4: Korean Encoding +**Problem:** ํ•œ๊ธ€ filenames may cause encoding issues +**Solution:** All scripts use UTF-8, `os.path.expanduser()` + +### Pitfall 5: Large Result Sets +**Problem:** Query returns 1,000+ files, exceeds token limit +**Solution:** Scripts use generators, return summary + pagination + +## File Structure + +This skill uses a **Capabilities-Based** structure with executable scripts and reference documentation: + +``` +denote-org/ +โ”œโ”€โ”€ SKILL.md (this file) +โ”œโ”€โ”€ scripts/ +โ”‚ โ”œโ”€โ”€ denote_parser.py - Parse filenames and frontmatter +โ”‚ โ”œโ”€โ”€ denote_finder.py - Search files (cached, generator) +โ”‚ โ”œโ”€โ”€ denote_links.py - Resolve [[denote:ID]] links +โ”‚ โ”œโ”€โ”€ denote_silo.py - Multi-silo management +โ”‚ โ”œโ”€โ”€ denote_graph.py - Knowledge graph operations +โ”‚ โ”œโ”€โ”€ org_parser.py - Parse org structure +โ”‚ โ”œโ”€โ”€ org_execute.py - Execute code blocks +โ”‚ โ””โ”€โ”€ org_export.py - Export to markdown/PDF/HTML +โ”œโ”€โ”€ references/ +โ”‚ โ”œโ”€โ”€ denote-spec.md - Denote specification +โ”‚ โ”œโ”€โ”€ orgmode-syntax.md - Org-mode syntax reference +โ”‚ โ””โ”€โ”€ literate-programming.md - Literate programming guide +โ””โ”€โ”€ assets/ + โ””โ”€โ”€ (none - this skill doesn't use output templates) +``` + +## Resources + +### scripts/ + +Executable Python scripts for efficient Denote and org-mode operations. These scripts handle: + +- **File operations**: Finding, parsing, and resolving links across 3,000+ files +- **Graph operations**: Building and navigating knowledge graphs +- **Code execution**: Running org-babel blocks safely +- **Export**: Converting org to other formats + +**Performance optimized:** +- Caching with `@lru_cache` for expensive operations +- Generator pattern for memory efficiency +- Typical operations: <100ms (finder), <1s (graph, cached) + +### references/ + +Detailed documentation for Denote and org-mode: + +- **denote-spec.md**: Complete Denote specification (file naming, frontmatter, links, silos) +- **orgmode-syntax.md**: Org-mode syntax reference (headings, properties, timestamps, code blocks) +- **literate-programming.md**: Literate programming with org-babel (`:tangle`, `:results`, `:name`) + +**Load these when:** +- Working with complex org structures +- Need detailed Denote specification +- Implementing literate programming workflows + +### assets/ + +Not used in this skill. Denote-org processes existing files rather than creating from templates. + +**Note:** The `assets/` directory can be deleted as it's not needed for this skill. + +## Integration with Other Systems + +This skill is part of the **"Tools for Life" 9-layer architecture**, specifically Layer 3 (Knowledge Management): + +- **Layer 4 (claude-config)**: Uses Denote format for AI memory (~/claude-memory/) +- **Layer 3.5 (embedding-config)**: Vectorizes org files for semantic search +- **Layer 5a (memex-kb)**: Migrates to Denote format +- **Layer 7 (notes)**: Exports Denote org โ†’ markdown for publishing + +**Philosophy:** Extends Anthropic's Life Sciences paradigm (domain context + AI = expert collaboration) from Biology research to personal knowledge work. + +## Performance Considerations + +When working with 3,000+ files: + +- **Caching**: Graph building is cached (10s first time, <1s after) +- **Generators**: Large searches use streaming (memory efficient) +- **Timeouts**: Long operations have configurable limits +- **Pagination**: Large result sets are paginated automatically + +## Troubleshooting + +### Links Not Resolving +- Check if file exists in specified silos +- Try partial match (first 8 chars of timestamp) +- Verify silo paths use `os.path.expanduser()` + +### Graph Building Slow +- First build takes ~10 seconds for 3,000 files (normal) +- Subsequent builds use cache (<1 second) +- Use incremental update for changed files only + +### Code Block Execution Fails +- Check `:tangle` path exists +- Verify code block language support +- Review `:results` option syntax + +### Encoding Errors +- All scripts use UTF-8 +- Korean (ํ•œ๊ธ€) filenames fully supported +- File paths expanded with `os.path.expanduser()` + +## See Also + +- [Denote Package](https://protesilaos.com/emacs/denote) by Protesilaos Stavrou +- [Org-mode](https://orgmode.org/) documentation +- README.md in this repository for project context and Life Sciences paradigm connection diff --git a/skills/junghan0611__org-mode-skills/TODO.org b/skills/junghan0611__org-mode-skills/TODO.org new file mode 100644 index 0000000..d22f43a --- /dev/null +++ b/skills/junghan0611__org-mode-skills/TODO.org @@ -0,0 +1,643 @@ +#+title: Denote-Org Skills TODO +#+date: [2025-10-21 Tue 11:58] +#+filetags: :project:todo: +#+startup: overview + +* Denote-Org Skills 0.1 Release Roadmap + +** DONE Project Setup +CLOSED: [2025-10-21 Tue 11:56] +- [X] Create repository (~/repos/gh/orgmode-skills) +- [X] README.md (English) +- [X] README-KO.md (Korean) +- [X] LICENSE (Apache 2.0) +- [X] .gitignore +- [X] Git init and first commit +- [X] Git remote add origin +- [X] Development log (docs/20251021T113500--*.org) +- [X] Opus 4.1 feedback integration + +** TODO Phase 1: Core Documentation [0/4] +SCHEDULED: <2025-10-21 Tue> + +*** TODO SKILL.md - Main guide for Claude +:PROPERTIES: +:EFFORT: 2h +:END: + +Based on Opus 4.1 feedback, include: +- When to use this skill (ํŠธ๋ฆฌ๊ฑฐ ๋ช…ํ™•ํžˆ) + - Denote PKM systems + - 3,000+ org files + - Knowledge graph navigation + - Literate programming + +- What this skill does + - Parse Denote filenames + - Resolve [[denote:ID]] links + - Build knowledge graph + - Execute code blocks + - Silo management + +- How to use effectively + - Quick start examples + - Python script usage + - Common workflows + +- Common pitfalls + - Edge cases (ID collision, circular refs, encoding...) + - Performance considerations + - Silo boundaries + +Reference: PDF/XLSX SKILL.md structure + +*** TODO denote-core.md - Denote specification +:PROPERTIES: +:EFFORT: 1.5h +:END: + +Content: +- File naming: YYYYMMDDTHHMMSS--title__tags.org +- Frontmatter: #+title, #+date, #+filetags, #+identifier +- Links: [[denote:TIMESTAMP]] +- Silo concept +- Real examples from 3,000+ files + +*** TODO denote-silo.md - Silo management guide +:PROPERTIES: +:EFFORT: 1h +:END: + +Content: +- What is silo? (~/org/ vs ~/claude-memory/ vs ~/repos/*/docs/) +- Cross-silo links +- Priority resolution +- Path handling (os.path.expanduser) + +*** TODO orgmode-base.md - Org-mode foundation +:PROPERTIES: +:EFFORT: 1.5h +:END: + +Content: +- Headings, properties, timestamps +- Code blocks (#+begin_src ... #+end_src) +- Tables +- Links (file:, id:, denote:) +- Export basics + +** TODO Phase 2: Denote Core Scripts [0/5] +SCHEDULED: <2025-10-22 Wed> + +*** TODO scripts/denote_parser.py - File name and frontmatter parsing +:PROPERTIES: +:EFFORT: 2h +:END: + +Functions: +#+begin_src python +def parse_denote_filename(filename: str) -> dict: + """ + Parse: 20251021T105353--title__tag1_tag2.org + Returns: { + 'timestamp': '20251021T105353', + 'title': 'title', + 'tags': ['tag1', 'tag2'], + 'extension': 'org' + } + + Edge cases: + - ํ•œ๊ธ€ title handling + - No tags (filename without __) + - Multiple hyphens in title + """ + +def parse_denote_frontmatter(content: str) -> dict: + """ + Parse org-mode frontmatter: + #+title:, #+date:, #+filetags:, #+identifier: + """ +#+end_src + +Implementation notes: +- Use os.path.expanduser() for paths +- Handle encoding (UTF-8) +- Validate timestamp format +- Test with 100+ real filenames + +*** TODO scripts/denote_finder.py - File search with caching +:PROPERTIES: +:EFFORT: 2.5h +:END: + +Functions: +#+begin_src python +from functools import lru_cache + +@lru_cache(maxsize=128) +def build_file_index(silo_path: str) -> dict: + """Build index of all Denote files (cached)""" + +def find_denote_file(identifier: str, silos: list) -> str: + """Find file by timestamp ID""" + +def find_by_tags(tags: list, silo: str) -> list: + """Find files by tags""" + +def find_by_date_range(pattern: str, silo: str) -> list: + """Find files by date pattern (202510*)""" + +def find_files_generator(pattern: str, silo: str): + """Memory-efficient streaming search""" + for file in matching_files: + yield file +#+end_src + +Implementation notes: +- Generator for large result sets +- lru_cache for index +- Support multiple silos +- Pattern matching (glob, regex) + +*** TODO scripts/denote_links.py - Link resolution with fallback +:PROPERTIES: +:EFFORT: 2h +:END: + +Functions: +#+begin_src python +def resolve_denote_link(link_id: str, silos: list) -> str: + """ + Resolve [[denote:20251021T105353]] to file path + + Try: + 1. Exact match (full timestamp) + 2. Fallback: partial match (first 8 chars) + 3. Raise NotFoundError with suggestions + """ + +def extract_denote_links(org_content: str) -> list: + """Extract all [[denote:ID]] links from org file""" + +def validate_links(filepath: str, silos: list) -> dict: + """Check for broken links, return status""" +#+end_src + +Implementation notes: +- Error recovery (Opus feedback) +- Cross-silo links +- Backlinks tracking + +*** TODO scripts/denote_silo.py - Silo management +:PROPERTIES: +:EFFORT: 1.5h +:END: + +Functions: +#+begin_src python +def find_in_silos(identifier: str, silos: list, priority: bool = True) -> str: + """ + Search in multiple silos + priority=True: return first match + priority=False: return all matches + """ + +def list_silos(base_paths: list) -> list: + """Discover all Denote silos""" + +def get_silo_stats(silo_path: str) -> dict: + """Get statistics: file count, tags, date range""" +#+end_src + +Implementation notes: +- os.path.expanduser() +- Symlink resolution +- Priority handling + +*** TODO scripts/requirements.txt - Python dependencies +:PROPERTIES: +:EFFORT: 0.5h +:END: + +#+begin_src text +orgparse>=0.3.0 +pypandoc>=1.11 +pyyaml>=6.0 +#+end_src + +** TODO Phase 3: Knowledge Graph [0/2] +SCHEDULED: <2025-10-23 Thu> + +*** TODO scripts/denote_graph.py - Graph builder with caching +:PROPERTIES: +:EFFORT: 3h +:END: + +Functions: +#+begin_src python +from functools import lru_cache +import networkx as nx + +@lru_cache(maxsize=32) +def build_knowledge_graph(silo_path: str) -> nx.DiGraph: + """ + Build directed graph: + - Nodes: Denote files + - Edges: [[denote:ID]] links + - Attributes: tags, title, date + + Cached for performance + """ + +def get_connected_nodes(identifier: str, hops: int = 2) -> list: + """Get connected files (N-hop neighbors)""" + +def detect_circular_refs(graph: nx.DiGraph) -> list: + """Detect circular references (Edge case!)""" + +def update_graph_incremental(graph: nx.DiGraph, changed_files: list): + """Incremental update (Opus suggestion)""" + +def export_graph_stats(graph: nx.DiGraph) -> dict: + """Export graph statistics (nodes, edges, clusters...)""" +#+end_src + +Implementation notes: +- Use networkx for graph operations +- Detect cycles (circular references) +- Incremental updates +- Performance monitoring (>1s warning) + +*** TODO denote-knowledge-graph.md - Graph documentation +:PROPERTIES: +:EFFORT: 1.5h +:END: + +Content: +- Graph structure (nodes, edges) +- Algorithms (BFS, DFS for traversal) +- Circular reference handling +- Performance benchmarks (3,000+ files) +- Use cases (find related, clusters, orphans) + +** TODO Phase 4: Org-mode Features [0/3] +SCHEDULED: <2025-10-24 Fri> + +*** TODO scripts/org_parser.py - Org structure parsing +:PROPERTIES: +:EFFORT: 2h +:END: + +Functions: +#+begin_src python +import orgparse + +def parse_org_file(filepath: str) -> orgparse.OrgNode: + """Parse org file structure""" + +def extract_headings(node: orgparse.OrgNode, level: int = None) -> list: + """Extract headings (optionally by level)""" + +def extract_properties(node: orgparse.OrgNode) -> dict: + """Extract properties drawer""" + +def extract_timestamps(node: orgparse.OrgNode) -> list: + """Extract all timestamps""" + +def extract_code_blocks(filepath: str) -> list: + """Extract #+begin_src blocks with metadata""" +#+end_src + +*** TODO scripts/org_execute.py - Code block execution (Emacs compatible) +:PROPERTIES: +:EFFORT: 2.5h +:END: + +Functions: +#+begin_src python +def execute_org_blocks(filepath: str, block_names: list = None): + """ + Execute code blocks (org-babel compatible) + + Support: + - :tangle option (file path) + - :results option (silent/output/value) + - Named blocks (#+name:) + - Languages (bash, python, ...) + + Safety: + - Preserve org structure + - Update #+RESULTS blocks + - Error handling + """ + +def tangle_org_file(filepath: str, output_dir: str = None): + """Extract code blocks to files (:tangle)""" +#+end_src + +Implementation notes: +- Org-babel :results handling (Opus feedback) +- Structure preservation (critical!) +- Timeout handling + +*** TODO scripts/org_export.py - Multi-format export +:PROPERTIES: +:EFFORT: 1.5h +:END: + +Functions: +#+begin_src python +import pypandoc + +def export_to_markdown(org_file: str, output: str): + """org โ†’ markdown (preserve Denote frontmatter)""" + +def export_to_html(org_file: str, output: str): + """org โ†’ HTML""" + +def export_to_pdf(org_file: str, output: str): + """org โ†’ PDF (requires LaTeX)""" +#+end_src + +** TODO Phase 5: Testing & Examples [0/4] +SCHEDULED: <2025-10-25 Sat> + +*** TODO tests/ - Test dataset structure +:PROPERTIES: +:EFFORT: 2h +:END: + +Create test files: +#+begin_example +tests/ +โ”œโ”€โ”€ small/ # 10 files (fast tests) +โ”‚ โ”œโ”€โ”€ 20251021T100000--test-file-1__test.org +โ”‚ โ”œโ”€โ”€ 20251021T100100--test-file-2__test_denote.org +โ”‚ โ””โ”€โ”€ ... +โ”œโ”€โ”€ medium/ # 100 files (feature tests) +โ””โ”€โ”€ large/ # 1000+ files (performance tests) +#+end_example + +Include edge cases: +- ID collision (same second) +- Circular references +- Cross-silo links +- ํ•œ๊ธ€ titles +- Broken links + +*** TODO examples/ - Usage examples +:PROPERTIES: +:EFFORT: 1.5h +:END: + +Create: +- examples/basic.org (basic Denote file) +- examples/literate.org (code blocks with :tangle) +- examples/knowledge-graph.org (multiple links) + +*** TODO Run tests with 3,000+ real files +:PROPERTIES: +:EFFORT: 1h +:END: + +Test with actual ~/org/ directory: +- File finding speed +- Graph building time +- Link resolution accuracy +- Memory usage + +*** TODO Performance benchmarks +:PROPERTIES: +:EFFORT: 1h +:END: + +Measure: +- denote_finder.py: <100ms for single file +- denote_graph.py: <10s for 3,000 files (cached: <1s) +- denote_links.py: <50ms per link + +** TODO Phase 6: 0.1 Release [0/5] +SCHEDULED: <2025-10-26 Sun> + +*** TODO Complete SKILL.md with all sections +:PROPERTIES: +:EFFORT: 1h +:END: + +Final review: +- All "When/What/How/Pitfalls" sections +- Working code examples +- Cross-references to other docs + +*** TODO Update README with installation instructions +:PROPERTIES: +:EFFORT: 0.5h +:END: + +Add: +- Tested installation steps +- Dependencies verification +- Quick start that actually works + +*** TODO Create CHANGELOG.md +:PROPERTIES: +:EFFORT: 0.5h +:END: + +Document: +- v0.1 initial release +- Features implemented +- Known limitations + +*** TODO Final Git commit and tag +:PROPERTIES: +:EFFORT: 0.5h +:END: + +#+begin_src bash +git add . +git commit -m "Release 0.1: Core Denote-Org Skills" +git tag -a v0.1 -m "Version 0.1: Denote core + org-mode base" +git push -u origin main +git push origin v0.1 +#+end_src + +*** TODO Convert repository to Public +:PROPERTIES: +:EFFORT: 0.5h +:END: + +GitHub settings: +- Repository โ†’ Settings โ†’ General +- Danger Zone โ†’ Change visibility โ†’ Public +- Confirm + +** TODO Phase 7: Community Outreach [0/4] + +*** TODO Submit PR to awesome-claude-skills +:PROPERTIES: +:EFFORT: 1h +:END: + +Repository: https://github.com/travisvn/awesome-claude-skills + +Add to Community Skills section: +#+begin_src markdown +### Knowledge Management + +- **[denote-org](https://github.com/junghan0611/org-mode-skills)** - + Comprehensive Denote PKM system support with org-mode foundation. + Validated with 3,000+ files. Features knowledge graph navigation, + literate programming, and multi-silo management. +#+end_src + +*** TODO Share on communities +:PROPERTIES: +:EFFORT: 1h +:END: + +Platforms: +- [ ] Reddit r/emacs +- [ ] Reddit r/orgmode +- [ ] Hacker News +- [ ] Anthropic Discord/Forum +- [ ] Protesilaos Stavrou (Denote creator) - mention on Mastodon? + +*** TODO Create announcement blog post +:PROPERTIES: +:EFFORT: 2h +:END: + +Write for notes.junghanacs.com: +- Title: "Denote-Org Skills: Life Sciences Paradigm for Life Everything" +- Content: Project vision, technical details, 9-layer context +- Publish as org โ†’ markdown + +*** TODO AIONS Clubs announcement +:PROPERTIES: +:EFFORT: 0.5h +:END: + +Share with AIONS community: +- Project overview +- Life Sciences โ†’ Life Everything vision +- Contribution opportunity + +* Implementation Notes + +** Critical Requirements (from Opus 4.1) + +*** File Path Handling +#+begin_src python +import os +# Always use +silo = os.path.expanduser("~/org/") +#+end_src + +*** Caching Strategy +#+begin_src python +from functools import lru_cache + +@lru_cache(maxsize=128) +def expensive_operation(): + pass +#+end_src + +*** Error Recovery +#+begin_src python +def resolve_with_fallback(identifier): + try: + return exact_match(identifier) + except NotFoundError: + return partial_match(identifier[:8]) +#+end_src + +*** Performance Monitoring +#+begin_src python +def measure_performance(func): + # Log if > 1 second + pass +#+end_src + +** Edge Cases to Handle + +1. [ ] Denote ID collision (same second) +2. [ ] Circular references in graph +3. [ ] Cross-silo links +4. [ ] ํ•œ๊ธ€ encoding in filenames +5. [ ] Symlink resolution + +** Dependencies + +*** Python packages +- orgparse>=0.3.0 +- pypandoc>=1.11 +- pyyaml>=6.0 +- networkx>=3.0 (for knowledge graph) + +*** System +- Pandoc (for export) +- Python 3.8+ + +* Progress Tracking + +** Week 1 (2025-10-21 ~ 2025-10-27) +- [X] Day 1 (Mon): Project setup, README, Git init +- [ ] Day 2 (Tue): SKILL.md, denote-core.md +- [ ] Day 3 (Wed): Core scripts (parser, finder) +- [ ] Day 4 (Thu): Links, silo, graph +- [ ] Day 5 (Fri): Org-mode features +- [ ] Day 6 (Sat): Testing +- [ ] Day 7 (Sun): 0.1 Release + +** Metrics + +*** Current Status (2025-10-21) +- Files: 5 (READMEร—2, LICENSE, .gitignore, docs) +- Commits: 2 +- Lines: 1,677 (docs: 829, README: 743, LICENSE: 202) +- Status: ๐ŸŸก Development + +*** Target for 0.1 +- Files: 15+ (docs, scripts, examples) +- Scripts: 7 Python files +- Tests: 3 levels (small/medium/large) +- Documentation: Complete +- Status: ๐ŸŸข Public Release + +* References + +** Anthropic Resources +- [[https://github.com/anthropics/skills][Official Skills Repository]] +- [[https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills][Agent Skills Engineering Blog]] +- document-skills/pdf/SKILL.md (8 scripts example) +- document-skills/xlsx/SKILL.md (CRITICAL rules example) + +** Denote Resources +- [[https://protesilaos.com/emacs/denote][Denote by Protesilaos Stavrou]] +- [[https://orgmode.org/][Org-mode]] + +** Related Projects +- [[file:~/repos/gh/claude-config/README.md][claude-config]] +- [[file:~/repos/gh/memex-kb/README.md][memex-kb]] +- [[file:~/repos/gh/embedding-config/README.md][embedding-config]] + +* Notes + +** Opus 4.1 Feedback Summary +"Life Sciences โ†’ Life Everything ํŒจ๋Ÿฌ๋‹ค์ž„ ํ™•์žฅ์€ +Anthropic Skills์˜ ๋ณธ์งˆ์„ ์ž˜ ์ดํ•ดํ•œ ์ ‘๊ทผ์ž…๋‹ˆ๋‹ค." + +Key insights: +- SKILL.md structure is critical +- Performance optimization for 3,000+ files +- Edge case handling is essential +- Test dataset structure needed + +** Project Philosophy +Skills = Onboarding guide for domain expertise +NOT a converter, AN operational system +Validated with real-world 3,000+ files PKM + +--- +Last updated: [2025-10-21 Tue 11:58] diff --git a/skills/junghan0611__org-mode-skills/docs/20251021T113500--denote-org-skills-ํ”„๋กœ์ ํŠธ-์‹œ์ž‘-๋ฐฐ๊ฒฝ-๋ฐ-์ž‘์—…-๋กœ๊ทธ__project_skills_denote_anthropic_worklog.org b/skills/junghan0611__org-mode-skills/docs/20251021T113500--denote-org-skills-ํ”„๋กœ์ ํŠธ-์‹œ์ž‘-๋ฐฐ๊ฒฝ-๋ฐ-์ž‘์—…-๋กœ๊ทธ__project_skills_denote_anthropic_worklog.org new file mode 100644 index 0000000..7775368 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/docs/20251021T113500--denote-org-skills-ํ”„๋กœ์ ํŠธ-์‹œ์ž‘-๋ฐฐ๊ฒฝ-๋ฐ-์ž‘์—…-๋กœ๊ทธ__project_skills_denote_anthropic_worklog.org @@ -0,0 +1,828 @@ +#+title: Denote-Org Skills ํ”„๋กœ์ ํŠธ ์‹œ์ž‘: ๋ฐฐ๊ฒฝ ๋ฐ ์ž‘์—… ๋กœ๊ทธ +#+date: [2025-10-21 Tue 11:35] +#+filetags: :project:skills:denote:anthropic:worklog: +#+identifier: 20251021T113500 +#+export_file_name: 20251021T113500.md + +* Denote-Org Skills ํ”„๋กœ์ ํŠธ ์‹œ์ž‘ :WORKLOG: + +** ํžˆ์Šคํ† ๋ฆฌ +- [2025-10-21 Tue 11:35] ํ”„๋กœ์ ํŠธ ์‹œ์ž‘, README ์ž‘์„ฑ +- [2025-10-21 Tue 07:45] Anthropic Life Sciences ์˜์ƒ ๋ถ„์„ +- [2025-10-21 Tue 07:00] Life Sciences โ†’ Tools for Life ํ†ต์ฐฐ + +** ๊ด€๋ จ ๋ฉ”ํƒ€ +- [[denote:20251021T074500][Anthropic Life Sciences์™€ Tools for Life ํŒจ๋Ÿฌ๋‹ค์ž„]] +- [[denote:20251021T105353][ํ”„๋กœ์ ํŠธ Denote ๋ฌธ์„œ Org-mode ์ „ํ™˜]] +- [[denote:20251015T093311][@ํžฃ: ์‹œ๊ฐ„๊ณผ์ •์‹ ์˜๋ฐฉ -CONFIG ์ƒํƒœ๊ณ„]] + +* ํ”„๋กœ์ ํŠธ ๋ฐฐ๊ฒฝ: Anthropic Life Sciences์—์„œ ์‹œ์ž‘ + +** ๋ฐœ๋‹จ: Life Sciences ์˜์ƒ ๋ถ„์„ + +์˜ค๋Š˜ ์•„์นจ Anthropic์˜ Life Sciences ์˜์ƒ์„ ๋ถ„์„ํ•˜๋˜ ์ค‘ ์ค‘์š”ํ•œ ๋ฐœ๊ฒฌ: + +#+begin_quote +"Anthropic์ด ์ƒ๋ช…๊ณผํ•™์—์„œ ์ฆ๋ช…ํ•œ ๊ฒƒ: +**๋„๋ฉ”์ธ ์ปจํ…์ŠคํŠธ + AI = ์ „๋ฌธ๊ฐ€ ์ˆ˜์ค€ ํ˜‘์—…** + +PubMed + Claude = Scientific AI" +#+end_quote + +์ด๊ฒƒ์„ 9๊ฐœ ๋ ˆ์ด์–ด ์‹œ์Šคํ…œ๊ณผ ์—ฐ๊ฒฐํ•˜๋ฉด์„œ ๊นจ๋‹ฌ์Œ: + +#+begin_quote +"๋‚ด ์‹œ์Šคํ…œ์€ Life Sciences์˜ ๊ฐœ์ธ ๋ฒ„์ „์ด ์•„๋‹ˆ๋ผ, +**Life Sciences ํŒจ๋Ÿฌ๋‹ค์ž„์„ ์‚ถ ์ „๋ฐ˜์œผ๋กœ ํ™•์žฅํ•˜๋Š” ์ฒญ์‚ฌ์ง„**์ด๋‹ค." +#+end_quote + +** ์ „ํ™˜์ : "Skills"์˜ ๋ณธ์งˆ ์ดํ•ด + +Anthropic Skills ๋ฆฌํฌ์ง€ํ† ๋ฆฌ 2๊ฐœ ํด๋ก : +- =~/repos/3rd/snthropics-skills= (๊ณต์‹) +- =~/repos/3rd/awesome-claude-skills= (์ปค๋ฎค๋‹ˆํ‹ฐ) + +PDF, XLSX Skills ๋ถ„์„ ์ค‘ ํ•ต์‹ฌ ๋ฐœ๊ฒฌ: + +#+begin_quote +**Skills โ‰  ๋‹จ์ˆœ ํ”„๋กฌํ”„ํŠธ** +**Skills = Onboarding Guide + Procedural Knowledge + Executable Scripts** + +"Skills๋Š” ๋ฒ”์šฉ ์—์ด์ „ํŠธ๋ฅผ ๋„๋ฉ”์ธ ์ „๋ฌธ๊ฐ€๋กœ ๋ณ€ํ™˜์‹œํ‚จ๋‹ค" +#+end_quote + +** ์ค‘์š”ํ•œ ์งˆ๋ฌธ: "๋‹จ์ˆœ ๋ณ€ํ™˜๊ธฐ ํ”„๋กฌํ”„ํŠธ๊ฐ€ ๋ ๊นŒ ๋ด ์—ผ๋ ค" + +์‚ฌ์šฉ์ž๊ฐ€ ์ œ๊ธฐํ•œ ํ•ต์‹ฌ ์งˆ๋ฌธ: + +#+begin_quote +"Skills๋ฅผ Anthropic์ด ๋งŒ๋“  ์ด์œ ๊ฐ€ ์žˆ๊ณ  ํ•„์š”ํ•œ ์ผ€์ด์Šค๊ฐ€ ์žˆ์„๊ฑฐ์•ผ. +๊ฑฐ๊ธฐ์— ์ง‘์ค‘ํ•ด์„œ Skill๊ฐ€ ๋˜์–ด์•ผํ•ด." +#+end_quote + +์ด๊ฒƒ์ด ํ”„๋กœ์ ํŠธ์˜ ๋ฐฉํ–ฅ์„ ์™„์ „ํžˆ ๋ฐ”๊ฟจ์Šต๋‹ˆ๋‹ค. + +* Skills์˜ ๋ณธ์งˆ: Anthropic ๊ณต์‹ ๋ถ„์„ + +** WebFetch ๊ฒฐ๊ณผ: Skills๊ฐ€ ํ•ด๊ฒฐํ•˜๋Š” 4๊ฐ€์ง€ ๋ฌธ์ œ + +์ถœ์ฒ˜: [[https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills]] + +*** 1. Context Management +#+begin_quote +"effectively unbounded" context via bundled files + +ํ”„๋กฌํ”„ํŠธ๋Š” ๋ชจ๋“  ์ •๋ณด๋ฅผ ํ•œ ๋ฒˆ์— ๋กœ๋“œํ•ด์•ผ ํ•จ +Skills๋Š” ํ•„์š”ํ•œ ๊ฒƒ๋งŒ progressive disclosure +#+end_quote + +*** 2. Reusability and Portability +#+begin_quote +"packaging your expertise into composable resources" + +ํ”„๋กฌํ”„ํŠธ๋Š” ๋งค๋ฒˆ ์žฌ์ž‘์„ฑ +Skills๋Š” ํŒ€ ๊ฐ„ ๊ณต์œ , ๋ฐ˜๋ณต ์‚ฌ์šฉ +#+end_quote + +*** 3. Code Execution Efficiency +#+begin_quote +"deterministic reliability" with bundled scripts + +ํ”„๋กฌํ”„ํŠธ๋Š” Claude๊ฐ€ ์ฝ”๋“œ ์ƒ์„ฑ (ํ† ํฐ ์†Œ๋ชจ, ์˜ค๋ฅ˜ ๊ฐ€๋Šฅ) +Skills๋Š” ๊ฒ€์ฆ๋œ ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ +#+end_quote + +*** 4. Organizational Knowledge Capture +#+begin_quote +"putting together an onboarding guide for a new hire" + +ํ”„๋กฌํ”„ํŠธ๋Š” ์ผํšŒ์„ฑ +Skills๋Š” ์ ˆ์ฐจ์  ์ง€์‹ ์˜๊ตฌ ๋ณด์กด +#+end_quote + +** Document Skills ๋ถ„์„: PDF, XLSX, DOCX + +*** PDF Skills์˜ ๋ณต์žก์„ฑ + +*Forms ์ฑ„์šฐ๊ธฐ ์ ˆ์ฐจ:* +1. =check_fillable_fields.py= - ์ฑ„์šธ ์ˆ˜ ์žˆ๋Š” ํ•„๋“œ ํ™•์ธ +2. =extract_form_field_info.py= - ํ•„๋“œ ์ •๋ณด JSON ์ถ”์ถœ +3. =convert_pdf_to_images.py= - PDF โ†’ PNG ๋ณ€ํ™˜ +4. Bounding box ๋ถ„์„ (์ด๋ฏธ์ง€ ์ขŒํ‘œ) +5. =create_validation_image.py= - ๊ฒ€์ฆ ์ด๋ฏธ์ง€ ์ƒ์„ฑ +6. =fill_fillable_fields.py= - ์‹ค์ œ ์ฑ„์šฐ๊ธฐ + +**์ด 8๊ฐœ Python ์Šคํฌ๋ฆฝํŠธ!** + +#+begin_quote +์ด๊ฒƒ์ด Skill์ธ ์ด์œ : +Claude ํ˜ผ์ž ๋งค๋ฒˆ ์ด ์ ˆ์ฐจ๋ฅผ ์ˆ˜ํ–‰? โ†’ ํ† ํฐ ํญ๋ฐœ + ์˜ค๋ฅ˜ ๋งŽ์Œ +Skill๋กœ ๋ฒˆ๋“ค? โ†’ ์•ˆ์ •์ , ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅ +#+end_quote + +*** XLSX Skills์˜ CRITICAL ๊ทœ์น™ + +#+begin_example +MUST: +- Zero Formula Errors (ํ•„์ˆ˜) +- NEVER hardcode values, ALWAYS use formulas +- Color coding (Blue=input, Black=formula, Green=internal link...) +- recalc.py๋กœ LibreOffice ์‹คํ–‰ํ•˜์—ฌ ๊ณต์‹ ์žฌ๊ณ„์‚ฐ +#+end_example + +#+begin_quote +์ด๊ฒƒ์ด Skill์ธ ์ด์œ : +Excel์€ ๋‹จ์ˆœ ๋ฐ์ดํ„ฐ ํŒŒ์ผ์ด ์•„๋‹˜ +๋™์  ๊ณ„์‚ฐ ์‹œ์Šคํ…œ, ์—…๋ฐ์ดํŠธ ๊ฐ€๋Šฅํ•ด์•ผ ํ•จ +Claude ํ˜ผ์ž? โ†’ ๊ณต์‹ ์˜ค๋ฅ˜, ์—…๋ฐ์ดํŠธ ๋ถˆ๊ฐ€ +Skill? โ†’ ๊ฒ€์ฆ๋œ ์ ˆ์ฐจ, LibreOffice ์ž๋™ ์‹คํ–‰ +#+end_quote + +*** DOCX Skills์˜ Tracked Changes + +#+begin_example +Redlining workflow: +- OOXML ๊ตฌ์กฐ ์ดํ•ด +- Tracked changes ๋ณด์กด +- Comments ์ฒ˜๋ฆฌ +- Pandoc ์˜ต์…˜ (--track-changes=all) +#+end_example + +* Denote-Org Skills๊ฐ€ ํ•„์š”ํ•œ ์ด์œ  + +** ๋ฌธ์ œ ๋ถ„์„: 3,000+ ํŒŒ์ผ Denote PKM + +*** ๋ฌธ์ œ 1: Denote ํŒŒ์ผ๋ช… = ํŠน์ˆ˜ ๋„๋ฉ”์ธ ์ง€์‹ + +#+begin_example +20251021T105353--ํ”„๋กœ์ ํŠธ-์ œ๋ชฉ__llmlog_denote_orgmode.org +โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ””โ”€ ํƒœ๊ทธ (underscore separated) +โ”‚ โ””โ”€ ํ•œ๊ธ€ ์ œ๋ชฉ (hyphen separated) +โ””โ”€ Timestamp (Denote ID, ์œ ์ผ ์‹๋ณ„์ž) +#+end_example + +**Without Skill:** +- Claude: "์ด๊ฒŒ ๋ฌด์Šจ ํ˜•์‹์ด์ง€?" ๋งค๋ฒˆ ์ถ”์ธก +- ํŒŒ์ผ๋ช… ํŒŒ์‹ฑ ๋กœ์ง ๋งค๋ฒˆ Python/Bash๋กœ ์ƒ์„ฑ +- ํ•œ๊ธ€ ์ œ๋ชฉ ์ฒ˜๋ฆฌ ํ—ท๊ฐˆ๋ฆผ +- โ†’ **ํ† ํฐ ๋‚ญ๋น„, ์˜ค๋ฅ˜ ๋ฐœ์ƒ** + +**With Skill:** +#+begin_src python +# scripts/denote_parser.py (ํ•œ ๋ฒˆ๋งŒ ์ž‘์„ฑ) +def parse_denote_filename(filename): + """ + 20251021T105353--ํ”„๋กœ์ ํŠธ-์ œ๋ชฉ__llmlog_denote.org + โ†’ + { + 'timestamp': '20251021T105353', + 'title': 'ํ”„๋กœ์ ํŠธ ์ œ๋ชฉ', + 'tags': ['llmlog', 'denote'], + 'extension': 'org' + } + """ +#+end_src + +โ†’ **์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅ, ๊ฒ€์ฆ๋จ, ๋น ๋ฆ„** + +*** ๋ฌธ์ œ 2: 3,000 ํŒŒ์ผ ๊ฒ€์ƒ‰ = ๋ณต์žกํ•œ ์ ˆ์ฐจ + +**Without Skill:** +#+begin_src bash +# Claude๊ฐ€ ๋งค๋ฒˆ ์‹คํ–‰: +find ~/org -name "*20251021T105353*" +# ํ•˜์œ„ ๋””๋ ‰ํ† ๋ฆฌ: bib/ meta/ notes/ journal/ llmlog/ office/ configs/ ... +# 3,000 ํŒŒ์ผ ์Šค์บ” โ†’ ๋А๋ฆผ +# ๋งค๋ฒˆ ํ† ํฐ ์†Œ๋ชจ +#+end_src + +**With Skill:** +#+begin_src python +# scripts/denote_finder.py (์บ์‹ฑ ๊ฐ€๋Šฅ) +def find_denote_file(identifier, silos): + """ + ์ธ๋ฑ์Šค ๊ตฌ์ถ• (ํ•œ ๋ฒˆ) + ์ดํ›„ ๊ฒ€์ƒ‰ ์ฆ‰์‹œ ๋ฐ˜ํ™˜ + """ +#+end_src + +โ†’ **ํšจ์œจ์ , ์บ์‹ฑ, ํ™•์žฅ ๊ฐ€๋Šฅ** + +*** ๋ฌธ์ œ 3: ์ง€์‹ ๊ทธ๋ž˜ํ”„ = ๋ณต์žก๋„ ํญ๋ฐœ + +**์‹œ๋‚˜๋ฆฌ์˜ค:** +#+begin_example +User: "20251021T105353์™€ ์—ฐ๊ฒฐ๋œ ๋ชจ๋“  ํŒŒ์ผ ๋ณด์—ฌ์ค˜" +#+end_example + +**Without Skill:** +1. ํŒŒ์ผ ์ฝ๊ธฐ +2. `[[denote:20251021T074500]]` links ์ฐพ๊ธฐ +3. ๊ฐ ID๋งˆ๋‹ค find ์‹คํ–‰ (๋ฌธ์ œ 2 ๋ฐ˜๋ณต) +4. 2-hop ์—ฐ๊ฒฐ? 3-hop? +5. โ†’ **ํ† ํฐ ํญ๋ฐœ, ๋А๋ฆผ** + +**With Skill:** +#+begin_src python +# scripts/denote_graph.py +def build_knowledge_graph(silo): + """ + ํ•œ ๋ฒˆ ๊ตฌ์ถ•, ์บ์‹ฑ + graph = { + '20251021T105353': { + 'links_to': ['20251021T074500', ...], + 'linked_from': ['20251020T...', ...], + 'tags': ['llmlog', 'denote'], + 'title': '...' + } + } + """ + +def get_connected_nodes(identifier, hops=2): + """์ฆ‰์‹œ ๋ฐ˜ํ™˜""" +#+end_src + +โ†’ **๊ทธ๋ž˜ํ”„ ์•Œ๊ณ ๋ฆฌ์ฆ˜, ์บ์‹ฑ, ๋น ๋ฆ„** + +*** ๋ฌธ์ œ 4: Literate Programming = Emacs ๋™์ž‘ ์žฌํ˜„ + +**์‹œ๋‚˜๋ฆฌ์˜ค:** +#+begin_example +User: "org ํŒŒ์ผ ์ฝ”๋“œ ๋ธ”๋ก ์‹คํ–‰ํ•ด์ค˜" +#+end_example + +Org-mode ์ฝ”๋“œ ๋ธ”๋ก: +#+begin_src org +,#+name: example-block +,#+begin_src bash :tangle /tmp/script.sh :results output +echo "Hello from org-babel" +,#+end_src + +,#+RESULTS: +: Hello from org-babel +#+end_src + +**Without Skill:** +- Claude๊ฐ€ ์ˆ˜๋™์œผ๋กœ `#+begin_src` ์ฐพ๊ธฐ +- `:tangle` ์˜ต์…˜ ํŒŒ์‹ฑ (ํŒŒ์ผ ๊ฒฝ๋กœ ์ถ”์ถœ) +- ์ฝ”๋“œ ์ถ”์ถœ, ์‹คํ–‰ +- `:results` ๋ถ€๋ถ„ ์—…๋ฐ์ดํŠธ +- โ†’ **org ๊ตฌ์กฐ ๊นจ์งˆ ์œ„ํ—˜, ๋ณต์žกํ•จ** + +**With Skill:** +#+begin_src python +# scripts/org_execute.py (Emacs org-babel ์žฌํ˜„) +def execute_org_blocks(filepath): + """ + 1. orgparse๋กœ ๊ตฌ์กฐ ํŒŒ์‹ฑ + 2. code blocks ์ฐพ๊ธฐ + 3. :tangle ์˜ต์…˜ ์ฒ˜๋ฆฌ + 4. ์•ˆ์ „ํ•˜๊ฒŒ ์‹คํ–‰ + 5. :results ์—…๋ฐ์ดํŠธ (๊ตฌ์กฐ ๋ณด์กด) + """ +#+end_src + +โ†’ **์•ˆ์ „, Emacs ํ˜ธํ™˜, ์žฌํ˜„ ๊ฐ€๋Šฅ** + +*** ๋ฌธ์ œ 5: Silo ๊ด€๋ฆฌ = ์—ฌ๋Ÿฌ ๋””๋ ‰ํ† ๋ฆฌ + +**์‹œ๋‚˜๋ฆฌ์˜ค:** +#+begin_example +User: "20251021T105353 ํŒŒ์ผ ์–ด๋”” ์žˆ์–ด?" +#+end_example + +**Silos:** +- =~/org/= (3,000+ ํŒŒ์ผ) +- =~/claude-memory/= (AI ๋ฉ”๋ชจ๋ฆฌ) +- =~/repos/*/docs/= (ํ”„๋กœ์ ํŠธ๋ณ„) + +**Without Skill:** +- Claude: "~/org/์— ์žˆ๋‚˜? ์•„๋‹ˆ๋ฉด..." +- ๋งค๋ฒˆ ์—ฌ๋Ÿฌ find ์‹คํ–‰ +- ํ—ท๊ฐˆ๋ฆผ + +**With Skill:** +#+begin_src python +# scripts/denote_silo.py +def find_in_silos(identifier, silos): + """ + ์—ฌ๋Ÿฌ silo ๋™์‹œ ๊ฒ€์ƒ‰ + ์šฐ์„ ์ˆœ์œ„ ์ ์šฉ + ์บ์‹ฑ + """ +#+end_src + +โ†’ **๋ช…ํ™•, ์ž๋™, ๋น ๋ฆ„** + +* Skills vs ํ”„๋กฌํ”„ํŠธ: ๊ฒฐ์ •์  ์ฐจ์ด + +** Skills๊ฐ€ ํ•„์š”ํ•œ ์ผ€์ด์Šค (Anthropic ํŒจํ„ด) + +| Document Skill | ์™œ Skills์ธ๊ฐ€? | ํ•ต์‹ฌ ์Šคํฌ๋ฆฝํŠธ | ๋‹จ์ˆœ ํ”„๋กฌํ”„ํŠธ๋กœ? | +|----------------|---------------|-------------|----------------| +| **PDF** | Forms ์ฑ„์šฐ๊ธฐ ๋ณต์žก | 8๊ฐœ (check, fill, validate...) | โŒ ํ† ํฐ ํญ๋ฐœ | +| **XLSX** | ๊ณต์‹ ์œ ์ง€ ํ•„์ˆ˜ | recalc.py (LibreOffice) | โŒ ๊ณต์‹ ์˜ค๋ฅ˜ | +| **DOCX** | Tracked changes | OOXML ํŒŒ์‹ฑ | โŒ ๊ตฌ์กฐ ์†์ƒ | +| **Denote-Org** | 3,000 ํŒŒ์ผ ๊ทธ๋ž˜ํ”„ | finder, graph, silo | โŒ ๋А๋ฆผ, ์˜ค๋ฅ˜ | + +** ๋‹จ์ˆœ ํ”„๋กฌํ”„ํŠธ๊ฐ€ ๋  ์œ„ํ—˜ + +#+begin_quote +โŒ "Denote ํŒŒ์ผ๋ช…์€ ์ด๋Ÿฐ ํ˜•์‹์ด์•ผ. ํŒŒ์‹ฑํ•ด์ค˜." + โ†’ Claude: ๋งค๋ฒˆ ์ฝ”๋“œ ์ƒ์„ฑ, ํ† ํฐ ๋‚ญ๋น„ + +โŒ "org ํŒŒ์ผ ์ฝ”๋“œ ๋ธ”๋ก ์‹คํ–‰ํ•ด์ค˜." + โ†’ Claude: ๋งค๋ฒˆ ํŒŒ์‹ฑ ๋กœ์ง ์ž‘์„ฑ, ๊ตฌ์กฐ ๊นจ์งˆ ์œ„ํ—˜ + +โŒ "3,000 ํŒŒ์ผ์—์„œ ์ด ID ์ฐพ์•„์ค˜." + โ†’ Claude: find ๋ฐ˜๋ณต ์‹คํ–‰, ๋А๋ฆผ +#+end_quote + +** Skills๋กœ ํ•ด๊ฒฐ + +#+begin_quote +โœ… **Domain Knowledge ๋ฒˆ๋“ค** + - Denote ํŒŒ์ผ๋ช… ๊ทœ์น™ + - Frontmatter ์ŠคํŽ™ + - Links ๋ฌธ๋ฒ• + +โœ… **Executable Scripts** + - denote_parser.py (๊ฒ€์ฆ๋จ) + - denote_finder.py (์บ์‹ฑ) + - org_execute.py (์•ˆ์ „) + +โœ… **Procedural Knowledge** + - "์ด๋Ÿฐ ๊ฒฝ์šฐ ์ด๋ ‡๊ฒŒ ํ•œ๋‹ค" + - PDF Forms์ฒ˜๋Ÿผ ๋ณต์žกํ•œ ์ ˆ์ฐจ + - ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ํŒจํ„ด + +โœ… **Performance** + - ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ (ํ† ํฐ ์ƒ์„ฑ ์•„๋‹˜) + - ์บ์‹ฑ + - ๋ฐฐ์น˜ ์ฒ˜๋ฆฌ +#+end_quote + +* ํ”„๋กœ์ ํŠธ ๋ชฉํ‘œ: Denote PKM์„ Claude์˜ Domain์œผ๋กœ + +** ํ•ต์‹ฌ ๋ชฉํ‘œ + +#+begin_quote +**Denote + Org-mode๋ฅผ Claude๊ฐ€ "๋„ค์ดํ‹ฐ๋ธŒ"๋กœ ๋‹ค๋ฃจ๊ฒŒ ํ•œ๋‹ค** + +PDF/XLSX/DOCX์ฒ˜๋Ÿผ, +Denote-Org๋„ Claude์˜ ์ „๋ฌธ ์˜์—ญ์ด ๋˜๊ฒŒ ํ•œ๋‹ค. +#+end_quote + +** ๊ตฌ์ฒด์  ๋ชฉํ‘œ + +*** 1. Denote Domain Expertise +- ํŒŒ์ผ๋ช… ๊ทœ์น™ ์™„๋ฒฝ ์ดํ•ด +- Frontmatter ์ž๋™ ํŒŒ์‹ฑ +- Links ์ฆ‰์‹œ ํ•ด๊ฒฐ +- Silo ์ž๋™ ๊ด€๋ฆฌ + +*** 2. 3,000+ Files Scale +- ํšจ์œจ์  ๊ฒ€์ƒ‰ (์บ์‹ฑ) +- ์ง€์‹ ๊ทธ๋ž˜ํ”„ ๊ตฌ์ถ• +- ๋ฐฐ์น˜ ์ฒ˜๋ฆฌ + +*** 3. Literate Programming +- Emacs org-babel ํ˜ธํ™˜ +- ์•ˆ์ „ํ•œ ์ฝ”๋“œ ์‹คํ–‰ +- ๊ตฌ์กฐ ๋ณด์กด + +*** 4. Org-mode Foundation +- Heading, property, timestamp +- Table ์—ฐ์‚ฐ +- Export (markdown, PDF, HTML) + +** ์ฐจ๋ณ„ํ™” ์š”์†Œ + +| ๊ธฐ์กด ์ ‘๊ทผ | ์ด ํ”„๋กœ์ ํŠธ | +|----------|-----------| +| Org-mode ์ผ๋ฐ˜ ์ง€์› | **Denote ํŠนํ™”** | +| ๋‹จ์ˆœ ํŒŒ์‹ฑ | **์šด์˜ ์‹œ์Šคํ…œ** | +| ํ† ํฐ ๊ธฐ๋ฐ˜ | **์Šคํฌ๋ฆฝํŠธ ๊ธฐ๋ฐ˜** | +| ์žฅ๋‚œ๊ฐ ์˜ˆ์ œ | **3,000+ ํŒŒ์ผ ๊ฒ€์ฆ** | + +* 9๊ฐœ ๋ ˆ์ด์–ด ์‹œ์Šคํ…œ๊ณผ์˜ ์—ฐ๊ฒฐ + +** Layer 3: Knowledge Management + +์ด ํ”„๋กœ์ ํŠธ๋Š” Layer 3์˜ ํ•ต์‹ฌ ๊ตฌ์„ฑ ์š”์†Œ: + +#+begin_example +Layer 3: Knowledge Management +โ”œโ”€โ”€ Zotero (156k+ lines ์„œ์ง€ ๋ฐ์ดํ„ฐ) +โ””โ”€โ”€ Denote-Org Skills (3,000+ org ํŒŒ์ผ) ๐Ÿ†• +#+end_example + +** ๋‹ค๋ฅธ ๋ ˆ์ด์–ด์™€์˜ ์ƒํ˜ธ์ž‘์šฉ + +*** Layer 4 (claude-config)์™€ ํ†ตํ•ฉ +- =~/claude-memory/= silo ๊ด€๋ฆฌ +- PARA ๋ฐฉ๋ฒ•๋ก  (Projects/Areas/Resources/Archives) +- Denote ํ˜•์‹์œผ๋กœ AI ๋ฉ”๋ชจ๋ฆฌ ์ €์žฅ + +*** Layer 3.5 (embedding-config)์™€ ํ†ตํ•ฉ +- Org ํŒŒ์ผ ๋ฒกํ„ฐํ™” +- org-db-v3 RAG ํŒŒ์ดํ”„๋ผ์ธ +- ์˜๋ฏธ๋ก ์  ๊ฒ€์ƒ‰ + +*** Layer 5a (memex-kb)์™€ ํ†ตํ•ฉ +- Markdown โ†’ Org ๋ณ€ํ™˜ +- Denote ํŒŒ์ผ๋ช… ์ƒ์„ฑ +- ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ๋Œ€์ƒ + +*** Layer 7 (notes)๊ณผ ํ†ตํ•ฉ +- Org โ†’ Markdown export +- ๋””์ง€ํ„ธ ๊ฐ€๋“  ํผ๋ธ”๋ฆฌ์‹ฑ +- Quartz 4 ์—ฐ๋™ + +* ์ž‘์—… ๋กœ๊ทธ + +** [2025-10-21 Tue 07:00~08:00] Anthropic Life Sciences ๋ถ„์„ + +*** ์ž‘์—… ๋‚ด์šฉ +1. Life Sciences ์˜์ƒ ๋‚ด์šฉ ๋ถ„์„ +2. 9๊ฐœ ๋ ˆ์ด์–ด ์‹œ์Šคํ…œ ๋ฌธ์„œ ํ™•์ธ +3. embedding-config ๋ฐœ๊ฒฌ (Layer 3.5) +4. ์—ฐ๊ด€์„ฑ ๋ถ„์„ + +*** ํ•ต์‹ฌ ํ†ต์ฐฐ +- embedding-config = Life Sciences์˜ PubMed ํŒจํ„ด +- 9๊ฐœ ๋ ˆ์ด์–ด = Personal Life Sciences + +*** ๊ฒฐ๊ณผ๋ฌผ +- =~/org/llmlog/20251021T074500--anthropic-life-sciences์™€-tools-for-life-ํŒจ๋Ÿฌ๋‹ค์ž„-aions-ํด๋Ÿฝ-๋น„์ „__*.org= + +** [2025-10-21 Tue 10:00~11:00] Org-mode ์ „ํ™˜ ํ”„๋กœ์ ํŠธ + +*** ์ž‘์—… ๋‚ด์šฉ +1. Markdown โ†’ Org-mode ์ „ํ™˜ ์ง„ํ–‰ ์ค‘ +2. Literate programming ํ•„์š”์„ฑ ์ธ์‹ +3. =~/org/llmlog/20251021T105353--ํ”„๋กœ์ ํŠธ-denote-๋ฌธ์„œ-org-mode-์ „ํ™˜__*.org= ์ƒ์„ฑ + +** [2025-10-21 Tue 11:00~11:30] Skills ๋ณธ์งˆ ํŒŒ์•… + +*** ์ž‘์—… ๋‚ด์šฉ +1. Anthropic Skills ๋ฆฌํฌ 2๊ฐœ ํด๋ก  + - =~/repos/3rd/snthropics-skills= + - =~/repos/3rd/awesome-claude-skills= + +2. Document Skills ๋ถ„์„ + - PDF: 8๊ฐœ ์Šคํฌ๋ฆฝํŠธ + - XLSX: CRITICAL ๊ทœ์น™๋“ค + - DOCX: Tracked changes + +3. WebFetch: Anthropic ๊ณต์‹ ๋ธ”๋กœ๊ทธ ๋ถ„์„ + +*** ํ•ต์‹ฌ ์งˆ๋ฌธ (์‚ฌ์šฉ์ž) +#+begin_quote +"Skills๋ฅผ Anthropic์ด ๋งŒ๋“  ์ด์œ ๊ฐ€ ์žˆ๊ณ  ํ•„์š”ํ•œ ์ผ€์ด์Šค๊ฐ€ ์žˆ์„๊ฑฐ์•ผ. +๊ฑฐ๊ธฐ์— ์ง‘์ค‘ํ•ด์„œ Skill๊ฐ€ ๋˜์–ด์•ผํ•ด." +#+end_quote + +โ†’ ํ”„๋กœ์ ํŠธ ๋ฐฉํ–ฅ ์ „ํ™˜! + +** [2025-10-21 Tue 11:30~ํ˜„์žฌ] Denote-Org Skills ์‹œ์ž‘ + +*** ์ž‘์—… ๋‚ด์šฉ +1. โœ… =~/repos/gh/orgmode-skills= ํด๋” ์ƒ์„ฑ +2. โœ… Git ์ดˆ๊ธฐํ™” ์ค€๋น„ +3. โœ… README.md ์ž‘์„ฑ (์˜์–ด) +4. โœ… README-KO.md ์ž‘์„ฑ (ํ•œ๊ธ€) +5. โœ… ์ด ๋ฌธ์„œ ์ž‘์„ฑ (์ž‘์—… ๋กœ๊ทธ) + +*** ํ•ต์‹ฌ ๊ฒฐ์ • + +**** ์ด๋ฆ„: `orgmode-skills` (ํด๋”) + `denote-org` (skill name) +- ํด๋”๋ช…: ์ง๊ด€์  (orgmode-skills) +- Skill ์ด๋ฆ„: ์šฐ์„ ์ˆœ์œ„ (denote-org, Denote๊ฐ€ ํ•ต์‹ฌ) + +**** ๊ตฌ์กฐ: PDF/XLSX ํŒจํ„ด ๋”ฐ๋ฆ„ +- SKILL.md (๋ฉ”์ธ) +- denote-core.md, denote-silo.md (์ƒ์„ธ) +- scripts/ (Python) +- docs/ (Denote ํ˜•์‹ ์ž‘์—… ๋กœ๊ทธ) + +**** ๋ฉ”์‹œ์ง€: "Skills โ‰  Prompt" +- Onboarding guide +- Procedural knowledge +- Executable scripts +- **NOT a converter, AN operational system** + +* 0.1 ๋ฒ„์ „ ์ฒดํฌ๋ฆฌ์ŠคํŠธ + +** Phase 1: ๊ธฐ๋ฐ˜ (ํ˜„์žฌ) +- [X] ํ”„๋กœ์ ํŠธ ํด๋” ์ƒ์„ฑ (~/repos/gh/orgmode-skills) +- [X] README.md (์˜์–ด) +- [X] README-KO.md (ํ•œ๊ธ€) +- [X] docs/20251021T113500--*.org (์ด ๋ฌธ์„œ) +- [ ] LICENSE (Apache 2.0) +- [ ] .gitignore (Python, Emacs) +- [ ] SKILL.md (Denote ์ค‘์‹ฌ) + +** Phase 2: Denote Core +- [ ] scripts/denote_parser.py (ํŒŒ์ผ๋ช… ํŒŒ์‹ฑ) +- [ ] scripts/denote_links.py (๋งํฌ ํ•ด๊ฒฐ) +- [ ] scripts/denote_silo.py (silo ๊ด€๋ฆฌ) +- [ ] denote-core.md (Denote ๋ช…์„ธ) +- [ ] denote-silo.md (Silo ๊ฐ€์ด๋“œ) +- [ ] ํ…Œ์ŠคํŠธ (3,000+ ํŒŒ์ผ) + +** Phase 3: Knowledge Graph +- [ ] scripts/denote_graph.py (๊ทธ๋ž˜ํ”„ ๊ตฌ์ถ•) +- [ ] denote-knowledge-graph.md (๋ฌธ์„œํ™”) +- [ ] ์„ฑ๋Šฅ ํ…Œ์ŠคํŠธ (์บ์‹ฑ, ์ธ๋ฑ์‹ฑ) + +** Phase 4: Org-mode Base +- [ ] scripts/org_parser.py (orgparse) +- [ ] scripts/org_execute.py (์ฝ”๋“œ ๋ธ”๋ก) +- [ ] scripts/org_export.py (export) +- [ ] orgmode-base.md (๋ฌธ์„œํ™”) +- [ ] literate.md (Literate programming) + +** Phase 5: 0.1 Release +- [ ] requirements.txt +- [ ] examples/ (๊ธฐ๋ณธ, literate, denote) +- [ ] ์ „์ฒด ํ…Œ์ŠคํŠธ +- [ ] Git commit & push +- [ ] GitHub Public ์ „ํ™˜ +- [ ] ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ณต์œ  + +* ๋‹ค์Œ ๋‹จ๊ณ„ + +** ์ฆ‰์‹œ ์‹คํ–‰ +1. LICENSE ํŒŒ์ผ (Apache 2.0) +2. .gitignore +3. Git ์ดˆ๊ธฐํ™” ๋ฐ ์ฒซ ์ปค๋ฐ‹ +4. SKILL.md ์ž‘์„ฑ ์‹œ์ž‘ + +** ๋‹จ๊ธฐ (1์ฃผ) +- Denote Core ์Šคํฌ๋ฆฝํŠธ ๊ตฌํ˜„ +- ๊ธฐ๋ณธ ๋ฌธ์„œํ™” +- ๋กœ์ปฌ ํ…Œ์ŠคํŠธ + +** ์ค‘๊ธฐ (2์ฃผ) +- Knowledge Graph ๊ตฌํ˜„ +- Org-mode ๊ธฐ๋Šฅ ์ถ”๊ฐ€ +- 0.1 ๋ฆด๋ฆฌ์ฆˆ + +** ์žฅ๊ธฐ +- ์ปค๋ฎค๋‹ˆํ‹ฐ ํ”ผ๋“œ๋ฐฑ +- Anthropic Skills ์ƒํƒœ๊ณ„ ๊ธฐ์—ฌ +- awesome-claude-skills PR + +* ํ•ต์‹ฌ ํ†ต์ฐฐ + +** Skills์˜ ๋ณธ์งˆ + +#+begin_quote +**Skills = Domain Procedural Knowledge + Executable Scripts** + +ํ”„๋กฌํ”„ํŠธ: "์ด๋ ‡๊ฒŒ ํ•ด๋ด" (์ผํšŒ์„ฑ) +Skills: "์ด ๋„๋ฉ”์ธ์—์„œ๋Š” ํ•ญ์ƒ ์ด๋ ‡๊ฒŒ ํ•œ๋‹ค" (์žฌ์‚ฌ์šฉ) + +ํ”„๋กฌํ”„ํŠธ: Claude๊ฐ€ ์ฝ”๋“œ ์ƒ์„ฑ +Skills: ๊ฒ€์ฆ๋œ ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ + +ํ”„๋กฌํ”„ํŠธ: ํ† ํฐ ์†Œ๋ชจ +Skills: ํšจ์œจ์„ฑ + +**Skills๋Š” "์‹ ์ž… ์‚ฌ์›์„ ์œ„ํ•œ ์˜จ๋ณด๋”ฉ ๊ฐ€์ด๋“œ"๋‹ค** +#+end_quote + +** Denote-Org Skills์˜ ๊ฐ€์น˜ + +#+begin_quote +**PDF/XLSX๊ฐ€ ๋ณต์žกํ•œ ๋ฌธ์„œ ํฌ๋งท์„ ๋‹ค๋ฃจ๋“ฏ, +Denote-Org๋Š” ๋ณต์žกํ•œ ์ง€์‹ ์‹œ์Šคํ…œ์„ ๋‹ค๋ฃฌ๋‹ค.** + +3,000+ ํŒŒ์ผ ์ง€์‹ ๋ฒ ์ด์Šค๋Š”: +- ๋‹จ์ˆœ ํ…์ŠคํŠธ ํŒŒ์ผ๋“ค์ด ์•„๋‹˜ +- ์ง€์‹ ๊ทธ๋ž˜ํ”„ (Denote links) +- ์—ฌ๋Ÿฌ ๋„๋ฉ”์ธ (silos) +- Literate programming (์‹คํ–‰ ๊ฐ€๋Šฅ) +- ์‚ด์•„์žˆ๋Š” ์‹œ์Šคํ…œ + +**์ด๊ฒƒ์ด Skills๊ฐ€ ํ•„์š”ํ•œ ์ด์œ ๋‹ค.** +#+end_quote + +** Life Sciences ํŒจ๋Ÿฌ๋‹ค์ž„ ์ ์šฉ + +#+begin_quote +Anthropic Life Sciences: +- PubMed (์ˆ˜๋ฐฑ๋งŒ ๋…ผ๋ฌธ) + Claude = Scientific AI + +Denote-Org Skills: +- Denote (3,000+ ํŒŒ์ผ) + Claude = Personal Knowledge AI + +**๊ฐ™์€ ํŒจ๋Ÿฌ๋‹ค์ž„. Biology โ†’ Living ํ™•์žฅ.** +#+end_quote + +* ์ฐธ๊ณ  ์ž๋ฃŒ + +** Anthropic ๋ฆฌ์†Œ์Šค +- [[https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills][Agent Skills Engineering Blog]] +- [[https://support.claude.com/en/articles/12512176-what-are-skills][What are Skills?]] +- [[https://github.com/anthropics/skills][Official Skills Repository]] + +** Denote ๋ฆฌ์†Œ์Šค +- [[https://protesilaos.com/emacs/denote][Denote by Protesilaos Stavrou]] +- [[https://orgmode.org/][Org-mode]] + +** ๊ด€๋ จ ํ”„๋กœ์ ํŠธ +- [[denote:20251015T093311][@ํžฃ: ์‹œ๊ฐ„๊ณผ์ •์‹ ์˜๋ฐฉ -CONFIG ์ƒํƒœ๊ณ„]] +- [[denote:20251021T074500][Anthropic Life Sciences์™€ Tools for Life ํŒจ๋Ÿฌ๋‹ค์ž„]] +- [[denote:20240601T204208][โ€  #์—์ด์•„์ด์˜จ์Šคํด๋Ÿฝ์ธํ„ฐ๋‚ด์‡ผ๋‚ ]] + +* ๋งบ์Œ๋ง + +#+begin_quote +์ด ํ”„๋กœ์ ํŠธ๋Š” ๋‹จ์ˆœํžˆ Org-mode๋ฅผ Claude๊ฐ€ ์ฝ๊ฒŒ ํ•˜๋ ค๋Š” ๊ฒƒ์ด ์•„๋‹™๋‹ˆ๋‹ค. + +**Anthropic์ด ์ƒ๋ช…๊ณผํ•™์—์„œ ์ฆ๋ช…ํ•œ ํŒจ๋Ÿฌ๋‹ค์ž„์„ +๊ฐœ์ธ ์ง€์‹ ๊ด€๋ฆฌ๋กœ ํ™•์žฅํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.** + +Life Sciences (Biology) โ†’ Life Everything (Living) + +PDF/XLSX Skills๊ฐ€ ๋ฌธ์„œ ํฌ๋งท์˜ ์ „๋ฌธ๊ฐ€๋ฅผ ๋งŒ๋“ค๋“ฏ, +Denote-Org Skills๋Š” ๊ฐœ์ธ ์ง€์‹ ์‹œ์Šคํ…œ์˜ ์ „๋ฌธ๊ฐ€๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค. + +**3,000+ ํŒŒ์ผ๋กœ ๊ฒ€์ฆ๋œ ์‹ค์ œ ์‹œ์Šคํ…œ.** +**๋‹จ์ˆœ ๋ณ€ํ™˜๊ธฐ๊ฐ€ ์•„๋‹Œ ์šด์˜ ์‹œ์Šคํ…œ.** +**ํ”„๋กฌํ”„ํŠธ๊ฐ€ ์•„๋‹Œ Skills.** + +์ด๊ฒƒ์ด Tools for Life์˜ ๊ตฌํ˜„์ž…๋‹ˆ๋‹ค. +#+end_quote + +--- + +* ์—์ด์ „ํŠธ ํ”ผ๋“œ๋ฐฑ: Claude Opus 4.1 ๊ฒ€ํ†  + +** [2025-10-21 Tue 11:58] Opus 4.1 ์—์ด์ „ํŠธ์˜ README ๊ฒ€ํ†  + +๋‹ค๋ฅธ ์—์ด์ „ํŠธ(claude-opus-4-1-20250805)๊ฐ€ README๋ฅผ ๊ฒ€ํ† ํ•˜๊ณ  ํ”ผ๋“œ๋ฐฑ ์ œ๊ณต. +Ultrathink ๋ชจ๋“œ ์‚ฌ์šฉ (2,296 tokens). + +** ํ•ต์‹ฌ ํ”ผ๋“œ๋ฐฑ 5๊ฐ€์ง€ + +*** 1. SKILL.md ๊ตฌ์กฐ (์ตœ์šฐ์„ !) + +#+begin_quote +SKILL.md๋Š” Claude๊ฐ€ ์ง์ ‘ ์ฝ๋Š” ํ•ต์‹ฌ ๋ฌธ์„œ + +ํ•„์ˆ˜ ์„น์…˜: +- When to use this skill (ํŠธ๋ฆฌ๊ฑฐ ๋ช…ํ™•ํžˆ) +- What this skill does (๊ธฐ๋Šฅ) +- How to use effectively (ํšจ๊ณผ์  ์‚ฌ์šฉ๋ฒ•) +- Common pitfalls (ํ”ํ•œ ์‹ค์ˆ˜) +#+end_quote + +โ†’ **์‹คํ–‰ ๊ณ„ํš:** SKILL.md ์ž‘์„ฑ ์‹œ ์ด ๊ตฌ์กฐ ํ•„์ˆ˜ ๋ฐ˜์˜ + +*** 2. ํŒŒ์ผ ๊ฒฝ๋กœ ์ฒ˜๋ฆฌ + +#+begin_src python +# โŒ ํ•˜๋“œ์ฝ”๋”ฉ +silo = "~/org/" + +# โœ… ํ™•์žฅ ๊ฐ€๋Šฅ +import os +silo = os.path.expanduser("~/org/") +#+end_src + +โ†’ **์‹คํ–‰ ๊ณ„ํš:** ๋ชจ๋“  ์Šคํฌ๋ฆฝํŠธ์—์„œ os.path.expanduser() ์‚ฌ์šฉ + +*** 3. ๋Œ€์šฉ๋Ÿ‰ ํŒŒ์ผ ์ตœ์ ํ™” (3,000+) + +#+begin_src python +# ์บ์‹ฑ ์ „๋žต +from functools import lru_cache + +@lru_cache(maxsize=128) +def build_knowledge_graph(silo_path): + # ๋น„์šฉ ๋†’์€ ์—ฐ์‚ฐ ์บ์‹ฑ + pass + +# ์ŠคํŠธ๋ฆฌ๋ฐ ์ฒ˜๋ฆฌ +def find_files_generator(pattern): + for file in files: + yield file # ๋ฉ”๋ชจ๋ฆฌ ํšจ์œจ์  +#+end_src + +โ†’ **์‹คํ–‰ ๊ณ„ํš:** denote_graph.py์—์„œ ์บ์‹ฑ ํ•„์ˆ˜, denote_finder.py๋Š” generator ์‚ฌ์šฉ + +*** 4. ์—๋Ÿฌ ๋ณต๊ตฌ ์ „๋žต + +#+begin_src python +# Denote ๋งํฌ ๊นจ์ง ์ฒ˜๋ฆฌ +def resolve_denote_link(link_id): + try: + return find_exact_match(link_id) + except NotFoundError: + # Fallback: ๋ถ€๋ถ„ ๋งค์นญ + return find_partial_match(link_id[:8]) +#+end_src + +โ†’ **์‹คํ–‰ ๊ณ„ํš:** denote_links.py์— fallback ๋กœ์ง ๊ตฌํ˜„ + +*** 5. Claude ์ œํ•œ์‚ฌํ•ญ + +#+begin_example +ํ† ํฐ ์ œํ•œ: ๋Œ€๋Ÿ‰ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ ์š”์•ฝ ํ•„์š” +์‹คํ–‰ ์‹œ๊ฐ„: ํƒ€์ž„์•„์›ƒ ๊ณ ๋ ค +๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ: ๊ทธ๋ž˜ํ”„ ํฌ๊ธฐ ์ œํ•œ +#+end_example + +โ†’ **์‹คํ–‰ ๊ณ„ํš:** ๊ฒฐ๊ณผ ํŽ˜์ด์ง•, ํƒ€์ž„์•„์›ƒ ์ฒ˜๋ฆฌ + +** Edge Cases (๋†“์น˜๊ธฐ ์‰ฌ์šด ๊ฒฝ์šฐ๋“ค) + +1. **Denote ID ์ถฉ๋Œ** - ๊ฐ™์€ ์ดˆ์— ์ƒ์„ฑ๋œ ํŒŒ์ผ +2. **Silo ๊ฒฝ๊ณ„ ๋งํฌ** - ~/org/ โ†’ ~/claude-memory/ +3. **์ˆœํ™˜ ์ฐธ์กฐ** - Knowledge graph์—์„œ +4. **ํ•œ๊ธ€ ์ธ์ฝ”๋”ฉ** - ํŒŒ์ผ๋ช… ์ฒ˜๋ฆฌ +5. **์‹ฌ๋ณผ๋ฆญ ๋งํฌ** - ์‹ค์ œ ๊ฒฝ๋กœ ํ•ด์„ + +โ†’ **์‹คํ–‰ ๊ณ„ํš:** ๊ฐ ์ผ€์ด์Šค๋ณ„ ํ…Œ์ŠคํŠธ ๋ฐ ์ฒ˜๋ฆฌ ๋กœ์ง + +** ์ถ”๊ฐ€ ์ œ์•ˆ ๋ฐ˜์˜ + +*** Incremental Processing +#+begin_src python +def update_graph_incremental(changed_files): + """์ „์ฒด ์žฌ๊ตฌ์„ฑ ๋Œ€์‹  ๋ณ€๊ฒฝ๋ถ„๋งŒ ์—…๋ฐ์ดํŠธ""" + pass +#+end_src + +*** Denote ํŠนํ™” ๊ธฐ๋Šฅ ๊ฐ•ํ™” +- =#+filetags:= ํŒŒ์‹ฑ ์ •ํ™•๋„ +- ๋‚ ์งœ ๋ฒ”์œ„ ๊ฒ€์ƒ‰ (=202510*= ํŒจํ„ด) +- Backlinks (์–‘๋ฐฉํ–ฅ ์ถ”์ ) + +*** Org-babel ํ˜ธํ™˜์„ฑ +- =:results silent/output/value= ์ฒ˜๋ฆฌ +- =:tangle= ๊ฒฝ๋กœ ํ•ด์„ + +*** ํ…Œ์ŠคํŠธ ๋ฐ์ดํ„ฐ์…‹ +#+begin_example +tests/ +โ”œโ”€โ”€ small/ # 10๊ฐœ ํŒŒ์ผ (๋น ๋ฅธ ํ…Œ์ŠคํŠธ) +โ”œโ”€โ”€ medium/ # 100๊ฐœ ํŒŒ์ผ (๊ธฐ๋Šฅ ํ…Œ์ŠคํŠธ) +โ””โ”€โ”€ large/ # 1000+ ํŒŒ์ผ (์„ฑ๋Šฅ ํ…Œ์ŠคํŠธ) +#+end_example + +*** ์„ฑ๋Šฅ ๋ชจ๋‹ˆํ„ฐ๋ง +#+begin_src python +import time +from functools import wraps + +def measure_performance(func): + @wraps(func) + def wrapper(*args, **kwargs): + start = time.time() + result = func(*args, **kwargs) + duration = time.time() - start + if duration > 1.0: + logger.warning(f"{func.__name__} took {duration:.2f}s") + return result + return wrapper +#+end_src + +** ํ”ผ๋“œ๋ฐฑ ์ข…ํ•ฉ ํ‰๊ฐ€ + +#+begin_quote +**Opus 4.1์˜ ํ‰๊ฐ€:** + +"์ด ํ”„๋กœ์ ํŠธ์˜ ๋น„์ „์ด ์ •๋ง ์ข‹๋„ค์š”! +'Life Sciences โ†’ Life Everything' ํŒจ๋Ÿฌ๋‹ค์ž„ ํ™•์žฅ์€ +Anthropic Skills์˜ ๋ณธ์งˆ์„ ์ž˜ ์ดํ•ดํ•œ ์ ‘๊ทผ์ž…๋‹ˆ๋‹ค." +#+end_quote + +** ๋ฐ˜์˜ ๊ณ„ํš + +*** ์ฆ‰์‹œ ๋ฐ˜์˜ (Phase 1) +1. โœ… SKILL.md ๊ตฌ์กฐ ์„ค๊ณ„ (When/What/How/Pitfalls) +2. โœ… ๊ฒฝ๋กœ ์ฒ˜๋ฆฌ ํ‘œ์ค€ํ™” (os.path.expanduser) +3. โœ… Edge cases ๋ฆฌ์ŠคํŠธ ์ž‘์„ฑ + +*** ๋‹จ๊ธฐ ๋ฐ˜์˜ (Phase 2) +4. ์บ์‹ฑ ์ „๋žต (lru_cache) +5. ์—๋Ÿฌ ๋ณต๊ตฌ ๋กœ์ง +6. ํ…Œ์ŠคํŠธ ๋ฐ์ดํ„ฐ์…‹ + +*** ์ค‘๊ธฐ ๋ฐ˜์˜ (Phase 3) +7. ์„ฑ๋Šฅ ๋ชจ๋‹ˆํ„ฐ๋ง +8. Incremental processing +9. Documentation ๊ฐ•ํ™” + +--- + +**์ž‘์„ฑ์ž:** @junghan0611 +**์ตœ์ดˆ ์ž‘์„ฑ:** 2025-10-21T11:35:00+09:00 +**์ตœ์ข… ์—…๋ฐ์ดํŠธ:** 2025-10-21T11:58:00+09:00 +**ํ”ผ๋“œ๋ฐฑ:** Claude Opus 4.1 (2025-10-21T11:58) +**์ƒํƒœ:** ๐ŸŸก ๊ฐœ๋ฐœ ์ค‘ (0.1 ๋ฆด๋ฆฌ์ฆˆ ๋ชฉํ‘œ) diff --git a/skills/junghan0611__org-mode-skills/docs/20251022T120000--skills-์—์ด์ „ํŠธ-ํ•™์Šต-์‹คํ—˜__agent_learning_experiment.org b/skills/junghan0611__org-mode-skills/docs/20251022T120000--skills-์—์ด์ „ํŠธ-ํ•™์Šต-์‹คํ—˜__agent_learning_experiment.org new file mode 100644 index 0000000..a4b11ed --- /dev/null +++ b/skills/junghan0611__org-mode-skills/docs/20251022T120000--skills-์—์ด์ „ํŠธ-ํ•™์Šต-์‹คํ—˜__agent_learning_experiment.org @@ -0,0 +1,420 @@ +#+title: Skills ์—์ด์ „ํŠธ ํ•™์Šต ์‹คํ—˜ +#+date: [2025-10-22 Tue 12:00] +#+filetags: :agent:learning:experiment:skills: +#+identifier: 20251022T120000 + +* Skills ์—์ด์ „ํŠธ ํ•™์Šต ์‹คํ—˜ +:PROPERTIES: +:CUSTOM_ID: skills-์—์ด์ „ํŠธ-ํ•™์Šต-์‹คํ—˜ +:END: + +** ๐ŸŽฏ ์‹คํ—˜ ๋ชฉ์  +:PROPERTIES: +:CUSTOM_ID: ์‹คํ—˜-๋ชฉ์  +:END: + +**์—์ด์ „ํŠธ ํ•™์Šต**: Skills ์—†์ด vs ์žˆ์„ ๋•Œ ์—์ด์ „ํŠธ์˜ ํ–‰๋™ ์ฐจ์ด ๊ด€์ฐฐ + +*** ํ•ต์‹ฌ ๊ฐ€์„ค +:PROPERTIES: +:CUSTOM_ID: ํ•ต์‹ฌ-๊ฐ€์„ค +:END: + +#+begin_quote +Skills๊ฐ€ ์žˆ์œผ๋ฉด ์—์ด์ „ํŠธ๊ฐ€ **๋ช…ํ™•ํ•˜๊ฒŒ ๋‹ค๋ฅด๊ฒŒ ํ–‰๋™**ํ•œ๋‹ค. +์ฐจ์ด๊ฐ€ ๋ช…ํ™•ํ•˜์ง€ ์•Š์œผ๋ฉด Skills๊ฐ€ ๋ถˆํ•„์š”ํ•œ ๊ฒƒ์ด๋‹ค. +#+end_quote + +** ๐Ÿงช ์‹คํ—˜ ์„ค๊ณ„ +:PROPERTIES: +:CUSTOM_ID: ์‹คํ—˜-์„ค๊ณ„ +:END: + +*** ์‹คํ—˜ ์กฐ๊ฑด +:PROPERTIES: +:CUSTOM_ID: ์‹คํ—˜-์กฐ๊ฑด +:END: + +| ์กฐ๊ฑด | ์„ค๋ช… | +|------|------| +| **๋ชจ๋ธ** | Haiku (์šฐ์„ ), Sonnet (๋น„๊ต) | +| **ํ™˜๊ฒฝ** | Claude Code CLI | +| **๋น„๊ต** | Skills ์—†์ด vs Skills ํ™œ์„ฑํ™” | +| **ํ…Œ์ŠคํŠธ** | PDF, XLSX ์ž‘์—… | + +*** ์™œ Haiku ์šฐ์„ ์ธ๊ฐ€? +:PROPERTIES: +:CUSTOM_ID: ์™œ-haiku-์šฐ์„ ์ธ๊ฐ€ +:END: + +- ๋ถ€๋‹ด ์—†์ด ์—ฌ๋Ÿฌ ๋ฒˆ ํ…Œ์ŠคํŠธ ๊ฐ€๋Šฅ +- Haiku๋กœ ๋˜๋ฉด = Skills๊ฐ€ ๊ฐ•๋ ฅํ•œ ๊ฒƒ +- Haiku๋กœ ์•ˆ๋˜๋ฉด = ๋ชจ๋ธ ๋Šฅ๋ ฅ ๋ฌธ์ œ์ผ ์ˆ˜ ์žˆ์Œ + +** ๐Ÿ“‹ ์‹คํ—˜ 1: PDF ์ฒ˜๋ฆฌ +:PROPERTIES: +:CUSTOM_ID: ์‹คํ—˜-1-pdf-์ฒ˜๋ฆฌ +:END: + +*** Step 1-A: Skills ์—†์ด (Baseline) +:PROPERTIES: +:CUSTOM_ID: step-1-a-skills-์—†์ด-baseline +:END: + +*์—์ด์ „ํŠธ๊ฐ€ ์ˆ˜ํ–‰ํ•  ์ž‘์—…*: + +#+begin_src markdown +ํ…Œ์ŠคํŠธ PDF ํŒŒ์ผ(test.pdf)์—์„œ: +1. ์ „์ฒด ํ…์ŠคํŠธ ์ถ”์ถœ +2. ์ฒซ ๋ฒˆ์งธ ํŽ˜์ด์ง€๋งŒ ๋ถ„๋ฆฌ +3. ๋‘ ๊ฐœ์˜ PDF ๋ณ‘ํ•ฉ + +๊ฒฐ๊ณผ๋ฅผ ๋ณด๊ณ ํ•˜์‹œ์˜ค. +#+end_src + +*๊ด€์ฐฐ ํฌ์ธํŠธ*: +- [ ] ์—์ด์ „ํŠธ๊ฐ€ ์–ด๋–ค ๋„๊ตฌ๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๊ฐ€? +- [ ] Python ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ง์ ‘ ์ฝ”๋”ฉํ•˜๋Š”๊ฐ€? +- [ ] ์‹คํ–‰ ๊ฐ€๋Šฅํ•œ ์ฝ”๋“œ๋ฅผ ์ƒ์„ฑํ•˜๋Š”๊ฐ€? +- [ ] ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š”๊ฐ€? + +*ํ•™์Šต ์ผ์ง€*: +#+begin_example +๋ชจ๋ธ: Haiku / Sonnet +๋‚ ์งœ: +๊ฒฐ๊ณผ: +- ์‚ฌ์šฉ ๋„๊ตฌ: +- ์„ฑ๊ณต/์‹คํŒจ: +- ํŠน์ด์‚ฌํ•ญ: +#+end_example + +*** Step 1-B: PDF Skill ํ™œ์„ฑํ™” +:PROPERTIES: +:CUSTOM_ID: step-1-b-pdf-skill-ํ™œ์„ฑํ™” +:END: + +*Skill ์„ค์น˜*: + +#+begin_src bash +# ๋ฐฉ๋ฒ• 1: ๋งˆ์ผ“ํ”Œ๋ ˆ์ด์Šค +/plugin marketplace add anthropics/skills +/plugin install document-skills@anthropic-agent-skills + +# ๋ฐฉ๋ฒ• 2: ๋กœ์ปฌ (์ด๋ฏธ ์žˆ์Œ) +# ~/repos/3rd/snthropics-skills/document-skills/pdf/ +#+end_src + +*์—์ด์ „ํŠธ๊ฐ€ ์ˆ˜ํ–‰ํ•  ์ž‘์—…* (๋™์ผ): + +#+begin_src markdown +PDF skill์„ ์‚ฌ์šฉํ•˜์—ฌ test.pdf์—์„œ: +1. ์ „์ฒด ํ…์ŠคํŠธ ์ถ”์ถœ +2. ์ฒซ ๋ฒˆ์งธ ํŽ˜์ด์ง€๋งŒ ๋ถ„๋ฆฌ +3. ๋‘ ๊ฐœ์˜ PDF ๋ณ‘ํ•ฉ + +๊ฒฐ๊ณผ๋ฅผ ๋ณด๊ณ ํ•˜์‹œ์˜ค. +#+end_src + +*๊ด€์ฐฐ ํฌ์ธํŠธ*: +- [ ] ์—์ด์ „ํŠธ๊ฐ€ PDF skill์„ ์ธ์‹ํ•˜๋Š”๊ฐ€? +- [ ] scripts/ ํด๋”์˜ Python ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๊ฐ€? +- [ ] Step 1-A์™€ ๋‹ค๋ฅธ ์ ‘๊ทผ ๋ฐฉ์‹์ธ๊ฐ€? +- [ ] ๋” ๋น ๋ฅด๊ฑฐ๋‚˜ ์•ˆ์ •์ ์ธ๊ฐ€? + +*ํ•™์Šต ์ผ์ง€*: +#+begin_example +๋ชจ๋ธ: Haiku / Sonnet +๋‚ ์งœ: +๊ฒฐ๊ณผ: +- Skill ์ธ์‹ ์—ฌ๋ถ€: +- ์‚ฌ์šฉํ•œ ์Šคํฌ๋ฆฝํŠธ: +- Step 1-A์™€์˜ ์ฐจ์ด: +- ์„ฑ๊ณต/์‹คํŒจ: +#+end_example + +*** Step 1-C: ๋น„๊ต ๋ถ„์„ +:PROPERTIES: +:CUSTOM_ID: step-1-c-๋น„๊ต-๋ถ„์„ +:END: + +| ๊ธฐ์ค€ | Skills ์—†์ด (1-A) | Skills ์žˆ์„ ๋•Œ (1-B) | +|------|-------------------|---------------------| +| ์„ฑ๊ณต ์—ฌ๋ถ€ | | | +| ์ฝ”๋“œ ํ’ˆ์งˆ | | | +| ์‹คํ–‰ ์‹œ๊ฐ„ | | | +| ์—๋Ÿฌ ์ฒ˜๋ฆฌ | | | +| ์žฌํ˜„์„ฑ | | | + +*๊ฒฐ๋ก *: +- Skills์˜ ์ฐจ์ด๊ฐ€ ๋ช…ํ™•ํ•œ๊ฐ€? [ ] ์˜ˆ [ ] ์•„๋‹ˆ์˜ค +- ์ด์œ : + +** ๐Ÿ“‹ ์‹คํ—˜ 2: XLSX ์ฒ˜๋ฆฌ +:PROPERTIES: +:CUSTOM_ID: ์‹คํ—˜-2-xlsx-์ฒ˜๋ฆฌ +:END: + +*** Step 2-A: Skills ์—†์ด (Baseline) +:PROPERTIES: +:CUSTOM_ID: step-2-a-skills-์—†์ด-baseline +:END: + +*์—์ด์ „ํŠธ๊ฐ€ ์ˆ˜ํ–‰ํ•  ์ž‘์—…*: + +#+begin_src markdown +Excel ํŒŒ์ผ(test.xlsx)์„ ์ƒ์„ฑํ•˜์‹œ์˜ค: +1. 3๊ฐœ ์ปฌ๋Ÿผ (์ด๋ฆ„, ๋‚˜์ด, ์ ์ˆ˜) +2. 5๊ฐœ ํ–‰ ๋ฐ์ดํ„ฐ +3. ์ ์ˆ˜ ํ‰๊ท  ๊ณ„์‚ฐ (์ˆ˜์‹ ์‚ฌ์šฉ) +4. ์ปฌ๋Ÿผ ํ—ค๋” ๋ณผ๋“œ ์ฒ˜๋ฆฌ + +๊ฒฐ๊ณผ๋ฅผ ๋ณด๊ณ ํ•˜์‹œ์˜ค. +#+end_src + +*ํ•™์Šต ์ผ์ง€*: +#+begin_example +๋ชจ๋ธ: Haiku / Sonnet +๋‚ ์งœ: +๊ฒฐ๊ณผ: +- ์ˆ˜์‹์ด ์ž‘๋™ํ•˜๋Š”๊ฐ€? +- ํฌ๋งทํŒ…์ด ์ ์šฉ๋˜๋Š”๊ฐ€? +- ์ƒ์„ฑ ์ฝ”๋“œ: +#+end_example + +*** Step 2-B: XLSX Skill ํ™œ์„ฑํ™” +:PROPERTIES: +:CUSTOM_ID: step-2-b-xlsx-skill-ํ™œ์„ฑํ™” +:END: + +*์—์ด์ „ํŠธ๊ฐ€ ์ˆ˜ํ–‰ํ•  ์ž‘์—…* (๋™์ผ): + +#+begin_src markdown +XLSX skill์„ ์‚ฌ์šฉํ•˜์—ฌ Excel ํŒŒ์ผ ์ƒ์„ฑ: +1. 3๊ฐœ ์ปฌ๋Ÿผ (์ด๋ฆ„, ๋‚˜์ด, ์ ์ˆ˜) +2. 5๊ฐœ ํ–‰ ๋ฐ์ดํ„ฐ +3. ์ ์ˆ˜ ํ‰๊ท  ๊ณ„์‚ฐ (์ˆ˜์‹ ์‚ฌ์šฉ) +4. ์ปฌ๋Ÿผ ํ—ค๋” ๋ณผ๋“œ ์ฒ˜๋ฆฌ + +๊ฒฐ๊ณผ๋ฅผ ๋ณด๊ณ ํ•˜์‹œ์˜ค. +#+end_src + +*๊ด€์ฐฐ ํฌ์ธํŠธ*: +- [ ] recalc.py๊ฐ€ ํ˜ธ์ถœ๋˜๋Š”๊ฐ€? +- [ ] ์ˆ˜์‹ ๊ณ„์‚ฐ์ด ๋” ์ •ํ™•ํ•œ๊ฐ€? +- [ ] LibreOffice ํ†ตํ•ฉ์ด ๋ณด์ด๋Š”๊ฐ€? + +*ํ•™์Šต ์ผ์ง€*: +#+begin_example +๋ชจ๋ธ: Haiku / Sonnet +๋‚ ์งœ: +๊ฒฐ๊ณผ: +- recalc.py ์‚ฌ์šฉ ์—ฌ๋ถ€: +- Step 2-A์™€์˜ ์ฐจ์ด: +#+end_example + +*** Step 2-C: ๋น„๊ต ๋ถ„์„ +:PROPERTIES: +:CUSTOM_ID: step-2-c-๋น„๊ต-๋ถ„์„ +:END: + +| ๊ธฐ์ค€ | Skills ์—†์ด (2-A) | Skills ์žˆ์„ ๋•Œ (2-B) | +|------|-------------------|---------------------| +| ํŒŒ์ผ ์ƒ์„ฑ | | | +| ์ˆ˜์‹ ์ž‘๋™ | | | +| ํฌ๋งทํŒ… | | | +| ์ฝ”๋“œ ๋ณต์žก๋„ | | | + +*๊ฒฐ๋ก *: +- XLSX skill์˜ ๊ฐ€์น˜๊ฐ€ ์žˆ๋Š”๊ฐ€? [ ] ์˜ˆ [ ] ์•„๋‹ˆ์˜ค +- recalc.py์˜ ์—ญํ• : + +** ๐Ÿ“‹ ์‹คํ—˜ 3: ๋ณต์žกํ•œ ์ž‘์—… +:PROPERTIES: +:CUSTOM_ID: ์‹คํ—˜-3-๋ณต์žกํ•œ-์ž‘์—… +:END: + +*** Step 3: PDF ํผ ์ฑ„์šฐ๊ธฐ (๊ณ ๋‚œ๋„) +:PROPERTIES: +:CUSTOM_ID: step-3-pdf-ํผ-์ฑ„์šฐ๊ธฐ-๊ณ ๋‚œ๋„ +:END: + +*์—์ด์ „ํŠธ๊ฐ€ ์ˆ˜ํ–‰ํ•  ์ž‘์—…*: + +#+begin_src markdown +fillable PDF form(form.pdf)์— ๋ฐ์ดํ„ฐ๋ฅผ ์ฑ„์šฐ์‹œ์˜ค: +- Name: "ํ™๊ธธ๋™" +- Age: "30" +- Email: "hong@example.com" + +๊ฒฐ๊ณผ๋ฅผ ๋ณด๊ณ ํ•˜์‹œ์˜ค. +#+end_src + +*Skills ์—†์ด ๊ฒฐ๊ณผ*: +#+begin_example + +#+end_example + +*Skills ์žˆ์„ ๋•Œ ๊ฒฐ๊ณผ*: +#+begin_example +์‚ฌ์šฉ ์Šคํฌ๋ฆฝํŠธ: +- check_fillable_fields.py +- extract_form_field_info.py +- fill_fillable_fields.py +- check_bounding_boxes.py + +#+end_example + +*๊ฒฐ๋ก *: +- ์ด ์ž‘์—…์€ Skills ์—†์ด ๊ฐ€๋Šฅํ•œ๊ฐ€? [ ] ์˜ˆ [ ] ์•„๋‹ˆ์˜ค +- bounding box ๊ณ„์‚ฐ์ด ํ•„์š”ํ•œ๊ฐ€? [ ] ์˜ˆ [ ] ์•„๋‹ˆ์˜ค + +** ๐Ÿ”ฌ ๋ชจ๋ธ๋ณ„ ๋น„๊ต +:PROPERTIES: +:CUSTOM_ID: ๋ชจ๋ธ๋ณ„-๋น„๊ต +:END: + +*** Haiku vs Sonnet +:PROPERTIES: +:CUSTOM_ID: haiku-vs-sonnet +:END: + +| ์ž‘์—… | Haiku (Skills ์—†์ด) | Haiku (Skills ์žˆ์Œ) | Sonnet (Skills ์—†์ด) | Sonnet (Skills ์žˆ์Œ) | +|------|---------------------|---------------------|---------------------|---------------------| +| PDF ํ…์ŠคํŠธ ์ถ”์ถœ | | | | | +| PDF ๋ณ‘ํ•ฉ | | | | | +| XLSX ์ƒ์„ฑ | | | | | +| PDF ํผ ์ฑ„์šฐ๊ธฐ | | | | | + +*์ธ์‚ฌ์ดํŠธ*: +- Haiku๋กœ Skills๊ฐ€ ์ž‘๋™ํ•˜๋Š”๊ฐ€? +- Sonnet๊ณผ ์ฐจ์ด๊ฐ€ ์–ผ๋งˆ๋‚˜ ๋‚˜๋Š”๊ฐ€? +- Skills๊ฐ€ ๋ชจ๋ธ ๋Šฅ๋ ฅ์„ ๋ณด์™„ํ•˜๋Š”๊ฐ€? + +** ๐ŸŽ“ claude-memory์™€์˜ ์ฐจ์ด +:PROPERTIES: +:CUSTOM_ID: claude-memory์™€์˜-์ฐจ์ด +:END: + +*** ์‹คํ—˜ 4: Denote ํŒŒ์ผ ์ฐพ๊ธฐ +:PROPERTIES: +:CUSTOM_ID: ์‹คํ—˜-4-denote-ํŒŒ์ผ-์ฐพ๊ธฐ +:END: + +*์—์ด์ „ํŠธ๊ฐ€ ์ˆ˜ํ–‰ํ•  ์ž‘์—…*: + +#+begin_src markdown +~/org/llmlog/ ์—์„œ "skills" ํƒœ๊ทธ๊ฐ€ ์žˆ๋Š” ํŒŒ์ผ์„ ๋ชจ๋‘ ์ฐพ์œผ์‹œ์˜ค. +#+end_src + +*ํ˜„์žฌ ๋ฐฉ์‹ (claude-memory + CLAUDE.md)*: +#+begin_example +๊ฒฐ๊ณผ: +- ์‚ฌ์šฉ ๋„๊ตฌ: Glob, Grep +- ์†Œ์š” ์‹œ๊ฐ„: +- ํ† ํฐ ์‚ฌ์šฉ: +#+end_example + +*๋งŒ์•ฝ denote-org skill์ด ์žˆ๋‹ค๋ฉด*: +#+begin_example +์˜ˆ์ƒ: +- denote_finder.py --tags skills +- ์บ์‹ฑ๋œ ๊ฒฐ๊ณผ +- ํ† ํฐ ์ตœ์ ํ™”? +#+end_example + +*์งˆ๋ฌธ*: +- [ ] Glob/Grep์œผ๋กœ ์ถฉ๋ถ„ํ•œ๊ฐ€? +- [ ] denote_finder.py๊ฐ€ ๋” ๋น ๋ฅธ๊ฐ€? +- [ ] 3,000+ ํŒŒ์ผ์—์„œ ์ฐจ์ด๊ฐ€ ๋‚˜๋Š”๊ฐ€? +- [ ] ๋ณต์žกํ•œ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด ํ•„์š”ํ•œ๊ฐ€? + +** ๐Ÿ“Š ์ตœ์ข… ํŒ๋‹จ ํ”„๋ ˆ์ž„์›Œํฌ +:PROPERTIES: +:CUSTOM_ID: ์ตœ์ข…-ํŒ๋‹จ-ํ”„๋ ˆ์ž„์›Œํฌ +:END: + +*** Skills ํ•„์š”์„ฑ ์ฒดํฌ๋ฆฌ์ŠคํŠธ +:PROPERTIES: +:CUSTOM_ID: skills-ํ•„์š”์„ฑ-์ฒดํฌ๋ฆฌ์ŠคํŠธ +:END: + +*PDF/XLSX Skills ๊ฒ€์ฆ*: +- [ ] Skills ์—†์ด vs ์žˆ์„ ๋•Œ **๋ช…ํ™•ํ•œ ์ฐจ์ด**๊ฐ€ ์žˆ๋‹ค +- [ ] ๋ณต์žกํ•œ ์•Œ๊ณ ๋ฆฌ์ฆ˜ (bounding box ์ˆ˜์ค€)์ด ํ•„์š”ํ•˜๋‹ค +- [ ] ์™ธ๋ถ€ ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰์ด ํ•„์ˆ˜์ ์ด๋‹ค +- [ ] ๋‹จ์ˆœ ํ”„๋กฌํ”„ํŠธ๋กœ ๋ถˆ๊ฐ€๋Šฅํ•œ ์ž‘์—…์ด๋‹ค +- [ ] Haiku ๋ชจ๋ธ์—์„œ๋„ ์ž‘๋™ํ•œ๋‹ค + +*org-mode-skills ๊ฒ€์ฆ*: +- [ ] Denote ํŒŒ์ผ ์ฐพ๊ธฐ๊ฐ€ ๋ณต์žกํ•œ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ธ๊ฐ€? +- [ ] Glob/Grep์œผ๋กœ ์ถฉ๋ถ„ํ•˜์ง€ ์•Š์€๊ฐ€? +- [ ] 3,000+ ํŒŒ์ผ์—์„œ ์„ฑ๋Šฅ ์ฐจ์ด๊ฐ€ ์žˆ๋Š”๊ฐ€? +- [ ] scripts ์—†์ด๋Š” ๋ถˆ๊ฐ€๋Šฅํ•œ ์ž‘์—…์ธ๊ฐ€? +- [ ] claude-memory์™€ ๋ ˆ์ด์–ด๊ฐ€ ๋ถ„๋ฆฌ๋˜๋Š”๊ฐ€? + +*** ๊ฒฝ๊ณ„์„  ์ •์˜ +:PROPERTIES: +:CUSTOM_ID: ๊ฒฝ๊ณ„์„ -์ •์˜ +:END: + +| ์‹œ์Šคํ…œ | ๋ชฉ์  | ๋‚ด์šฉ | ๋ณ€๊ฒฝ ๋นˆ๋„ | ์˜ˆ์‹œ | +|--------|------|------|-----------|------| +| **claude-memory** | | | | | +| **Skills** | | | | | + +*์‹คํ—˜ ํ›„ ์ฑ„์šฐ๊ธฐ* + +** ๐ŸŽฏ ์ตœ์ข… ๊ฒฐ๋ก  +:PROPERTIES: +:CUSTOM_ID: ์ตœ์ข…-๊ฒฐ๋ก  +:END: + +*** org-mode-skills ํ•„์š”ํ•œ๊ฐ€? +:PROPERTIES: +:CUSTOM_ID: org-mode-skills-ํ•„์š”ํ•œ๊ฐ€ +:END: + +*ํŒ๋‹จ*: [ ] ํ•„์š” [ ] ๋ถˆํ•„์š” [ ] ๋ถ€๋ถ„์  + +*์ด์œ *: + +*์‹คํ—˜ ๊ฒฐ๊ณผ ์š”์•ฝ*: +1. PDF/XLSX Skills์˜ ๊ฐ€์น˜: +2. claude-memory์™€์˜ ์ฐจ์ด: +3. Denote ์ž‘์—…์˜ ๋ณต์žก๋„: + +*๋‹ค์Œ ์•ก์…˜*: +- [ ] org-mode-skills ๊ฐœ๋ฐœ ์ง„ํ–‰ +- [ ] CLAUDE.md์— Denote ์„น์…˜ ์ถ”๊ฐ€๋กœ ์ถฉ๋ถ„ +- [ ] ๋‹ค๋ฅธ ์ ‘๊ทผ ๋ฐฉ๋ฒ•: + +** ๐Ÿ“ ์‹คํ—˜ ๋…ธํŠธ +:PROPERTIES: +:CUSTOM_ID: ์‹คํ—˜-๋…ธํŠธ +:END: + +*** ๋‚ ์งœ: +:PROPERTIES: +:CUSTOM_ID: ๋‚ ์งœ +:END: + +*** ๋ฐœ๊ฒฌ: +:PROPERTIES: +:CUSTOM_ID: ๋ฐœ๊ฒฌ +:END: + +*** ์˜๋ฌธ์ : +:PROPERTIES: +:CUSTOM_ID: ์˜๋ฌธ์  +:END: + +*** ์ธ์‚ฌ์ดํŠธ: +:PROPERTIES: +:CUSTOM_ID: ์ธ์‚ฌ์ดํŠธ +:END: + +-------------- + +*Created*: 2025-10-22T12:00 +*Purpose*: ์—์ด์ „ํŠธ ํ•™์Šต - Skills ํšจ๊ณผ ๊ฒ€์ฆ +*Method*: ์‹คํ—˜ ๊ธฐ๋ฐ˜ ๋น„๊ต ๋ถ„์„ diff --git a/skills/junghan0611__org-mode-skills/docs/20251118T120000--claude-skills-๋“ฑ๋ก-๊ด€๋ฆฌ-๊ฐ€์ด๋“œ__skills_claude.org b/skills/junghan0611__org-mode-skills/docs/20251118T120000--claude-skills-๋“ฑ๋ก-๊ด€๋ฆฌ-๊ฐ€์ด๋“œ__skills_claude.org new file mode 100644 index 0000000..94f22b6 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/docs/20251118T120000--claude-skills-๋“ฑ๋ก-๊ด€๋ฆฌ-๊ฐ€์ด๋“œ__skills_claude.org @@ -0,0 +1,85 @@ +#+title: Claude Skills ๋“ฑ๋กยท๊ด€๋ฆฌ ๊ฐ„๋‹จ ๊ฐ€์ด๋“œ +#+date: [2025-11-18 Tue 12:00] +#+filetags: :skills:claude:orgmode: +#+identifier: 20251118T120000 + +* Claude Skills ๋“ฑ๋กยท๊ด€๋ฆฌ ๊ฐ€์ด๋“œ :WORKLOG: + +์ด ๋ฌธ์„œ๋Š” Anthropic ๊ณต์‹ skills ์„ธํŠธ์™€ ๊ฐœ์ธ orgmode-skills ์„ธํŠธ๋ฅผ +Claude Code์—์„œ ์–ด๋–ป๊ฒŒ ๋“ฑ๋กยท์„ค์น˜ํ•˜๋Š”์ง€ ์ตœ์†Œ ์ ˆ์ฐจ๋งŒ ์ •๋ฆฌํ•œ ๋ฉ”๋ชจ์ž…๋‹ˆ๋‹ค. + +** 1. Anthropic ๊ณต์‹ skills (anthropic-agent-skills) + +๊ณต์‹ ์˜ˆ์ œ/๋ฌธ์„œ ์Šคํ‚ฌ ๋ฆฌํฌ: +- ๋กœ์ปฌ ๊ฒฝ๋กœ: =/home/goqual/repos/3rd/skills= +- ํ•ต์‹ฌ ํŒŒ์ผ: =.claude-plugin/marketplace.json= + - name: =anthropic-agent-skills= + - plugins: + - =document-skills= + - =example-skills= + +Claude Code์—์„œ ๋งˆ์ผ“ํ”Œ๋ ˆ์ด์Šค ๋“ฑ๋ก: + +#+begin_example +/plugin marketplace add anthropics/skills +#+end_example + +๊ทธ ๋‹ค์Œ ์‹ค์ œ ์Šคํ‚ฌ ๋ฒˆ๋“ค ์„ค์น˜: + +#+begin_example +/plugin install document-skills@anthropic-agent-skills +/plugin install example-skills@anthropic-agent-skills +#+end_example + +- =document-skills@anthropic-agent-skills= โ†’ PDF/XLSX/DOCX/PPTX ๋ฌธ์„œ ์Šคํ‚ฌ ์„ธํŠธ +- =example-skills@anthropic-agent-skills= โ†’ algorithmic-art, mcp-builder ๋“ฑ ์˜ˆ์ œ ์Šคํ‚ฌ ์„ธํŠธ + +** 2. ๊ฐœ์ธ orgmode-skills ๋งˆ์ผ“ํ”Œ๋ ˆ์ด์Šค (junghan-skills) + +๊ฐœ์ธ Denote/Org + ๋ฌธ์„œ ์Šคํ‚ฌ ๋ฌถ์Œ: +- ๋ฆฌํฌ: =/home/goqual/repos/gh/orgmode-skills= +- ์Šคํ‚ฌ: ๋ฃจํŠธ์— =SKILL.md= (name: =denote-org=) +- ๋งˆ์ผ“ํ”Œ๋ ˆ์ด์Šค ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ: + - =.claude-plugin/marketplace.json= + - name: =junghan-skills= + - plugins: + - =denote-org-pack= + - skills: + - =./= (denote-org) + - =../skills/document-skills/pdf= + - =../skills/document-skills/xlsx= + +Claude Code์—์„œ ๋งˆ์ผ“ํ”Œ๋ ˆ์ด์Šค ๋“ฑ๋ก: + +#+begin_example +/plugin marketplace add /home/goqual/repos/gh/orgmode-skills +#+end_example + +๊ฐœ์ธ ์Šคํ‚ฌ ๋ฒˆ๋“ค ์„ค์น˜: + +#+begin_example +/plugin install denote-org-pack@junghan-skills +#+end_example + +์ด ํ•œ ๋ฒˆ์œผ๋กœ ๋‹ค์Œ์ด ํ•จ๊ป˜ ํ™œ์„ฑํ™”๋จ: +- =denote-org= : Denote/org-mode PKM ์Šคํ‚ฌ +- =pdf= : Anthropic PDF ์Šคํ‚ฌ +- =xlsx= : Anthropic XLSX ์Šคํ‚ฌ + +** 3. ์„ธ์…˜ ์‹œ์ž‘ ์‹œ ์ตœ์†Œ ์ปค๋งจ๋“œ ์š”์•ฝ + +์ƒˆ Claude Code ์„ธ์…˜์—์„œ org + ๋ฌธ์„œ ์Šคํ‚ฌ ์„ธํŠธ๋ฅผ ์“ฐ๊ณ  ์‹ถ์„ ๋•Œ: + +1) ํ•œ ๋ฒˆ๋งŒ ํ•ด๋‘๋ฉด ๋˜๋Š” ๊ฒƒ (์ด๋ฏธ ์™„๋ฃŒ๋จ): + - =/plugin marketplace add anthropics/skills= + - =/plugin marketplace add /home/goqual/repos/gh/orgmode-skills= + +2) ๊ฐ ์„ธ์…˜์—์„œ ์‹คํ–‰ํ•  ๊ฒƒ: + +#+begin_example +/plugin install document-skills@anthropic-agent-skills ;; ๊ณต์‹ ๋ฌธ์„œ ์Šคํ‚ฌ ์„ธํŠธ +/plugin install denote-org-pack@junghan-skills ;; ๊ฐœ์ธ orgmode + PDF/XLSX ์„ธํŠธ +#+end_example + +์ดํ›„ Denote/Org ๊ด€๋ จ ์ž‘์—…์—์„œ๋Š” ๋จผ์ € =denote-org= ์Šคํ‚ฌ์„ ๊ฐ€์ •ํ•˜๊ณ , +PDF/XLSX ํŽธ์ง‘ยท๋ถ„์„์ด ํ•„์š”ํ•  ๋•Œ๋Š” =document-skills= ๋ฅผ ํ•จ๊ป˜ ํ™œ์šฉํ•˜๋Š” ๊ฒƒ์„ ๊ธฐ๋ณธ ์ „๋žต์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค. diff --git a/skills/junghan0611__org-mode-skills/docs/20251118T121000--opencode์—์„œ-glg-skills-ํ™œ์šฉ-๊ฐ€์ด๋“œ__skills_opencode.org b/skills/junghan0611__org-mode-skills/docs/20251118T121000--opencode์—์„œ-glg-skills-ํ™œ์šฉ-๊ฐ€์ด๋“œ__skills_opencode.org new file mode 100644 index 0000000..3aa32dd --- /dev/null +++ b/skills/junghan0611__org-mode-skills/docs/20251118T121000--opencode์—์„œ-glg-skills-ํ™œ์šฉ-๊ฐ€์ด๋“œ__skills_opencode.org @@ -0,0 +1,110 @@ +#+title: OpenCode์—์„œ glg-skills ํ™œ์šฉ ๊ฐ€์ด๋“œ +#+date: [2025-11-18 Tue 12:10] +#+filetags: :skills:glg:opencode: +#+identifier: 20251118T121000 + +* OpenCode์—์„œ glg-skills ํ™œ์šฉ ๊ฐ€์ด๋“œ :WORKLOG: + +์ด ๋ฌธ์„œ๋Š” Claude-Code๊ฐ€ ์•„๋‹Œ **OpenCode ํ™˜๊ฒฝ**(ํ˜„์žฌ ์ด ์—์ด์ „ํŠธ)์—์„œ +`glg-skills`(orgmode-skills)์™€ Anthropic document-skills๋ฅผ ์–ด๋–ป๊ฒŒ ๊ฐ™์ด +ํ™œ์šฉํ• ์ง€์— ๋Œ€ํ•œ ์ตœ์†Œ ์ง€์นจ์ž…๋‹ˆ๋‹ค. + +** 1. ๋ฆฌํฌ ์œ„์น˜์™€ ์—ญํ•  + +- glg-skills (๊ฐœ์ธ ์Šคํ‚ฌ ์„ธํŠธ) + - ๊ฒฝ๋กœ: =/home/goqual/repos/gh/orgmode-skills= + - ํ•ต์‹ฌ: + - ๋ฃจํŠธ =SKILL.md=: =denote-org= ์Šคํ‚ฌ ์ •์˜ + - =scripts/org_headings_toc.py=: org ํ—ค๋”ฉ TOC ์ถ”์ถœ ์Šคํฌ๋ฆฝํŠธ + - =docs/20251118T120000--claude-skills-๋“ฑ๋ก-๊ด€๋ฆฌ-๊ฐ€์ด๋“œ__skills_claude.org=: Claude์šฉ ๊ฐ€์ด๋“œ + +- Anthropic skills (document-skills ํฌํ•จ) + - ๊ฒฝ๋กœ: =/home/goqual/repos/3rd/skills= + - ์ด ๋ฆฌํฌ ์•ˆ์˜ =document-skills/= ๋Š” PDF/XLSX/DOCX/PPTX ์ž‘์—… ์ฐธ๊ณ ์šฉ + - OpenCode์—์„œ๋Š” ์—ฌ๊ธฐ ์Šคํฌ๋ฆฝํŠธ/๋ฌธ์„œ๋ฅผ **์ง์ ‘ ํ˜ธ์ถœ/์ฐธ์กฐ**ํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ์‚ฌ์šฉ + +OpenCode์—์„œ๋Š” `/plugin` ์‹œ์Šคํ…œ์ด ์—†์œผ๋ฏ€๋กœ, ์ด ๋‘ ๋ฆฌํฌ๋Š” +"์Šคํ‚ฌ ๋ ˆํผ๋Ÿฐ์Šค + ์Šคํฌ๋ฆฝํŠธ ๋ชจ์Œ" ์œผ๋กœ ์ทจ๊ธ‰ํ•ฉ๋‹ˆ๋‹ค. + +** 2. OpenCode์—์„œ org ํ—ค๋”ฉ ๊ตฌ์กฐ ํ™œ์šฉ + +org ํŒŒ์ผ์„ ๋ถ„์„ํ•  ๋•Œ, ์—์ด์ „ํŠธ์—๊ฒŒ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค: + +1. **ํ—ค๋”ฉ ๊ตฌ์กฐ ๋จผ์ €** + - =scripts/org_headings_toc.py= ๋ฅผ ์‚ฌ์šฉํ•ด TOC ์ƒ์„ฑ + - ์˜ˆ์‹œ (์—์ด์ „ํŠธ๊ฐ€ ๋‚ด๋ถ€์ ์œผ๋กœ ์‹คํ–‰ํ•˜๋Š” bash): + +#+begin_example +python /home/goqual/repos/gh/orgmode-skills/scripts/org_headings_toc.py \ + /home/goqual/repos/gh/orgmode-skills/docs/20251021T113500--denote-org-skills-ํ”„๋กœ์ ํŠธ-์‹œ์ž‘-๋ฐฐ๊ฒฝ-๋ฐ-์ž‘์—…-๋กœ๊ทธ__project_skills_denote_anthropic_worklog.org +#+end_example + + - ์ถœ๋ ฅ ํ˜•์‹: =LEVELTITLE= + - ์˜ˆ: =1\tDenote-Org Skills ํ”„๋กœ์ ํŠธ ์‹œ์ž‘=, =2\tํžˆ์Šคํ† ๋ฆฌ= ... + +2. **ํžˆ์Šคํ† ๋ฆฌ/History ์„น์…˜ ์šฐ์„  ํ™•์ธ** + - TOC ๊ฒฐ๊ณผ ์ค‘ + - =* ํžˆ์Šคํ† ๋ฆฌ=, =* HISTORY=, =* History=, =* ์ž‘์—… ๋กœ๊ทธ=, =* Changelog= ๋“ฑ + - ๋ฒ„์ „/๋ณ€ํ™” ๊ธฐ๋ก ์„น์…˜์„ ๋จผ์ € ์—ด์–ด ์š”์•ฝ + +3. **๊ด€์‹ฌ ์„น์…˜๋งŒ ๋ณธ๋ฌธ ์ฝ๊ธฐ** + - TOC๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ์‹ค์ œ๋กœ ํ•„์š”ํ•œ ํ—ค๋”ฉ๋งŒ OpenCode์—์„œ `read` ๋„๊ตฌ๋กœ ์ฝ๊ฒŒ ํ•จ + - ์ „ ํŒŒ์ผ grep์€ ๋ณด์กฐ ์ˆ˜๋‹จ์œผ๋กœ๋งŒ ์‚ฌ์šฉ + +์ด ์ „๋žต์€ glg-skills์˜ =SKILL.md= ์— ์ด๋ฏธ ๋ฌธ์„œํ™”๋˜์–ด ์žˆ์œผ๋ฉฐ, +OpenCode์—์„œ๋Š” ์ด ๋ฌธ์„œ๋ฅผ **ํ–‰๋™ ๊ธฐ์ค€**์œผ๋กœ ์‚ผ์Šต๋‹ˆ๋‹ค. + +** 3. Silo ์ธ์‹๊ณผ ๊ฒฝ๋กœ ๊ทœ์น™ (OpenCode ๊ด€์ ) + +OpenCode์—์„œ org ํŒŒ์ผ์„ ๋‹ค๋ฃฐ ๋•Œ, ์•„๋ž˜ ๊ฒฝ๋กœ๋ฅผ **Denote/org silo** ๋กœ ์ทจ๊ธ‰ํ•ฉ๋‹ˆ๋‹ค: + +- =~/org/**= +- =~/org/meta/**= +- =~/org/bib/**= +- =~/org/notes/**= +- =~/org/llmlog/**= +- =~/claude-memory/**= +- =~/repos/gh/*/docs/**= +- =~/repos/work/*/docs/**= + +ํŠนํžˆ: +- =~/org/meta=: ๋ฉ”ํƒ€ ๋ชจ๋ธ/์„ค๊ณ„ +- =~/org/bib=: ์ฐธ๊ณ ๋ฌธํ—Œ/๋ ˆํผ๋Ÿฐ์Šค +- =~/org/notes=: ์žฅ๋ฌธ์˜ ์ƒ๊ฐ/๋…ธํŠธ +- =~/org/llmlog=: LLM ๋Œ€ํ™” ๋กœ๊ทธ +- ๋ฆฌํฌ์˜ =docs/=: ํ•ด๋‹น ์ฝ”๋“œ/ํ”„๋กœ์ ํŠธ์— ์ง์ ‘ ์—ฐ๊ฒฐ๋œ ๋ฌธ์„œ + +OpenCode ์—์ด์ „ํŠธ์—๊ฒŒ ์š”์ฒญํ•  ๋•Œ, +"์ด ํŒŒ์ผ/๋ฌธ์„œ๋Š” glg-skills์˜ silo ๊ทœ์น™์„ ๋”ฐ๋ผ ํ•ด์„ํ•ด์ค˜"๋ผ๊ณ  ๋ช…์‹œํ•˜๋ฉด, +์œ„ ๊ฒฝ๋กœ ๊ทœ์น™์„ ๊ธฐ์ค€์œผ๋กœ ์ง€์‹๋ฒ ์ด์Šค๋ฅผ ๋ฐ”๋ผ๋ณด๋„๋ก ์œ ๋„ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. + +** 4. document-skills์™€์˜ ์—ฐ๊ณ„ (OpenCode) + +Anthropic document-skills๋Š” Claude-Code์šฉ skills์ง€๋งŒ, +OpenCode์—์„œ๋Š” ๋‹ค์Œ ๋ฐฉ์‹์œผ๋กœ ๊ฐ„์ ‘ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค: + +- =/home/goqual/repos/3rd/skills/document-skills/pdf/SKILL.md= + - PDF ์ฒ˜๋ฆฌ ์ ˆ์ฐจ/๋ชจ๋ฒ” ์‚ฌ๋ก€ ์ฐธ๊ณ  (์Šคํฌ๋ฆฝํŠธ ์ด๋ฆ„, ์›Œํฌํ”Œ๋กœ) +- =/home/goqual/repos/3rd/skills/document-skills/xlsx/SKILL.md= + - Excel ๊ณต์‹/๊ตฌ์กฐ ๋ณด์กด ๊ทœ์น™ ์ฐธ๊ณ  + +ํ•„์š”ํ•˜๋‹ค๋ฉด, ์—ฌ๊ธฐ ๋‚˜์˜จ Python ์Šคํฌ๋ฆฝํŠธ ํŒจํ„ด์„ +๋ณ„๋„ OpenCode ์ „์šฉ ์Šคํฌ๋ฆฝํŠธ๋กœ ์ด์‹ํ•ด glg-skills ์•ˆ์— ํฌํ•จ์‹œํ‚ค๊ณ , +SKILL.md์— ๊ทธ ์‚ฌ์šฉ๋ฒ•์„ ์ถ”๊ฐ€ํ•˜๋Š” ์‹์œผ๋กœ ์ ์ง„์ ์œผ๋กœ ํ†ตํ•ฉํ•ฉ๋‹ˆ๋‹ค. + +** 5. ์š”์•ฝ: OpenCode์šฉ glg-skills ์‚ฌ์šฉ ํŒจํ„ด + +- **์ง€์‹ ๋ ˆํผ๋Ÿฐ์Šค**: + - glg-skills: Denote/org ๊ตฌ์กฐ, silo ๊ฐœ๋…, ํ—ค๋”ฉ/ํžˆ์Šคํ† ๋ฆฌ ์šฐ์„  ์ „๋žต + - document-skills: PDF/XLSX ๋“ฑ ๋ฌธ์„œ ์ž‘์—… ์ ˆ์ฐจ ์ฐธ๊ณ  + +- **์‹คํ–‰ ๋„๊ตฌ**: + - =scripts/org_headings_toc.py=: org ํ—ค๋”ฉ TOC ์ถ”์ถœ + - ํ–ฅํ›„ ํ•„์š” ์‹œ PDF/XLSX์šฉ ๋ณด์กฐ ์Šคํฌ๋ฆฝํŠธ ์ถ”๊ฐ€ ์˜ˆ์ • + +- **์š”์ฒญ ํŒจํ„ด ์˜ˆ์‹œ**: + - "์ด org ๋ฌธ์„œ๋ฅผ glg-skills ๊ธฐ์ค€์œผ๋กœ ์ฝ์–ด์ค˜: ๋จผ์ € ํ—ค๋”ฉ TOC, ๊ทธ ๋‹ค์Œ ํžˆ์Šคํ† ๋ฆฌ, ๊ทธ ๋‹ค์Œ ๊ด€๋ จ ์„น์…˜๋งŒ ์ž์„ธํžˆ" + - "~/org/meta ์™€ ~/org/notes ๋„ glg-skills์˜ silo ๊ทœ์น™๋Œ€๋กœ ์ฐธ๊ณ ํ•ด์„œ ์„ค๊ณ„ ์˜๋„๋ฅผ ํ•จ๊ป˜ ๋ด์ค˜" + +์ด ๋ฌธ์„œ๋Š” OpenCode ํ™˜๊ฒฝ์—์„œ glg-skills๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ์˜ +"์ตœ์†Œํ•œ์˜ ๊ธฐ์–ต ์žฅ์น˜" ์—ญํ• ์„ ํ•ฉ๋‹ˆ๋‹ค. diff --git a/skills/junghan0611__org-mode-skills/references/api_reference.md b/skills/junghan0611__org-mode-skills/references/api_reference.md new file mode 100644 index 0000000..89b2cd9 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/references/api_reference.md @@ -0,0 +1,34 @@ +# Reference Documentation for Denote Org + +This is a placeholder for detailed reference documentation. +Replace with actual reference content or delete if not needed. + +Example real reference docs from other skills: +- product-management/references/communication.md - Comprehensive guide for status updates +- product-management/references/context_building.md - Deep-dive on gathering context +- bigquery/references/ - API references and query examples + +## When Reference Docs Are Useful + +Reference docs are ideal for: +- Comprehensive API documentation +- Detailed workflow guides +- Complex multi-step processes +- Information too lengthy for main SKILL.md +- Content that's only needed for specific use cases + +## Structure Suggestions + +### API Reference Example +- Overview +- Authentication +- Endpoints with examples +- Error codes +- Rate limits + +### Workflow Guide Example +- Prerequisites +- Step-by-step instructions +- Common patterns +- Troubleshooting +- Best practices diff --git a/skills/junghan0611__org-mode-skills/scripts/example.py b/skills/junghan0611__org-mode-skills/scripts/example.py new file mode 100755 index 0000000..bc17da6 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/scripts/example.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +""" +Example helper script for denote-org + +This is a placeholder script that can be executed directly. +Replace with actual implementation or delete if not needed. + +Example real scripts from other skills: +- pdf/scripts/fill_fillable_fields.py - Fills PDF form fields +- pdf/scripts/convert_pdf_to_images.py - Converts PDF pages to images +""" + +def main(): + print("This is an example script for denote-org") + # TODO: Add actual script logic here + # This could be data processing, file conversion, API calls, etc. + +if __name__ == "__main__": + main() diff --git a/skills/junghan0611__org-mode-skills/scripts/org_headings_toc.py b/skills/junghan0611__org-mode-skills/scripts/org_headings_toc.py new file mode 100644 index 0000000..f299a1f --- /dev/null +++ b/skills/junghan0611__org-mode-skills/scripts/org_headings_toc.py @@ -0,0 +1,97 @@ +#!/usr/bin/env python3 +"""org_headings_toc.py + +Extract a lightweight table of contents (TOC) from an org-mode file. + +This script is intentionally simple and robust: it does not try to fully +parse org-mode semantics, only heading levels and titles. It is designed +for agents to call when they need a quick structural overview of a large +org file before deciding which sections to read in detail. + +Behavior: +- Reads the given org file line by line. +- Detects headings by leading '*' characters (Org-style headings). +- Determines heading level by the number of consecutive '*' at the + beginning of the line. +- Strips TODO keywords and leading tags like "* TODO", "* DONE" when + extracting the title. +- Prints a simple TOC to stdout in the form: + LEVELTITLE + where LEVEL is an integer (1 for top-level headings, 2 for subheadings, ...). + +Usage: + python org_headings_toc.py path/to/file.org + +This script is meant to be called by Claude/agents via a shell command +when using the denote-org skill. +""" + +import sys +from pathlib import Path + + +TODO_KEYWORDS = { + "TODO", + "DONE", + "WAITING", + "HOLD", + "CANCELLED", + "NEXT", +} + + +def extract_headings(path: Path): + """Yield (level, title) tuples for each heading in the org file.""" + try: + with path.open("r", encoding="utf-8") as f: + for line in f: + if not line.lstrip().startswith("*"): + continue + + stripped = line.rstrip("\n") + # Count leading '*' characters + i = 0 + while i < len(stripped) and stripped[i] == "*": + i += 1 + level = i + + # Require at least one space after the stars + if level == 0 or level >= len(stripped) or stripped[level] != " ": + continue + + # Extract raw title part + raw_title = stripped[level + 1 :].strip() + + # Remove TODO keywords at the beginning of the title + parts = raw_title.split() + if parts and parts[0] in TODO_KEYWORDS: + parts = parts[1:] + title = " ".join(parts).strip() + + if title: + yield level, title + except FileNotFoundError: + print(f"ERROR: File not found: {path}", file=sys.stderr) + except UnicodeDecodeError: + print(f"ERROR: Cannot decode file as UTF-8: {path}", file=sys.stderr) + + +def main(argv=None): + if argv is None: + argv = sys.argv[1:] + + if not argv: + print("Usage: org_headings_toc.py path/to/file.org", file=sys.stderr) + return 1 + + path = Path(argv[0]).expanduser() + + for level, title in extract_headings(path): + # LEVELTITLE format for easy parsing by the agent + print(f"{level}\t{title}") + + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/skills/junghan0611__org-mode-skills/skill-creator/LICENSE.txt b/skills/junghan0611__org-mode-skills/skill-creator/LICENSE.txt new file mode 100644 index 0000000..7a4a3ea --- /dev/null +++ b/skills/junghan0611__org-mode-skills/skill-creator/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/skills/junghan0611__org-mode-skills/skill-creator/SKILL.md b/skills/junghan0611__org-mode-skills/skill-creator/SKILL.md new file mode 100644 index 0000000..4069935 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/skill-creator/SKILL.md @@ -0,0 +1,209 @@ +--- +name: skill-creator +description: Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations. +license: Complete terms in LICENSE.txt +--- + +# Skill Creator + +This skill provides guidance for creating effective skills. + +## About Skills + +Skills are modular, self-contained packages that extend Claude's capabilities by providing +specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific +domains or tasksโ€”they transform Claude from a general-purpose agent into a specialized agent +equipped with procedural knowledge that no model can fully possess. + +### What Skills Provide + +1. Specialized workflows - Multi-step procedures for specific domains +2. Tool integrations - Instructions for working with specific file formats or APIs +3. Domain expertise - Company-specific knowledge, schemas, business logic +4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks + +### Anatomy of a Skill + +Every skill consists of a required SKILL.md file and optional bundled resources: + +``` +skill-name/ +โ”œโ”€โ”€ SKILL.md (required) +โ”‚ โ”œโ”€โ”€ YAML frontmatter metadata (required) +โ”‚ โ”‚ โ”œโ”€โ”€ name: (required) +โ”‚ โ”‚ โ””โ”€โ”€ description: (required) +โ”‚ โ””โ”€โ”€ Markdown instructions (required) +โ””โ”€โ”€ Bundled Resources (optional) + โ”œโ”€โ”€ scripts/ - Executable code (Python/Bash/etc.) + โ”œโ”€โ”€ references/ - Documentation intended to be loaded into context as needed + โ””โ”€โ”€ assets/ - Files used in output (templates, icons, fonts, etc.) +``` + +#### SKILL.md (required) + +**Metadata Quality:** The `name` and `description` in YAML frontmatter determine when Claude will use the skill. Be specific about what the skill does and when to use it. Use the third-person (e.g. "This skill should be used when..." instead of "Use this skill when..."). + +#### Bundled Resources (optional) + +##### Scripts (`scripts/`) + +Executable code (Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten. + +- **When to include**: When the same code is being rewritten repeatedly or deterministic reliability is needed +- **Example**: `scripts/rotate_pdf.py` for PDF rotation tasks +- **Benefits**: Token efficient, deterministic, may be executed without loading into context +- **Note**: Scripts may still need to be read by Claude for patching or environment-specific adjustments + +##### References (`references/`) + +Documentation and reference material intended to be loaded as needed into context to inform Claude's process and thinking. + +- **When to include**: For documentation that Claude should reference while working +- **Examples**: `references/finance.md` for financial schemas, `references/mnda.md` for company NDA template, `references/policies.md` for company policies, `references/api_docs.md` for API specifications +- **Use cases**: Database schemas, API documentation, domain knowledge, company policies, detailed workflow guides +- **Benefits**: Keeps SKILL.md lean, loaded only when Claude determines it's needed +- **Best practice**: If files are large (>10k words), include grep search patterns in SKILL.md +- **Avoid duplication**: Information should live in either SKILL.md or references files, not both. Prefer references files for detailed information unless it's truly core to the skillโ€”this keeps SKILL.md lean while making information discoverable without hogging the context window. Keep only essential procedural instructions and workflow guidance in SKILL.md; move detailed reference material, schemas, and examples to references files. + +##### Assets (`assets/`) + +Files not intended to be loaded into context, but rather used within the output Claude produces. + +- **When to include**: When the skill needs files that will be used in the final output +- **Examples**: `assets/logo.png` for brand assets, `assets/slides.pptx` for PowerPoint templates, `assets/frontend-template/` for HTML/React boilerplate, `assets/font.ttf` for typography +- **Use cases**: Templates, images, icons, boilerplate code, fonts, sample documents that get copied or modified +- **Benefits**: Separates output resources from documentation, enables Claude to use files without loading them into context + +### Progressive Disclosure Design Principle + +Skills use a three-level loading system to manage context efficiently: + +1. **Metadata (name + description)** - Always in context (~100 words) +2. **SKILL.md body** - When skill triggers (<5k words) +3. **Bundled resources** - As needed by Claude (Unlimited*) + +*Unlimited because scripts can be executed without reading into context window. + +## Skill Creation Process + +To create a skill, follow the "Skill Creation Process" in order, skipping steps only if there is a clear reason why they are not applicable. + +### Step 1: Understanding the Skill with Concrete Examples + +Skip this step only when the skill's usage patterns are already clearly understood. It remains valuable even when working with an existing skill. + +To create an effective skill, clearly understand concrete examples of how the skill will be used. This understanding can come from either direct user examples or generated examples that are validated with user feedback. + +For example, when building an image-editor skill, relevant questions include: + +- "What functionality should the image-editor skill support? Editing, rotating, anything else?" +- "Can you give some examples of how this skill would be used?" +- "I can imagine users asking for things like 'Remove the red-eye from this image' or 'Rotate this image'. Are there other ways you imagine this skill being used?" +- "What would a user say that should trigger this skill?" + +To avoid overwhelming users, avoid asking too many questions in a single message. Start with the most important questions and follow up as needed for better effectiveness. + +Conclude this step when there is a clear sense of the functionality the skill should support. + +### Step 2: Planning the Reusable Skill Contents + +To turn concrete examples into an effective skill, analyze each example by: + +1. Considering how to execute on the example from scratch +2. Identifying what scripts, references, and assets would be helpful when executing these workflows repeatedly + +Example: When building a `pdf-editor` skill to handle queries like "Help me rotate this PDF," the analysis shows: + +1. Rotating a PDF requires re-writing the same code each time +2. A `scripts/rotate_pdf.py` script would be helpful to store in the skill + +Example: When designing a `frontend-webapp-builder` skill for queries like "Build me a todo app" or "Build me a dashboard to track my steps," the analysis shows: + +1. Writing a frontend webapp requires the same boilerplate HTML/React each time +2. An `assets/hello-world/` template containing the boilerplate HTML/React project files would be helpful to store in the skill + +Example: When building a `big-query` skill to handle queries like "How many users have logged in today?" the analysis shows: + +1. Querying BigQuery requires re-discovering the table schemas and relationships each time +2. A `references/schema.md` file documenting the table schemas would be helpful to store in the skill + +To establish the skill's contents, analyze each concrete example to create a list of the reusable resources to include: scripts, references, and assets. + +### Step 3: Initializing the Skill + +At this point, it is time to actually create the skill. + +Skip this step only if the skill being developed already exists, and iteration or packaging is needed. In this case, continue to the next step. + +When creating a new skill from scratch, always run the `init_skill.py` script. The script conveniently generates a new template skill directory that automatically includes everything a skill requires, making the skill creation process much more efficient and reliable. + +Usage: + +```bash +scripts/init_skill.py --path +``` + +The script: + +- Creates the skill directory at the specified path +- Generates a SKILL.md template with proper frontmatter and TODO placeholders +- Creates example resource directories: `scripts/`, `references/`, and `assets/` +- Adds example files in each directory that can be customized or deleted + +After initialization, customize or remove the generated SKILL.md and example files as needed. + +### Step 4: Edit the Skill + +When editing the (newly-generated or existing) skill, remember that the skill is being created for another instance of Claude to use. Focus on including information that would be beneficial and non-obvious to Claude. Consider what procedural knowledge, domain-specific details, or reusable assets would help another Claude instance execute these tasks more effectively. + +#### Start with Reusable Skill Contents + +To begin implementation, start with the reusable resources identified above: `scripts/`, `references/`, and `assets/` files. Note that this step may require user input. For example, when implementing a `brand-guidelines` skill, the user may need to provide brand assets or templates to store in `assets/`, or documentation to store in `references/`. + +Also, delete any example files and directories not needed for the skill. The initialization script creates example files in `scripts/`, `references/`, and `assets/` to demonstrate structure, but most skills won't need all of them. + +#### Update SKILL.md + +**Writing Style:** Write the entire skill using **imperative/infinitive form** (verb-first instructions), not second person. Use objective, instructional language (e.g., "To accomplish X, do Y" rather than "You should do X" or "If you need to do X"). This maintains consistency and clarity for AI consumption. + +To complete SKILL.md, answer the following questions: + +1. What is the purpose of the skill, in a few sentences? +2. When should the skill be used? +3. In practice, how should Claude use the skill? All reusable skill contents developed above should be referenced so that Claude knows how to use them. + +### Step 5: Packaging a Skill + +Once the skill is ready, it should be packaged into a distributable zip file that gets shared with the user. The packaging process automatically validates the skill first to ensure it meets all requirements: + +```bash +scripts/package_skill.py +``` + +Optional output directory specification: + +```bash +scripts/package_skill.py ./dist +``` + +The packaging script will: + +1. **Validate** the skill automatically, checking: + - YAML frontmatter format and required fields + - Skill naming conventions and directory structure + - Description completeness and quality + - File organization and resource references + +2. **Package** the skill if validation passes, creating a zip file named after the skill (e.g., `my-skill.zip`) that includes all files and maintains the proper directory structure for distribution. + +If validation fails, the script will report the errors and exit without creating a package. Fix any validation errors and run the packaging command again. + +### Step 6: Iterate + +After testing the skill, users may request improvements. Often this happens right after using the skill, with fresh context of how the skill performed. + +**Iteration workflow:** +1. Use the skill on real tasks +2. Notice struggles or inefficiencies +3. Identify how SKILL.md or bundled resources should be updated +4. Implement changes and test again diff --git a/skills/junghan0611__org-mode-skills/skill-creator/scripts/init_skill.py b/skills/junghan0611__org-mode-skills/skill-creator/scripts/init_skill.py new file mode 100755 index 0000000..329ad4e --- /dev/null +++ b/skills/junghan0611__org-mode-skills/skill-creator/scripts/init_skill.py @@ -0,0 +1,303 @@ +#!/usr/bin/env python3 +""" +Skill Initializer - Creates a new skill from template + +Usage: + init_skill.py --path + +Examples: + init_skill.py my-new-skill --path skills/public + init_skill.py my-api-helper --path skills/private + init_skill.py custom-skill --path /custom/location +""" + +import sys +from pathlib import Path + + +SKILL_TEMPLATE = """--- +name: {skill_name} +description: [TODO: Complete and informative explanation of what the skill does and when to use it. Include WHEN to use this skill - specific scenarios, file types, or tasks that trigger it.] +--- + +# {skill_title} + +## Overview + +[TODO: 1-2 sentences explaining what this skill enables] + +## Structuring This Skill + +[TODO: Choose the structure that best fits this skill's purpose. Common patterns: + +**1. Workflow-Based** (best for sequential processes) +- Works well when there are clear step-by-step procedures +- Example: DOCX skill with "Workflow Decision Tree" โ†’ "Reading" โ†’ "Creating" โ†’ "Editing" +- Structure: ## Overview โ†’ ## Workflow Decision Tree โ†’ ## Step 1 โ†’ ## Step 2... + +**2. Task-Based** (best for tool collections) +- Works well when the skill offers different operations/capabilities +- Example: PDF skill with "Quick Start" โ†’ "Merge PDFs" โ†’ "Split PDFs" โ†’ "Extract Text" +- Structure: ## Overview โ†’ ## Quick Start โ†’ ## Task Category 1 โ†’ ## Task Category 2... + +**3. Reference/Guidelines** (best for standards or specifications) +- Works well for brand guidelines, coding standards, or requirements +- Example: Brand styling with "Brand Guidelines" โ†’ "Colors" โ†’ "Typography" โ†’ "Features" +- Structure: ## Overview โ†’ ## Guidelines โ†’ ## Specifications โ†’ ## Usage... + +**4. Capabilities-Based** (best for integrated systems) +- Works well when the skill provides multiple interrelated features +- Example: Product Management with "Core Capabilities" โ†’ numbered capability list +- Structure: ## Overview โ†’ ## Core Capabilities โ†’ ### 1. Feature โ†’ ### 2. Feature... + +Patterns can be mixed and matched as needed. Most skills combine patterns (e.g., start with task-based, add workflow for complex operations). + +Delete this entire "Structuring This Skill" section when done - it's just guidance.] + +## [TODO: Replace with the first main section based on chosen structure] + +[TODO: Add content here. See examples in existing skills: +- Code samples for technical skills +- Decision trees for complex workflows +- Concrete examples with realistic user requests +- References to scripts/templates/references as needed] + +## Resources + +This skill includes example resource directories that demonstrate how to organize different types of bundled resources: + +### scripts/ +Executable code (Python/Bash/etc.) that can be run directly to perform specific operations. + +**Examples from other skills:** +- PDF skill: `fill_fillable_fields.py`, `extract_form_field_info.py` - utilities for PDF manipulation +- DOCX skill: `document.py`, `utilities.py` - Python modules for document processing + +**Appropriate for:** Python scripts, shell scripts, or any executable code that performs automation, data processing, or specific operations. + +**Note:** Scripts may be executed without loading into context, but can still be read by Claude for patching or environment adjustments. + +### references/ +Documentation and reference material intended to be loaded into context to inform Claude's process and thinking. + +**Examples from other skills:** +- Product management: `communication.md`, `context_building.md` - detailed workflow guides +- BigQuery: API reference documentation and query examples +- Finance: Schema documentation, company policies + +**Appropriate for:** In-depth documentation, API references, database schemas, comprehensive guides, or any detailed information that Claude should reference while working. + +### assets/ +Files not intended to be loaded into context, but rather used within the output Claude produces. + +**Examples from other skills:** +- Brand styling: PowerPoint template files (.pptx), logo files +- Frontend builder: HTML/React boilerplate project directories +- Typography: Font files (.ttf, .woff2) + +**Appropriate for:** Templates, boilerplate code, document templates, images, icons, fonts, or any files meant to be copied or used in the final output. + +--- + +**Any unneeded directories can be deleted.** Not every skill requires all three types of resources. +""" + +EXAMPLE_SCRIPT = '''#!/usr/bin/env python3 +""" +Example helper script for {skill_name} + +This is a placeholder script that can be executed directly. +Replace with actual implementation or delete if not needed. + +Example real scripts from other skills: +- pdf/scripts/fill_fillable_fields.py - Fills PDF form fields +- pdf/scripts/convert_pdf_to_images.py - Converts PDF pages to images +""" + +def main(): + print("This is an example script for {skill_name}") + # TODO: Add actual script logic here + # This could be data processing, file conversion, API calls, etc. + +if __name__ == "__main__": + main() +''' + +EXAMPLE_REFERENCE = """# Reference Documentation for {skill_title} + +This is a placeholder for detailed reference documentation. +Replace with actual reference content or delete if not needed. + +Example real reference docs from other skills: +- product-management/references/communication.md - Comprehensive guide for status updates +- product-management/references/context_building.md - Deep-dive on gathering context +- bigquery/references/ - API references and query examples + +## When Reference Docs Are Useful + +Reference docs are ideal for: +- Comprehensive API documentation +- Detailed workflow guides +- Complex multi-step processes +- Information too lengthy for main SKILL.md +- Content that's only needed for specific use cases + +## Structure Suggestions + +### API Reference Example +- Overview +- Authentication +- Endpoints with examples +- Error codes +- Rate limits + +### Workflow Guide Example +- Prerequisites +- Step-by-step instructions +- Common patterns +- Troubleshooting +- Best practices +""" + +EXAMPLE_ASSET = """# Example Asset File + +This placeholder represents where asset files would be stored. +Replace with actual asset files (templates, images, fonts, etc.) or delete if not needed. + +Asset files are NOT intended to be loaded into context, but rather used within +the output Claude produces. + +Example asset files from other skills: +- Brand guidelines: logo.png, slides_template.pptx +- Frontend builder: hello-world/ directory with HTML/React boilerplate +- Typography: custom-font.ttf, font-family.woff2 +- Data: sample_data.csv, test_dataset.json + +## Common Asset Types + +- Templates: .pptx, .docx, boilerplate directories +- Images: .png, .jpg, .svg, .gif +- Fonts: .ttf, .otf, .woff, .woff2 +- Boilerplate code: Project directories, starter files +- Icons: .ico, .svg +- Data files: .csv, .json, .xml, .yaml + +Note: This is a text placeholder. Actual assets can be any file type. +""" + + +def title_case_skill_name(skill_name): + """Convert hyphenated skill name to Title Case for display.""" + return ' '.join(word.capitalize() for word in skill_name.split('-')) + + +def init_skill(skill_name, path): + """ + Initialize a new skill directory with template SKILL.md. + + Args: + skill_name: Name of the skill + path: Path where the skill directory should be created + + Returns: + Path to created skill directory, or None if error + """ + # Determine skill directory path + skill_dir = Path(path).resolve() / skill_name + + # Check if directory already exists + if skill_dir.exists(): + print(f"โŒ Error: Skill directory already exists: {skill_dir}") + return None + + # Create skill directory + try: + skill_dir.mkdir(parents=True, exist_ok=False) + print(f"โœ… Created skill directory: {skill_dir}") + except Exception as e: + print(f"โŒ Error creating directory: {e}") + return None + + # Create SKILL.md from template + skill_title = title_case_skill_name(skill_name) + skill_content = SKILL_TEMPLATE.format( + skill_name=skill_name, + skill_title=skill_title + ) + + skill_md_path = skill_dir / 'SKILL.md' + try: + skill_md_path.write_text(skill_content) + print("โœ… Created SKILL.md") + except Exception as e: + print(f"โŒ Error creating SKILL.md: {e}") + return None + + # Create resource directories with example files + try: + # Create scripts/ directory with example script + scripts_dir = skill_dir / 'scripts' + scripts_dir.mkdir(exist_ok=True) + example_script = scripts_dir / 'example.py' + example_script.write_text(EXAMPLE_SCRIPT.format(skill_name=skill_name)) + example_script.chmod(0o755) + print("โœ… Created scripts/example.py") + + # Create references/ directory with example reference doc + references_dir = skill_dir / 'references' + references_dir.mkdir(exist_ok=True) + example_reference = references_dir / 'api_reference.md' + example_reference.write_text(EXAMPLE_REFERENCE.format(skill_title=skill_title)) + print("โœ… Created references/api_reference.md") + + # Create assets/ directory with example asset placeholder + assets_dir = skill_dir / 'assets' + assets_dir.mkdir(exist_ok=True) + example_asset = assets_dir / 'example_asset.txt' + example_asset.write_text(EXAMPLE_ASSET) + print("โœ… Created assets/example_asset.txt") + except Exception as e: + print(f"โŒ Error creating resource directories: {e}") + return None + + # Print next steps + print(f"\nโœ… Skill '{skill_name}' initialized successfully at {skill_dir}") + print("\nNext steps:") + print("1. Edit SKILL.md to complete the TODO items and update the description") + print("2. Customize or delete the example files in scripts/, references/, and assets/") + print("3. Run the validator when ready to check the skill structure") + + return skill_dir + + +def main(): + if len(sys.argv) < 4 or sys.argv[2] != '--path': + print("Usage: init_skill.py --path ") + print("\nSkill name requirements:") + print(" - Hyphen-case identifier (e.g., 'data-analyzer')") + print(" - Lowercase letters, digits, and hyphens only") + print(" - Max 40 characters") + print(" - Must match directory name exactly") + print("\nExamples:") + print(" init_skill.py my-new-skill --path skills/public") + print(" init_skill.py my-api-helper --path skills/private") + print(" init_skill.py custom-skill --path /custom/location") + sys.exit(1) + + skill_name = sys.argv[1] + path = sys.argv[3] + + print(f"๐Ÿš€ Initializing skill: {skill_name}") + print(f" Location: {path}") + print() + + result = init_skill(skill_name, path) + + if result: + sys.exit(0) + else: + sys.exit(1) + + +if __name__ == "__main__": + main() diff --git a/skills/junghan0611__org-mode-skills/skill-creator/scripts/package_skill.py b/skills/junghan0611__org-mode-skills/skill-creator/scripts/package_skill.py new file mode 100755 index 0000000..3ee8e8e --- /dev/null +++ b/skills/junghan0611__org-mode-skills/skill-creator/scripts/package_skill.py @@ -0,0 +1,110 @@ +#!/usr/bin/env python3 +""" +Skill Packager - Creates a distributable zip file of a skill folder + +Usage: + python utils/package_skill.py [output-directory] + +Example: + python utils/package_skill.py skills/public/my-skill + python utils/package_skill.py skills/public/my-skill ./dist +""" + +import sys +import zipfile +from pathlib import Path +from quick_validate import validate_skill + + +def package_skill(skill_path, output_dir=None): + """ + Package a skill folder into a zip file. + + Args: + skill_path: Path to the skill folder + output_dir: Optional output directory for the zip file (defaults to current directory) + + Returns: + Path to the created zip file, or None if error + """ + skill_path = Path(skill_path).resolve() + + # Validate skill folder exists + if not skill_path.exists(): + print(f"โŒ Error: Skill folder not found: {skill_path}") + return None + + if not skill_path.is_dir(): + print(f"โŒ Error: Path is not a directory: {skill_path}") + return None + + # Validate SKILL.md exists + skill_md = skill_path / "SKILL.md" + if not skill_md.exists(): + print(f"โŒ Error: SKILL.md not found in {skill_path}") + return None + + # Run validation before packaging + print("๐Ÿ” Validating skill...") + valid, message = validate_skill(skill_path) + if not valid: + print(f"โŒ Validation failed: {message}") + print(" Please fix the validation errors before packaging.") + return None + print(f"โœ… {message}\n") + + # Determine output location + skill_name = skill_path.name + if output_dir: + output_path = Path(output_dir).resolve() + output_path.mkdir(parents=True, exist_ok=True) + else: + output_path = Path.cwd() + + zip_filename = output_path / f"{skill_name}.zip" + + # Create the zip file + try: + with zipfile.ZipFile(zip_filename, 'w', zipfile.ZIP_DEFLATED) as zipf: + # Walk through the skill directory + for file_path in skill_path.rglob('*'): + if file_path.is_file(): + # Calculate the relative path within the zip + arcname = file_path.relative_to(skill_path.parent) + zipf.write(file_path, arcname) + print(f" Added: {arcname}") + + print(f"\nโœ… Successfully packaged skill to: {zip_filename}") + return zip_filename + + except Exception as e: + print(f"โŒ Error creating zip file: {e}") + return None + + +def main(): + if len(sys.argv) < 2: + print("Usage: python utils/package_skill.py [output-directory]") + print("\nExample:") + print(" python utils/package_skill.py skills/public/my-skill") + print(" python utils/package_skill.py skills/public/my-skill ./dist") + sys.exit(1) + + skill_path = sys.argv[1] + output_dir = sys.argv[2] if len(sys.argv) > 2 else None + + print(f"๐Ÿ“ฆ Packaging skill: {skill_path}") + if output_dir: + print(f" Output directory: {output_dir}") + print() + + result = package_skill(skill_path, output_dir) + + if result: + sys.exit(0) + else: + sys.exit(1) + + +if __name__ == "__main__": + main() diff --git a/skills/junghan0611__org-mode-skills/skill-creator/scripts/quick_validate.py b/skills/junghan0611__org-mode-skills/skill-creator/scripts/quick_validate.py new file mode 100755 index 0000000..6fa6c63 --- /dev/null +++ b/skills/junghan0611__org-mode-skills/skill-creator/scripts/quick_validate.py @@ -0,0 +1,65 @@ +#!/usr/bin/env python3 +""" +Quick validation script for skills - minimal version +""" + +import sys +import os +import re +from pathlib import Path + +def validate_skill(skill_path): + """Basic validation of a skill""" + skill_path = Path(skill_path) + + # Check SKILL.md exists + skill_md = skill_path / 'SKILL.md' + if not skill_md.exists(): + return False, "SKILL.md not found" + + # Read and validate frontmatter + content = skill_md.read_text() + if not content.startswith('---'): + return False, "No YAML frontmatter found" + + # Extract frontmatter + match = re.match(r'^---\n(.*?)\n---', content, re.DOTALL) + if not match: + return False, "Invalid frontmatter format" + + frontmatter = match.group(1) + + # Check required fields + if 'name:' not in frontmatter: + return False, "Missing 'name' in frontmatter" + if 'description:' not in frontmatter: + return False, "Missing 'description' in frontmatter" + + # Extract name for validation + name_match = re.search(r'name:\s*(.+)', frontmatter) + if name_match: + name = name_match.group(1).strip() + # Check naming convention (hyphen-case: lowercase with hyphens) + if not re.match(r'^[a-z0-9-]+$', name): + return False, f"Name '{name}' should be hyphen-case (lowercase letters, digits, and hyphens only)" + if name.startswith('-') or name.endswith('-') or '--' in name: + return False, f"Name '{name}' cannot start/end with hyphen or contain consecutive hyphens" + + # Extract and validate description + desc_match = re.search(r'description:\s*(.+)', frontmatter) + if desc_match: + description = desc_match.group(1).strip() + # Check for angle brackets + if '<' in description or '>' in description: + return False, "Description cannot contain angle brackets (< or >)" + + return True, "Skill is valid!" + +if __name__ == "__main__": + if len(sys.argv) != 2: + print("Usage: python quick_validate.py ") + sys.exit(1) + + valid, message = validate_skill(sys.argv[1]) + print(message) + sys.exit(0 if valid else 1) \ No newline at end of file