Skill: aipoch-ai/figure-reference-checker (version 0.1.0)

--- name: figure-reference-checker description: Check figure references in manuscripts version: 1.0.0 category: Writing tags: [] author: AIPOCH license: MIT status: Draft risk_level: Medium skill_type: Tool/Script owner: AIPOCH reviewer: '' last_updated: '2026-02-06' --- # Figure Reference Checker Check consistency of figure references in manuscripts. ## Parameters | Parameter | Type | Default | Required | Description | |-----------|------|---------|----------|-------------| | `--manuscript`, `-m` | string | - | Yes | Path to manuscript file | ## Usage ```bash python scripts/main.py --manuscript paper.docx ``` ## Features - Detect orphaned figure references - Check figure-label consistency - Flag missing citations ## Risk Assessment | Risk Indicator | Assessment | Level | |----------------|------------|-------| | Code Execution | Python/R scripts executed locally | Medium | | Network Access | No external API calls | Low | | File System Access | Read input files, write output files | Medium | | Instruction Tampering | Standard prompt guidelines | Low | | Data Exposure | Output files saved to workspace | Low | ## Security Checklist - [ ] No hardcoded credentials or API keys - [ ] No unauthorized file system access (../) - [ ] Output does not expose sensitive information - [ ] Prompt injection protections in place - [ ] Input file paths validated (no ../ traversal) - [ ] Output directory restricted to workspace - [ ] Script execution in sandboxed environment - [ ] Error messages sanitized (no stack traces exposed) - [ ] Dependencies audited ## Prerequisites No additional Python packages required. ## Evaluation Criteria ### Success Metrics - [ ] Successfully executes main functionality - [ ] Output meets quality standards - [ ] Handles edge cases gracefully - [ ] Performance is acceptable ### Test Cases 1. **Basic Functionality**: Standard input → Expected output 2. **Edge Case**: Invalid input → Graceful error handling 3. **Performance**: Large dataset → Acceptable processing time ## Lifecycle Status - **Current Stage**: Draft - **Next Review Date**: 2026-03-06 - **Known Issues**: None - **Planned Improvements**: - Performance optimization - Additional feature support

path: scripts/main.py
content: #!/usr/bin/env python3
"""
Figure Reference Checker
Check figure reference consistency.
"""

import argparse
import re


class FigureChecker:
    """Check figure references."""
    
    def check_references(self, text):
        """Find figure references in text."""
        pattern = r'Fig\.?\s*(\d+)[A-Z]?'
        matches = re.findall(pattern, text)
        return set(matches)
    
    def validate(self, manuscript):
        """Validate figure references."""
        refs = self.check_references(manuscript)
        print(f"Found figure references: {sorted(refs)}")
        return refs


def main():
    parser = argparse.ArgumentParser(description="Figure Reference Checker")
    parser.add_argument("--manuscript", "-m", required=True, help="Manuscript text or file")
    args = parser.parse_args()
    
    checker = FigureChecker()
    checker.validate(args.manuscript)


if __name__ == "__main__":
    main()


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)