diff options
| author | Dan Guido <dan@trailofbits.com> | 2026-02-11 23:25:15 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-11 23:25:15 -0500 |
| commit | b3578141f412bcbf5605ecd20648f1a81cf5a197 (patch) | |
| tree | 1a017547fd98de8d2f7b90dbd70d6d53af084ec0 /plugins/python-code-simplifier/agents/python-code-simplifier.md | |
| parent | ed9c0b71a04d72c1af2e7e0afeb4a5d3b8820dee (diff) | |
Add skill-importer plugin (#5)
* Add skill-importer plugin for importing GitHub skills
Adds /import-skill command that takes a GitHub URL, fetches the skill
source tree, transforms it to meet plugin standards, validates, and
creates a PR — all in one flow.
- Command file (import-skill.md): 5-phase workflow with platform
detection table, idempotency handling, and quality self-review
- Helper script (fetch_github_tree.py): zero-dependency GitHub tree
fetcher using gh CLI, outputs JSON manifest
- Registered in marketplace.json and README.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: resolve code review findings for PR #5
Python script (fetch_github_tree.py):
- Add path traversal protection in write_tree (resolve + startswith)
- Add input validation (_validate_component) for shell metacharacters and ..
- Narrow exception handling: specific catches instead of bare Exception
- Merge get_default_branch + get_repo_license into get_repo_metadata (1 API call)
- Add resource limits: MAX_FILES=200, MAX_DEPTH=10, SUBPROCESS_TIMEOUT=30
- Add rate-limit detection in fetch_file_content
- Add subprocess timeout to all subprocess.run calls
- Remove unused --list and --output-dir flags (YAGNI + security)
- Fix binascii.Error import (was base64.binascii.Error)
- Document branch-slash limitation in docstring
Command file (import-skill.md):
- Add untrusted-content warning after Step 4
- Add temp directory cleanup step (Step 19)
- Handle branch name collision with timestamp fallback
- Simplify Idempotency section
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'plugins/python-code-simplifier/agents/python-code-simplifier.md')
0 files changed, 0 insertions, 0 deletions
