work-toward-parity
БесплатноБез исполняемых скриптовНе проверенUse this skill to make a the behavior of our builtins match that of TCL.
Об этом скилле
Work Toward TCL Parity Skill
Step-by-step process for implementing missing TCL behaviors to achieve parity with standard TCL. Use this when a feature is partially implemented and needs additional behaviors to match TCL.
When to Use
- A builtin exists but is missing specific behaviors
- Documentation lists features as "Not implemented"
- Tests pass but behavior differs from TCL oracle
Working Process
1. Review Last Commit
Before starting any work:
git show HEAD
Understand the current state and any handoff notes from your colleague.
2. Identify Missing Behaviors
Review the documentation file for the feature:
cat docs/builtin-<feature>.md
Look for entries marked as "Not implemented" or features that differ from TCL.
3. Explore Oracle Behavior
Test expected behavior against the reference TCL interpreter interactively:
tclsh << 'EOF'
# Test code here
EOF
Or use the oracle wrapper:
echo '<tcl code>' | bin/oracle
Key areas to explore:
- Basic functionality
- Edge cases
- Error conditions and messages
- Interaction with other features (e.g., upvar, nested calls)
4. Create Test Cases First
Create or update testcases/<feature>.html with test cases for the missing behaviors.
Use the correct test case structure:
<test-case name="descriptive name">
<script>
tcl code here
</script>
<return>TCL_OK</return>
<error></error>
<stdout>expected output</stdout>
<stderr></stderr>
<exit-code>0</exit-code>
</test-case>
For error cases:
- Set
<return>TCL_ERROR</return> - Set
<error>expected error message</error> - Set
<exit-code>1</exit-code> - Omit
<stdout>tag entirely (do not include empty<stdout></stdout>)
5. Verify Tests Against Oracle
bin/harness run --host oracle testcases/<feature>.html
All tests must pass against the oracle before implementation. Fix any test expectation mismatches.
6. Commit Tests
Commit the tests separately before implementing:
git add testcases/<feature>.html
git commit -m "Add test cases for <feature> <specific behaviors>"
This ensures tests are preserved even if implementation is incomplete.
7. Implement the Feature
Now implement to make the tests pass. Common patterns:
Modifying Function Signatures
When adding return values or parameters:
- Update
src/internal.hdeclarations - Update implementation in
src/<file>.c - Update all call sites
Adding Host Interface Functions
If new host operations are needed: you first MUST STOP and ASK THE USER whether the extension is appropriate.
Extending the host interface is a measure of last resort: we want to keep as much logic in the C core as possible.
First think again whether you could implement the feature without extending the host interface.
If you have been granted permission to extend the host interface, follow these steps:
- Add to
src/feather.hin appropriate ops struct - Add declaration to
src/host.h - Add C wrapper in
callbacks.c - Add to ops initialization in
src/host.c - Implement in Go (
interp_callbacks.go) - Implement in JS (
js/feather.js)
8. Build and Test Iteratively
# Build
mise build
# Run specific tests
bin/harness run --host bin/feather-tester testcases/<feature>.html
# When tests pass, run full regression
mise test
# Run JS/WASM tests
mise test:js
Fix failures one at a time. Common issues:
- Wrong argument counts in trace callbacks
- Missing cases in switch statements
- Error message format differences
9. Commit Implementation
git add -A
git commit -m "Implement <specific behaviors> for <feature>
<Detailed description of what was implemented>
<Key implementation decisions>
All N tests pass in both Go and JS/WASM hosts."
10. Update Documentation
Update docs/builtin-<feature>.md:
- Change "Not implemented" to "Implemented"
- Add implementation notes sections if needed
- Document any remaining limitations
Update docs/index.md if the feature status changed significantly.
11. Final Commit
git add docs/
git commit -m "Update <feature> documentation to reflect implementation"
Key Files
| File | Purpose |
|---|---|
docs/builtin-*.md |
Feature documentation with implementation status |
docs/index.md |
Summary of all builtins and missing features |
testcases/*.html |
Test definitions |
src/internal.h |
Internal C declarations |
src/*.c |
C implementations |
src/feather.h |
Host interface definitions |
callbacks.c |
C-to-Go callback wrappers |
interp_callbacks.go |
Go host implementations |
Установить work-toward-parity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл work-toward-parity?
Use this skill to make a the behavior of our builtins match that of TCL.
Как установить скилл work-toward-parity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл work-toward-parity запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic