kitconc 4.0.0__tar.gz → 4.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kitconc-4.0.0 → kitconc-4.0.1}/CHANGES.txt +8 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/MANIFEST.in +1 -2
- {kitconc-4.0.0/kitconc.egg-info → kitconc-4.0.1}/PKG-INFO +14 -2
- {kitconc-4.0.0 → kitconc-4.0.1}/README.txt +13 -1
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/guides/recipes.md +22 -0
- kitconc-4.0.1/kitconc/agent/skill/kitconc-recipe-author/SKILL.md +60 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/skill_installer.py +21 -17
- {kitconc-4.0.0 → kitconc-4.0.1/kitconc.egg-info}/PKG-INFO +14 -2
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc.egg-info/SOURCES.txt +1 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/pyproject.toml +2 -2
- {kitconc-4.0.0 → kitconc-4.0.1}/LICENSE.txt +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/embeddings/__init__.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/embeddings/chunker.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/embeddings/sqlite_vec_search.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/embeddings/util.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/__init__.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/__init__.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/actions.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/corpus_tools.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/expressions.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/guides/expressions.md +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/guides/measures.md +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/guides/overview.md +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/guides/pipelines.md +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/guides/terminology.md +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/jobs.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/mcp_server.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/pipeline.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/progress.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/collocation-entry.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/compare-corpora.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/corpus-profile.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/corpus-qa.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/glossary-candidates.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/glossary-contrastive.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/keyword-report.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/lexical-bundles.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/synonym-comparison.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/word-frequency-comparison.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes/word-profile.json +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/recipes.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/resources.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/result_ops.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/results.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/schemas.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/skill/kitconc/SKILL.md +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/skill/kitconc/references/expressions.md +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/skill/kitconc/references/pipelines.md +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/skill/kitconc/references/python-api.md +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/tagsets.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/tool_cli.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/agent/tools.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/archive.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/cli_app.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/core.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/gui_lang.pickle +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/gui_lang_default.pickle +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/images/excel.png +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/images/python.png +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/images/python3.ico +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/images/python3_b.ico +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/images/python_b.png +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/images/script.png +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/images/text.png +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/images/tool.png +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/lemmas_english.tab +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/pos_tagger_english.pickle +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/pos_tagger_portuguese.pickle +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/reflist_english.tab +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/reflist_no-tagging.tab +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/reflist_portuguese.tab +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/scripts/hello.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/sent_tokenizer_english.pickle +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/sent_tokenizer_portuguese.pickle +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/stoplist_english.tab +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/stoplist_no-tagging.tab +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/stoplist_portuguese.tab +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/ubuntu.ttf +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/word_tokenizer_english.pickle +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/data/word_tokenizer_portuguese.pickle +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/export_corpus.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/indexing.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_app.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_app_language.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_cmd.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_corpus.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_data.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_models.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_plots.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_spacy.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_tools.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/kit_util.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/nlp.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/npyarrays.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_clusters.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_collocates.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_concordance.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_dispersion.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_extras.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_keywords.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_keywords_dispersion.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_kwic.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_measures.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_ngrams.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_wfreqinfiles.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_wordlist.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/py_wtfreq.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/tagged.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/tagging.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc/version.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc.egg-info/dependency_links.txt +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc.egg-info/entry_points.txt +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc.egg-info/requires.txt +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/kitconc.egg-info/top_level.txt +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/setup.cfg +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_agent_cli_and_skill.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_agent_mcp_server.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_agent_workflows.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_analysis_features.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_corpus_ingestion.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_legacy_reliability.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_nlp.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_py_keywords.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_py_ngrams.py +0 -0
- {kitconc-4.0.0 → kitconc-4.0.1}/tests/test_py_wordlist.py +0 -0
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
Version 4.0.1
|
|
2
|
+
-------------
|
|
3
|
+
- 2026-10-11
|
|
4
|
+
- Added the `kitconc-recipe-author` Agent Skill to guide users through designing, validating,
|
|
5
|
+
running, and saving custom recipes. `kitconc-skill install` now installs it alongside the
|
|
6
|
+
general Kitconc skill for Claude and Codex.
|
|
7
|
+
- Expanded recipe authoring documentation and included the new skill in source and wheel packages.
|
|
8
|
+
|
|
1
9
|
Version 4.0.0
|
|
2
10
|
-------------
|
|
3
11
|
- 2026-10-11
|
|
@@ -7,5 +7,4 @@ include kitconc/data/images/*.ico
|
|
|
7
7
|
include kitconc/data/scripts/*.py
|
|
8
8
|
include kitconc/agent/guides/*.md
|
|
9
9
|
include kitconc/agent/recipes/*.json
|
|
10
|
-
include kitconc/agent/skill
|
|
11
|
-
include kitconc/agent/skill/kitconc/references/*.md
|
|
10
|
+
recursive-include kitconc/agent/skill *.md
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kitconc
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.1
|
|
4
4
|
Summary: A toolkit for Corpus Linguistics Analysis
|
|
5
5
|
Author-email: José Lopes Moreira Filho <jlopes@alumni.usp.br>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,7 +28,7 @@ Requires-Dist: uvicorn[standard]<1.0.0,>=0.27; extra == "full"
|
|
|
28
28
|
Requires-Dist: python-dotenv<2.0.0,>=1.0.0; extra == "full"
|
|
29
29
|
Dynamic: license-file
|
|
30
30
|
|
|
31
|
-
Kitconc
|
|
31
|
+
Kitconc 4.0.1
|
|
32
32
|
=============
|
|
33
33
|
|
|
34
34
|
Kitconc is a package for Corpus Linguistics and text analysis with Python.
|
|
@@ -166,6 +166,18 @@ sheet_name="Wordlist".
|
|
|
166
166
|
MCP runtime is included in package dependencies
|
|
167
167
|
(uv sync is enough).
|
|
168
168
|
|
|
169
|
+
Agent skills for Claude and Codex
|
|
170
|
+
=================================
|
|
171
|
+
|
|
172
|
+
Install the bundled Kitconc skills without a global pip installation (requires uv):
|
|
173
|
+
|
|
174
|
+
uvx --from kitconc kitconc-skill install
|
|
175
|
+
|
|
176
|
+
This installs the general corpus-analysis skill and the kitconc-recipe-author skill. The latter
|
|
177
|
+
guides an assistant to design a reusable recipe from a user's goal, validate the pipeline, run it
|
|
178
|
+
when useful, and save it to the active Kitconc workspace. To update an existing installation, add
|
|
179
|
+
--force. See the GitHub README for examples and the complete recipe-authoring guide.
|
|
180
|
+
|
|
169
181
|
What's new in 3.2.0
|
|
170
182
|
====================
|
|
171
183
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Kitconc
|
|
1
|
+
Kitconc 4.0.1
|
|
2
2
|
=============
|
|
3
3
|
|
|
4
4
|
Kitconc is a package for Corpus Linguistics and text analysis with Python.
|
|
@@ -136,6 +136,18 @@ sheet_name="Wordlist".
|
|
|
136
136
|
MCP runtime is included in package dependencies
|
|
137
137
|
(uv sync is enough).
|
|
138
138
|
|
|
139
|
+
Agent skills for Claude and Codex
|
|
140
|
+
=================================
|
|
141
|
+
|
|
142
|
+
Install the bundled Kitconc skills without a global pip installation (requires uv):
|
|
143
|
+
|
|
144
|
+
uvx --from kitconc kitconc-skill install
|
|
145
|
+
|
|
146
|
+
This installs the general corpus-analysis skill and the kitconc-recipe-author skill. The latter
|
|
147
|
+
guides an assistant to design a reusable recipe from a user's goal, validate the pipeline, run it
|
|
148
|
+
when useful, and save it to the active Kitconc workspace. To update an existing installation, add
|
|
149
|
+
--force. See the GitHub README for examples and the complete recipe-authoring guide.
|
|
150
|
+
|
|
139
151
|
What's new in 3.2.0
|
|
140
152
|
====================
|
|
141
153
|
|
|
@@ -50,3 +50,25 @@ not fixed reports: show one, change what the question needs, run the variant or
|
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
Names use lowercase letters, digits, `-` and `_`. `recipe_save` validates the pipeline before saving.
|
|
53
|
+
|
|
54
|
+
## Creating a recipe with an assistant
|
|
55
|
+
|
|
56
|
+
The `kitconc-recipe-author` Agent Skill guides recipe creation in Claude and Codex. Describe the
|
|
57
|
+
outcome you want in ordinary language; the assistant can check available corpora and existing
|
|
58
|
+
recipes, draft the pipeline, validate it, optionally run it, and save it in the active workspace.
|
|
59
|
+
The skill is installed alongside the general Kitconc skill by `kitconc-skill install`.
|
|
60
|
+
|
|
61
|
+
Example requests:
|
|
62
|
+
|
|
63
|
+
- “Create a reusable recipe that finds adjective–noun terms occurring at least three times and
|
|
64
|
+
adds example contexts.”
|
|
65
|
+
- “Adapt `glossary-candidates` to compare terms with corpus `general-en`, validate the result, and
|
|
66
|
+
save it as `legal-glossary-contrast`.”
|
|
67
|
+
- “Draft a recipe to compare `period-a` and `period-b` using normalized frequencies and log ratio;
|
|
68
|
+
show me the steps before saving.”
|
|
69
|
+
|
|
70
|
+
The assistant should confirm corpus ids and available tools, explain the parameters and analysis
|
|
71
|
+
choices, and call `pipeline_validate` before execution or persistence. Validation checks pipeline
|
|
72
|
+
structure and references; it does not establish that an interpretation is statistically or
|
|
73
|
+
linguistically sound. `recipe_save` writes the JSON recipe to `<workspace>/recipes/`. Ask for a
|
|
74
|
+
draft if you want the JSON without saving it.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kitconc-recipe-author
|
|
3
|
+
description: Help users design, validate, run, and save reusable Kitconc analysis recipes. Use when a user asks to create, customize, refine, or troubleshoot a Kitconc recipe or multi-step corpus workflow, especially when they want to reuse or share it.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Kitconc recipe author
|
|
7
|
+
|
|
8
|
+
Turn a user's analysis goal into a small, understandable, reusable Kitconc recipe. A recipe is a
|
|
9
|
+
JSON pipeline. Use the Kitconc MCP tools when available; otherwise use `kitconc-tool` with the same
|
|
10
|
+
arguments. If neither is available, explain how to connect Kitconc or install its CLI before
|
|
11
|
+
claiming that a recipe was validated or saved.
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
1. **Understand the goal.** Identify the corpus or corpora, the question, desired output, filters,
|
|
16
|
+
measures, and whether the workflow should be saved. Ask only for information needed to make the
|
|
17
|
+
workflow meaningful. Do not invent corpus ids, tool names, fields, or parameters.
|
|
18
|
+
2. **Check available evidence and tools.** Use `workspace_info` to discover corpus ids and
|
|
19
|
+
`recipe_list` to find an existing recipe that can be reused. Read a relevant guide with
|
|
20
|
+
`guide_read` (`recipes`, `pipelines`, `expressions`, or `measures`) when needed. Use
|
|
21
|
+
`recipe_show` to inspect a candidate recipe. If the user refers to a specific corpus, confirm it
|
|
22
|
+
exists before building around it.
|
|
23
|
+
3. **Design the smallest useful workflow.** Prefer a built-in recipe as a starting point. Otherwise
|
|
24
|
+
compose supported tools into ordered `steps`; declare meaningful `params`; give each step a
|
|
25
|
+
stable `id`; connect outputs with references such as `$params.corpus` and
|
|
26
|
+
`$terms.result_id`; set `output` to the useful final step; and write an `interpretation` that
|
|
27
|
+
describes how to read the result without overstating it. Avoid unnecessary steps and huge inline
|
|
28
|
+
tables. For list-like inputs, preserve their list type in parameter references.
|
|
29
|
+
4. **Explain the proposal.** Show the recipe name, the question it answers, required inputs, and
|
|
30
|
+
the main analysis choices. Clearly label choices that remain assumptions. The user can review
|
|
31
|
+
this before persistence when the request is only to draft or explore.
|
|
32
|
+
5. **Validate.** Call `pipeline_validate` with the proposed recipe/pipeline and representative
|
|
33
|
+
parameter values where available. Resolve validation errors by checking the current tool
|
|
34
|
+
schemas and guides; do not guess. Validation checks structure and references, not whether the
|
|
35
|
+
corpus supports a scientifically sound interpretation.
|
|
36
|
+
6. **Run when useful.** If the user requested a working recipe and the corpus is available, run it
|
|
37
|
+
with `pipeline_run` (or `recipe_run` after saving). For a long-running workflow, use `job_start`
|
|
38
|
+
if MCP is available. Inspect the step statuses and a manageable sample of the output; adjust
|
|
39
|
+
parameters or steps when results expose a problem. Distinguish a successful run from a
|
|
40
|
+
scientifically reviewed result.
|
|
41
|
+
7. **Save when requested.** Use `recipe_save` with the complete recipe object. Choose a unique,
|
|
42
|
+
lowercase name using letters, digits, hyphens, or underscores. If that user recipe already
|
|
43
|
+
exists, explain that `overwrite: true` is needed and use it only when the user asked to replace
|
|
44
|
+
it. Avoid names matching built-in recipes because user recipes with those names override them.
|
|
45
|
+
Report the saved path returned by the tool. If the user only asked for a draft, provide the JSON
|
|
46
|
+
without saving.
|
|
47
|
+
8. **Summarize plainly.** Report what the recipe does, its inputs, validation/run status, and whether
|
|
48
|
+
it was saved. Include limitations and any assumptions that affect interpretation.
|
|
49
|
+
|
|
50
|
+
## Recipe structure
|
|
51
|
+
|
|
52
|
+
Use the schema and tool list exposed by Kitconc rather than relying on memory. A typical recipe has
|
|
53
|
+
`name`, `title`, `description`, `tags`, `params`, `steps`, `output`, and `interpretation`. The
|
|
54
|
+
`steps` array uses the same format as `pipeline_run`; `recipe_save` validates before writing it to
|
|
55
|
+
`<workspace>/recipes/<name>.json`.
|
|
56
|
+
|
|
57
|
+
For CLI use, call the same operations with `kitconc-tool`; each tool takes its arguments as a JSON
|
|
58
|
+
object, and complex requests can be provided through stdin with `-`. Use `kitconc-tool --list` to
|
|
59
|
+
confirm available operations. For detailed syntax and a complete example, consult the Kitconc
|
|
60
|
+
`recipes` and `pipelines` guides.
|
|
@@ -20,53 +20,57 @@ import shutil
|
|
|
20
20
|
import sys
|
|
21
21
|
from pathlib import Path
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
SKILL_NAMES = ("kitconc", "kitconc-recipe-author")
|
|
24
|
+
SKILL_ROOT = Path(__file__).resolve().parent / "skill"
|
|
25
|
+
SKILL_NAME = "kitconc" # Backwards-compatible name for the main bundled skill.
|
|
26
|
+
SKILL_SOURCE = SKILL_ROOT / SKILL_NAME
|
|
25
27
|
TARGETS = {
|
|
26
28
|
"claude": {"user": Path.home() / ".claude" / "skills", "project": Path(".claude") / "skills"},
|
|
27
29
|
"codex": {"user": Path.home() / ".agents" / "skills", "project": Path(".agents") / "skills"},
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
|
|
31
|
-
def install(dest_root: Path, force: bool = False) -> Path:
|
|
32
|
-
"""
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
def install(dest_root: Path, force: bool = False, skill_name: str = SKILL_NAME) -> Path:
|
|
34
|
+
"""Copy one bundled skill folder into ``dest_root`` and return its installed path."""
|
|
35
|
+
source = SKILL_ROOT / skill_name
|
|
36
|
+
if skill_name not in SKILL_NAMES or not (source / "SKILL.md").is_file():
|
|
37
|
+
raise FileNotFoundError(f"Bundled skill not found: {skill_name}")
|
|
38
|
+
target = dest_root / skill_name
|
|
36
39
|
if target.exists():
|
|
37
40
|
if not force:
|
|
38
41
|
raise FileExistsError(f"{target} already exists (use --force to replace it)")
|
|
39
42
|
shutil.rmtree(target)
|
|
40
43
|
dest_root.mkdir(parents=True, exist_ok=True)
|
|
41
|
-
shutil.copytree(
|
|
44
|
+
shutil.copytree(source, target, ignore=shutil.ignore_patterns("__pycache__", "*.pyc"))
|
|
42
45
|
return target
|
|
43
46
|
|
|
44
47
|
|
|
45
48
|
def main(argv: list[str] | None = None) -> int:
|
|
46
|
-
parser = argparse.ArgumentParser(prog="kitconc-skill", description="Install
|
|
49
|
+
parser = argparse.ArgumentParser(prog="kitconc-skill", description="Install Kitconc agent skills.")
|
|
47
50
|
sub = parser.add_subparsers(dest="command", required=True)
|
|
48
|
-
inst = sub.add_parser("install", help="Copy
|
|
51
|
+
inst = sub.add_parser("install", help="Copy Kitconc skills into Claude and/or Codex skill folders")
|
|
49
52
|
inst.add_argument("--target", choices=["all", "claude", "codex"], default="all")
|
|
50
53
|
inst.add_argument("--scope", choices=["user", "project"], default="user",
|
|
51
54
|
help="user = home folder; project = current directory")
|
|
52
55
|
inst.add_argument("--dest", default=None, help="Install into this skills folder instead")
|
|
53
56
|
inst.add_argument("--force", action="store_true", help="Replace an existing installation")
|
|
54
|
-
sub.add_parser("path", help="Print the folder
|
|
57
|
+
sub.add_parser("path", help="Print the folder containing the bundled skills")
|
|
55
58
|
args = parser.parse_args(argv)
|
|
56
59
|
|
|
57
60
|
if args.command == "path":
|
|
58
|
-
print(
|
|
61
|
+
print(SKILL_ROOT)
|
|
59
62
|
return 0
|
|
60
63
|
roots = [Path(args.dest)] if args.dest else [
|
|
61
64
|
TARGETS[name][args.scope] for name in (["claude", "codex"] if args.target == "all" else [args.target])
|
|
62
65
|
]
|
|
63
66
|
status = 0
|
|
64
67
|
for root in roots:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
for skill_name in SKILL_NAMES:
|
|
69
|
+
try:
|
|
70
|
+
print(f"installed: {install(root.resolve(), force=args.force, skill_name=skill_name)}")
|
|
71
|
+
except (FileExistsError, FileNotFoundError, OSError) as exc:
|
|
72
|
+
print(f"skipped: {exc}", file=sys.stderr)
|
|
73
|
+
status = 1
|
|
70
74
|
return status
|
|
71
75
|
|
|
72
76
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kitconc
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.1
|
|
4
4
|
Summary: A toolkit for Corpus Linguistics Analysis
|
|
5
5
|
Author-email: José Lopes Moreira Filho <jlopes@alumni.usp.br>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,7 +28,7 @@ Requires-Dist: uvicorn[standard]<1.0.0,>=0.27; extra == "full"
|
|
|
28
28
|
Requires-Dist: python-dotenv<2.0.0,>=1.0.0; extra == "full"
|
|
29
29
|
Dynamic: license-file
|
|
30
30
|
|
|
31
|
-
Kitconc
|
|
31
|
+
Kitconc 4.0.1
|
|
32
32
|
=============
|
|
33
33
|
|
|
34
34
|
Kitconc is a package for Corpus Linguistics and text analysis with Python.
|
|
@@ -166,6 +166,18 @@ sheet_name="Wordlist".
|
|
|
166
166
|
MCP runtime is included in package dependencies
|
|
167
167
|
(uv sync is enough).
|
|
168
168
|
|
|
169
|
+
Agent skills for Claude and Codex
|
|
170
|
+
=================================
|
|
171
|
+
|
|
172
|
+
Install the bundled Kitconc skills without a global pip installation (requires uv):
|
|
173
|
+
|
|
174
|
+
uvx --from kitconc kitconc-skill install
|
|
175
|
+
|
|
176
|
+
This installs the general corpus-analysis skill and the kitconc-recipe-author skill. The latter
|
|
177
|
+
guides an assistant to design a reusable recipe from a user's goal, validate the pipeline, run it
|
|
178
|
+
when useful, and save it to the active Kitconc workspace. To update an existing installation, add
|
|
179
|
+
--force. See the GitHub README for examples and the complete recipe-authoring guide.
|
|
180
|
+
|
|
169
181
|
What's new in 3.2.0
|
|
170
182
|
====================
|
|
171
183
|
|
|
@@ -82,6 +82,7 @@ kitconc/agent/recipes/synonym-comparison.json
|
|
|
82
82
|
kitconc/agent/recipes/word-frequency-comparison.json
|
|
83
83
|
kitconc/agent/recipes/word-profile.json
|
|
84
84
|
kitconc/agent/skill/kitconc/SKILL.md
|
|
85
|
+
kitconc/agent/skill/kitconc-recipe-author/SKILL.md
|
|
85
86
|
kitconc/agent/skill/kitconc/references/expressions.md
|
|
86
87
|
kitconc/agent/skill/kitconc/references/pipelines.md
|
|
87
88
|
kitconc/agent/skill/kitconc/references/python-api.md
|
|
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|
|
7
7
|
|
|
8
8
|
[project]
|
|
9
9
|
name = "kitconc"
|
|
10
|
-
version = "4.0.
|
|
10
|
+
version = "4.0.1"
|
|
11
11
|
description = "A toolkit for Corpus Linguistics Analysis"
|
|
12
12
|
readme = {file = "README.txt", content-type = "text/x-rst"}
|
|
13
13
|
requires-python = ">=3.10"
|
|
@@ -56,7 +56,7 @@ kitconc-skill = "kitconc.agent.skill_installer:main"
|
|
|
56
56
|
exclude = ["tests", "tests.*"]
|
|
57
57
|
|
|
58
58
|
[tool.setuptools.package-data]
|
|
59
|
-
kitconc = ["data/*.*", "data/images/*.*", "data/scripts/*.*", "agent/guides/*.md", "agent/recipes/*.json", "agent/skill
|
|
59
|
+
kitconc = ["data/*.*", "data/images/*.*", "data/scripts/*.*", "agent/guides/*.md", "agent/recipes/*.json", "agent/skill/*/*.md", "agent/skill/*/references/*.md"]
|
|
60
60
|
|
|
61
61
|
[[tool.uv.index]]
|
|
62
62
|
name = "pytorch-cpu"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|