file-reference-skill
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "file-reference-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5a0c1b667732f8b8aa8b23894d458413146453c9581fc8ec4a477a6179faad66. Verify the upstream source and version against https://github.com/maxvaega/skillkit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Example skill that demonstrates secure file-reference parsing using supporting documents: shows the process and precautions for referencing and parsing external or uploaded documents in a controlled environment, intended for instructional and demonstration purposes.
Introduction source: third_party · maxvaega · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Example skill demonstrating secure file reference resolution with supporting files
- Testing
- Not tested
Browse files
Frontmatter
name: file-reference-skill
description: Example skill demonstrating secure file reference resolution with supporting files
allowed-tools: []File Reference Skill
This skill demonstrates how to use supporting files (scripts, templates, documentation) within a skill directory.
Overview
This skill uses helper scripts and templates for data processing. All supporting files are accessible via relative paths from the skill's base directory.
Available Supporting Files
Scripts
scripts/data_processor.py- Main data processing scriptscripts/validator.py- Input validation utilitiesscripts/helper.sh- Shell helper script
Templates
templates/config.yaml- Configuration templatetemplates/report.md- Report generation template
Documentation
docs/usage.md- Detailed usage instructionsdocs/examples.md- Example use cases
Usage
When this skill is invoked with arguments, it can access supporting files using the FilePathResolver:
from pathlib import Path
from skillkit.core.path_resolver import FilePathResolver
# Get the skill's base directory (injected by BaseDirectoryProcessor)
base_dir = Path("<base_directory_from_context>")
# Resolve supporting files securely
processor_script = FilePathResolver.resolve_path(base_dir, "scripts/data_processor.py")
config_template = FilePathResolver.resolve_path(base_dir, "templates/config.yaml")
usage_docs = FilePathResolver.resolve_path(base_dir, "docs/usage.md")
# Read file contents
with open(processor_script) as f:
script_code = f.read()
Processing Arguments
The skill expects data file paths as arguments:
Example invocation: file-reference-skill data/input.csv data/output.csv
Processing steps:
- Validate input using
scripts/validator.py - Process data using
scripts/data_processor.py - Generate report using
templates/report.md - Output results to specified location
Security Notes
- All file paths are validated to prevent directory traversal attacks
- Symlinks are resolved and verified to stay within skill directory
- Absolute paths and path traversal patterns (../) are blocked
- Any security violation raises PathSecurityError with detailed logging
Version history
-
v0.4.0
GitHub ↗
Original release notes
# v0.4.0 ## What's Changed ### advanced progressive disclosure + basic documentation - Advanced Progressive Disclosure with LRU content caching - Mtime-based automatic cache invalidation - Argument normalization for maximum cache efficiency - Thread-safe concurrent invocations with per-skill asyncio locks - Cache management API (get_cache_stats(), clear_cache()) - Performance: <1ms cache hits vs 10-25ms first invocation - Memory efficient: ~2.1KB per cached entry - 80%+ cache hit rate achievable - Created `docs/` folder with basic documentation - fixed `base_dir` issue #5
-
v0.3.0
GitHub ↗
Original release notes
# v0.3.0 Script Execution - ✅ Script Execution Support (Python, Shell, JavaScript, Ruby, Perl) - ✅ Automatic script detection (recursive, up to 5 levels) - ✅ Security controls (path validation, permission checks, timeout enforcement) - ✅ Environment variable injection (SKILL_NAME, SKILL_BASE_DIR, SKILL_VERSION, SKILLKIT_VERSION) - ✅ LangChain script tool integration (each script exposed as separate StructuredTool) - ✅ Parameters normalization to lower-case - ✅ Comprehensive error handling and audit logging - ✅ Cross-platform support (Linux, macOS, Windows) - ✅ Backward compatible with v0.1/v0.2 (except ToolRestrictionError removed)
-
v0.2.0
GitHub ↗
Original release notes
- ✅ Full async/await support (`adiscover()`, `ainvoke_skill()`) - ✅ Multi-source skill discovery (project, Anthropic config, plugins, custom paths) - ✅ Plugin ecosystem with MCPB manifest support - ✅ Priority-based conflict resolution - ✅ Fully qualified skill names (`plugin:skill-name`) - ✅ Nested directory structures (up to 5 levels) - ✅ Secure file path resolution with traversal prevention - ✅ LangChain async integration - ✅ Updated examples (async_usage.py, multi_source.py, file_references.py) - ✅ Backward compatible with v0.1
-
0.1.0
GitHub ↗
Original release notes
v0.1 ✅ Core skill discovery and metadata management ✅ YAML frontmatter parsing with validation ✅ Progressive disclosure pattern (lazy loading) ✅ Skill invocation with argument substitution ✅ LangChain integration (sync only) ✅ 86% test coverage
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供清晰的文件引用解析教学示例
- 涵盖开发者工具链相关实用场景
Highlights
- 触发描述清晰完整,边界明确
- 准确描述了技能的核心功能
Highlights
- 文档结构完整,章节划分清晰
- 包含端到端代码示例和使用说明
- frontmatter 信息齐全
Highlights
- 工具来源明确,使用官方路径解析器
- 详细覆盖安全异常处理机制
- 提供了完整的安全验证流程说明
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.