Install
$ agentstack add skill-dungnotnull-pet-hospice-end-of-life-care-agent-skill-pet-hospice-end-of-life-care-agent-skill ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
SKILL.md — Pet Hospice End-of-Life Care Skill Registry
Overview
This document serves as the central registry for the pet-hospice-end-of-life-care skill system. It defines how skills are registered, resolved, executed, and validated, including input/output JSON schemas and the flexible agent/skill architecture.
Skill System Architecture
Hierarchical Skill Composition
pet-hospice-end-of-life-care (Main Harness)
├── sub-gather-requirements (Intake Specialist)
├── sub-evidence-collector (Data Librarian)
├── sub-core-analysis (Domain Advisor)
├── sub-knowledge-updater (Research Librarian)
└── sub-advisor (Senior Synthesizer)
Skill Resolution Protocol
When a skill is invoked, the system follows this resolution chain:
- Trigger Detection: Match user query against skill description (frontmatter)
- Skill Loading: Load SKILL.md body ( boolean` |
| on_after_skill_load | After loading SKILL.md | Cache skill metadata | (skill: object) => void | | on_before_sub_skill | Before invoking sub-skill | Validate inputs | (sub_skill: string, inputs: object) => boolean | | on_after_sub_skill | After sub-skill completes | Cache outputs | (sub_skill: string, outputs: object) => void | | on_quality_gate | At each quality gate | Log gate status | (gate: string, result: object) => void | | on_before_output | Before delivering output | Final validation | (output: object) => boolean | | on_error | On any error | Trigger degradation protocol | (error: object) => void |
State Synchronization Hooks
| Hook | Trigger | Purpose | |------|---------|---------| | on_state_change | Internal state changes | Maintain consistency | | on_cache_update | When knowledge cache updates | Invalidate stale references | | on_config_change | When configuration changes | Reload affected resources |
Event Emission
Key events in the skill lifecycle:
skill:loaded: Skill metadata loadedsub_skill:started: Sub-skill execution begunsub_skill:completed: Sub-succeeded with resultsgate:evaluated: Quality gate checkeddegradation:triggered: Degradation protocol activatedoutput:delivered: Final output delivered to user
Graceful Degradation Protocol
Degradation Levels
| Level | Condition | Behavior | |-------|-----------|----------| | 0 | All systems nominal | Full execution, all gates | | 1 | Minor data quality issues | Proceed with caution flags | | 2 | Some sources unavailable | Use fallback chain, flag limitations | | 3 | Multiple failures | Simplified output, explicit LIMITATION banner | | 4 | Critical failure | Explain limitation, suggest manual consultation |
Fallback Chain
- Primary: Real-time web data
- Secondary: Cached knowledge base
- Tertiary: General domain knowledge
- Quaternary: Explicit limitation flag + apology
Configuration System
Configuration is managed in config/ with type-safe schemas. See config/README.md for details.
Config Hierarchy
- Default config (
config/default.json): Base configuration - Environment config (
config/{env}.json): Environment-specific overrides - Local config (
config/local.json): Local development overrides (gitignored) - Runtime config: CLI arguments and environment variables
Config Schema
See assets/schemas/config.schema.json for the complete configuration schema.
Scripts Directory
The scripts/ directory contains automation utilities. See scripts/README.md for details.
Available Scripts
setup.py: Initial project setupvalidate.py: Validate skill structuretest.py: Run test scenariosknowledge_crawl.py: Execute knowledge crawl pipelineexport_skill.py: Package skill for distribution
References Directory
The references/ directory contains domain knowledge and templates. See references/README.md for details.
Reference Contents
quality_of_life_scales.md: Validated QoL assessment scalespain_management_protocols.md: Evidence-based pain protocolsauthoritative_sources.md: Domain source registryoutput_templates.md: Standard output templates
Assets Directory
The assets/ directory contains static resources and schemas. See assets/README.md for details.
Asset Contents
schemas/: JSON schemas for validationtemplates/: Output and prompt templatesdiagrams/: System architecture diagramsicons/: Icons and visual resources
Extension Points
Adding New Sub-Skills
- Create
skills/sub-{name}.mdwith required sections - Register in
skills/main.mdunder "Sub-skills Available" - Update this SKILL.md with input/output schemas
- Add quality gates if applicable
- Update test scenarios in
tests/test-scenarios.md
Adding New Tools
- Define tool in
config/default.jsonundertools - Create execution handler in
scripts/tool_handlers.py - Add schema to
assets/schemas/tools.schema.json - Document in this SKILL.md
Adding New Quality Gates
- Define gate in this SKILL.md under "Quality Gates System"
- Implement auto-fix procedure if applicable
- Add enforcement logic to
skills/main.md - Add test coverage in
tests/test-scenarios.md
Performance Optimization
Context Window Management
- Sub-skills loaded on-demand (progressive disclosure)
- Reference files loaded selectively by domain
- Cached outputs with 5-minute TTL
- Compression for large reference files
Token Consumption
- Main harness: ~2000 tokens (body only)
- Sub-skills: ~800-1200 tokens each
- Quality gate checks: ~200 tokens each
- Output generation: ~1500-3000 tokens depending on complexity
Structured Logging
Logs are written to logs/ with the following schema:
{
"timestamp": "string (ISO8601)",
"level": "string (DEBUG|INFO|WARNING|ERROR)",
"component": "string",
"event": "string",
"data": "object"
}
Error Handling
Error Types
- Network errors: WebSearch/WebFetch failures
- Validation errors: Input schema violations
- Execution errors: Sub-skill failures
- Quality gate failures: Gate enforcement failures
Error Recovery
Each error type has a specific recovery protocol documented in skills/main.md under "Graceful Degradation & Error Handling."
Testing
Test Coverage
- Unit tests for tools:
tools/test_*.py - Integration tests for sub-skills:
tests/test-scenarios.md - End-to-end tests:
tools/run_test_scenarios.py
Test Execution
# Run all tests
python scripts/test.py --all
# Run specific test
python scripts/test.py --scenario 1
# Run with coverage
python scripts/test.py --coverage
Version History
| Version | Date | Changes | |---------|------|---------| | 1.0.0 | 2026-07-20 | Production release, complete 6-phase implementation | | 0.9.0 | 2026-07-08 | Phase 4 completion, testing framework | | 0.5.0 | 2026-07-01 | Phase 2 completion, main harness + quality gates | | 0.1.0 | 2026-06-20 | Initial architecture, Phase 0-1 |
For implementation details, see skills/main.md and individual sub-skill files. For configuration details, see config/README.md. For testing details, see tests/README.md.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: dungnotnull
- Source: dungnotnull/pet-hospice-end-of-life-care-agent-skill
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.