agentleFS
ReScienceLabReScienceLab/opc-skills/.factory/AGENTS.md

opc-skills

AGENTS.md1.8k starsChanged 10 months agoApache-2.0View on GitHub

OPC Skills is a library of reusable AI agent skills for solopreneurs, indie hackers, and one-person companies. Each skill extends AI agents with specialized capabilities through structured instructions and automation scripts. Each skill follows this standard structure: SKILL.md must include YAML frontmatter with these fields: - name: Unique identifier (kebab-case) - description: Clear description of functionality - triggers: Keywords that activate the skill - dependencies: List of required skill names (optional) When a skill requires other skills: - List them…

  • Installs packages
  • Commits and pushes

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 9 mentionsMar 2026: 3 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the ReScienceLab/opc-skills repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about ReScienceLab/opc-skills

The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 18

Talked about on GitHub (18 times).

On GitHub · 18

13 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository12 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

54 rules. About 0 are common, 39 are distinctive, and 15 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈39

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 15

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    SKILL.md: must include YAML frontmatter with these fields:

    line 51
  2. Very specific:

    Use clear argument names and help text (--help)

    line 91
  3. Distinctive:

    Document dependencies and environment variables required

    line 94
  4. Very specific:

    Use relative paths or ${SKILL_DIR} for portability

    line 95
  5. Very specific:

    When a skill adds CLI flags, scripts, or pricing changes, update SKILL.md examples and API notes in the same change so the docs stay …

    line 96
  6. Distinctive:

    When a skill requires other skills:

    line 100
  7. Distinctive:

    Document which skills and minimum versions are needed

    line 102
  8. Distinctive:

    All version numbers follow Semantic Versioning:

    line 116
  9. Distinctive:

    Update version when skill functionality changes

    line 138
  10. Very specific:

    Add entry to CHANGELOG.md under the appropriate version

    line 140
  11. Distinctive:

    Test that dependent skills still work with new versions

    line 152
  12. Distinctive:

    Document breaking changes clearly in CHANGELOG.md

    line 153
  13. Distinctive:

    Consider running dependent skill tests before merging

    line 154
  14. Distinctive:

    Never directly merge feature branches: Always:

    line 223
  15. Very specific:

    Create PR targeting develop

    line 225
  16. Distinctive:

    Verify tests pass before merge

    line 228
  17. Distinctive:

    Use conventional commits for clear history:

    line 232
  18. Distinctive:

    Important: Do not add any watermark or AI-generated signatures to commit messages.

    line 251
  19. Distinctive:

    When creating issues, use type labels to categorize:

    line 255
  20. Distinctive:

    All of the following must pass:

    line 316
  21. Very specific:

    Update versions in skills.json when:

    line 330
  22. Distinctive:

    Do NOT update versions for:

    line 335
  23. Distinctive:

    Use closing keywords in PR description to auto-close issues:

    line 342
  24. Distinctive:

    Update CHANGELOG.md: - Add entry in the appropriate Unreleased section

    line 372
  25. Distinctive:

    Merge PR: when approved and tests pass

    line 391
  26. Distinctive:

    Check CHANGELOG.md Compatibility Matrix for who depends on twitter

    line 394
  27. Very specific:

    Run compatibility tests: python3 skills/domain-hunter/scripts/test_twitter.py

    line 396
  28. Distinctive:

    When multiple skills should release together (rare, for milestone releases):

    line 401
  29. Distinctive:

    Keep organization by skill (see example below)

    line 421
  30. Distinctive:

    When a skill introduces breaking changes, clearly mark them:

    line 442
  31. Distinctive:

    When a dependency skill has breaking changes:

    line 454
  32. Distinctive:

    Test compatibility: before merging dependent updates

    line 458
  33. Distinctive:

    Update dependent skill versions: only if they contain breaking change fixes

    line 459
  34. Distinctive:

    Before merging any release PR:

    line 500
  35. Very specific:

    Start with clear documentation in SKILL.md

    line 514
  36. Distinctive:

    Write example workflows before implementation

    line 515
  37. Distinctive:

    Keep scripts focused on single responsibility

    line 516
  38. Distinctive:

    Test with different agent tools (Claude, Cursor, Droid, etc.)

    line 518
  39. Distinctive:

    Verify scripts work with sample inputs

    line 521
  40. Distinctive:

    Check trigger keywords are discoverable

    line 524
  41. Distinctive:

    Test on different operating systems if applicable

    line 525
  42. Very specific:

    Write clear, concise SKILL.md instructions

    line 528
  43. Distinctive:

    Document all required environment variables

    line 530
  44. Very specific:

    Keep SKILL.md up-to-date with skill changes

    line 532
  45. Distinctive:

    Document expected execution time

    line 538
  46. Very specific:

    Verify SKILL.md has valid YAML frontmatter

    line 548
  47. Very specific:

    Check name field matches directory name (kebab-case)

    line 549
  48. Very specific:

    Ensure triggers field is a list with reasonable keywords

    line 550
  49. Very specific:

    Verify dependencies list in skills.json

    line 559
  50. Distinctive:

    Check version compatibility in CHANGELOG.md

    line 561
  51. Distinctive:

    Look for breaking changes between versions

    line 562
  52. Distinctive:

    Check CHANGELOG.md for breaking changes

    line 569
  53. Distinctive:

    Update to compatible versions

    line 571
  54. Distinctive:

    Test with your agent: before creating PR

    line 616

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

OPC Skills

OPC Skills is a library of reusable AI agent skills for solopreneurs, indie hackers, and one-person companies. Each skill extends AI agents with specialized capabilities through structured instructions and automation scripts.

Core Commands

  • Lint: npm run lint (website) / python3 -m pylint skills/*/scripts/*.py (skills)
  • Type-check: npm run typecheck (website)
  • Test: npm run test (website)
  • Dev: npm run dev (website)
  • Build: npm run build (website)
  • Publish: See Release Process

Project Layout

├── skills/                    → Source skill implementations
│   ├── requesthunt/           → RequestHunt skill
│   ├── domain-hunter/         → Domain search & pricing
│   ├── logo-creator/          → Logo generation
│   ├── banner-creator/        → Banner creation
│   ├── nanobanana/            → Gemini image generation
│   ├── reddit/                → Reddit integration
│   ├── twitter/               → Twitter/X integration
│   ├── producthunt/           → Product Hunt integration
│   └── seo-geo/               → SEO & GEO optimization
├── .factory/skills/           → Installed skill versions
├── skills.json                → Global metadata and version registry
├── website/                   → Documentation website
├── CHANGELOG.md               → Version history
└── .factory/AGENTS.md         → This file

Skill Structure

Each skill follows this standard structure:

skills/<skill-name>/
├── SKILL.md                   → Main skill documentation (required)
│   └── YAML frontmatter:
│       - name: skill identifier
│       - description: what it does
│       - triggers: activation keywords
│       - dependencies: required skills (e.g., ["twitter", "reddit"])
├── scripts/                   → Executable Python/Shell scripts
├── examples/                  → Usage examples
└── references/                → API docs and references

SKILL.md must include YAML frontmatter with these fields:

  • name: Unique identifier (kebab-case)
  • description: Clear description of functionality
  • triggers: Keywords that activate the skill
  • dependencies: List of required skill names (optional)

Example:

---
name: domain-hunter
description: Search domains, compare registrar prices, and find promo codes
triggers:
  - domain
  - registrar
  - buy domain
dependencies:
  - twitter
  - reddit
---

Skill Development Patterns

Creating a New Skill

  1. Create skill directory
    mkdir -p skills/your-skill-name/scripts
  2. Write SKILL.md with proper YAML frontmatter and usage instructions
  3. Add Python/Shell scripts in scripts/ directory with clear CLI interfaces
  4. Include examples in examples/ directory showing real workflows
  5. Add references in references/ for API documentation and resources

Skill Script Guidelines

  • Use clear argument names and help text (--help)
  • Output machine-readable formats (JSON for data, markdown for reports)
  • Include error handling and meaningful error messages
  • Document dependencies and environment variables required
  • Use relative paths or ${SKILL_DIR} for portability
  • When a skill adds CLI flags, scripts, or pricing changes, update SKILL.md examples and API notes in the same change so the docs stay aligned with the shipped behavior.

Dependencies & Composition

When a skill requires other skills:

  • List them in SKILL.md dependencies field
  • Document which skills and minimum versions are needed
  • Users install dependencies via: npx skills add ReScienceLab/opc-skills --skill <dependency>

Example (from domain-hunter):

dependencies:
  - twitter
  - reddit

Versioning & Dependencies Strategy

Semantic Versioning

All version numbers follow Semantic Versioning:

MAJOR.MINOR.PATCH
- MAJOR: Breaking changes or API incompatibility
- MINOR: New features (backward compatible)
- PATCH: Bug fixes

Individual Skill Versions

Each skill has its own version number in skills.json:

{
  "name": "domain-hunter",
  "version": "1.0.0",
  "dependencies": ["twitter", "reddit"]
}

Version updates:

  • Update version when skill functionality changes
  • Update skills.json entry
  • Add entry to CHANGELOG.md under the appropriate version

Global Project Version

The root version in skills.json tracks the overall project:

  • Updated during major releases coordinating multiple skills
  • Useful for milestone tracking (1.0.0 = Initial release, 2.0.0 = Major refactor, etc.)
  • Individual skills can increment independently

Dependency Compatibility

When updating dependencies:

  1. Test that dependent skills still work with new versions
  2. Document breaking changes clearly in CHANGELOG.md
  3. Consider running dependent skill tests before merging

Example breaking change:

## [2.0.0] - 2025-XX-XX

### Changed
- **seo-geo**: Updated DataForSEO API integration (API v3.0 required)

### Fixed
- **twitter**: Fixed rate limiting handling (requires twitter >= 1.1.0)

Git Workflow

We use Git Flow for version control. See Git Flow.

Branching Strategy

main                               → Production releases
develop                            → Integration branch for next release

feature/skill/<name>/<feature>     → New skill feature
fix/skill/<name>/<issue>           → Skill bug fix
release/v<version>                 → Release preparation
hotfix/v<version>                  → Urgent production fixes

Branch Naming Examples

feature/skill/domain-hunter/promo-code-scraper
fix/skill/requesthunt/reddit-pagination
feature/skill/seo-geo/perplexity-optimization
hotfix/v1.0.1

Git Flow Commands

# Initialize git flow (first time only)
git flow init

# Start a new feature
git flow feature start skill/domain-hunter/advanced-filtering

# Finish feature - DO NOT use git flow feature finish
# Instead:
git push -u origin feature/skill/domain-hunter/advanced-filtering
gh pr create --base develop --head feature/skill/domain-hunter/advanced-filtering

# Start a release
git flow release start v2.0.0

# Finish release (merges to main, develop, creates tag)
git flow release finish v2.0.0
git push origin main develop --tags

# Start a hotfix
git flow hotfix start v1.0.1

# Finish hotfix
git flow hotfix finish v1.0.1
git push origin main develop --tags

Important: Features Must Use PRs

Never directly merge feature branches. Always:

  1. Push feature branch to origin
  2. Create PR targeting develop
  3. Request review and get approval
  4. Merge via GitHub UI
  5. Verify tests pass before merge

Commit Convention

Use conventional commits for clear history:

feat(skill-name): Add new feature description
fix(skill-name): Fix bug description
docs(skill-name): Update documentation
test(skill-name): Add or update tests
refactor(skill-name): Refactor code without feature change
chore(skills): Maintenance task not specific to one skill

Examples:

feat(domain-hunter): Add WHOIS lookup for domain availability
fix(requesthunt): Handle Reddit API pagination edge case
docs(logo-creator): Add SVG export examples
chore(skills): Update dependencies

Important: Do not add any watermark or AI-generated signatures to commit messages.

Issue Management

When creating issues, use type labels to categorize:

Type Labels

  • bug - Something isn't working
  • feature - New skill or feature request
  • enhancement - Improvement to existing skill
  • documentation - Documentation improvements
  • refactor - Code refactoring needed
  • test - Test-related issues
  • chore - Maintenance tasks

Priority Labels

  • priority:high - Critical or blocking
  • priority:medium - Important but not blocking
  • priority:low - Nice-to-have
  • good first issue - Suitable for newcomers
  • help wanted - Extra attention needed

Skill-Specific Labels

One label per skill area:

  • skill:requesthunt
  • skill:domain-hunter
  • skill:logo-creator
  • skill:banner-creator
  • skill:nanobanana
  • skill:reddit
  • skill:twitter
  • skill:producthunt
  • skill:seo-geo
  • infrastructure - For tooling and overall project

Writing Clear Issues

For bugs:

  • Include reproduction steps
  • Show expected vs actual behavior
  • Link to related code or SKILL.md section

For features:

  • Describe use case and desired outcome
  • Reference any dependencies or related skills
  • Provide example commands or workflows

Example:

## Bug: RequestHunt pagination fails on large subreddits

**Reproduction:**
1. Run: `python3 scripts/list_requests.py --topic "python" --limit 1000`
2. See pagination error after 100 items

**Expected:** Fetch all 1000 items
**Actual:** Error after 100 items

**Related:** Issue #42 for similar Reddit API issue

PR Requirements & Release Checklist

Before Merging a PR

All of the following must pass:

  • Tests pass: npm run test (website) passes without errors
  • Type checking: npm run typecheck (website) shows no errors
  • Lint: npm run lint (website) passes
  • Skill files valid: SKILL.md has proper YAML frontmatter
  • Version updated: skills.json version field updated (if functionality changed)
  • CHANGELOG.md updated: Entry added under [Unreleased] section
  • Documentation updated: SKILL.md or examples updated as needed
  • Dependencies checked: New dependencies declared in SKILL.md
  • PR description: References issue number (e.g., Fixes #123)

Version Update Rules

Update versions in skills.json when:

  • MAJOR: Breaking API changes, incompatible updates
  • MINOR: New features or significant enhancements
  • PATCH: Bug fixes, minor improvements

Do NOT update versions for:

  • Documentation-only changes
  • Internal refactoring without behavior changes
  • Dependency version bumps (unless breaking)

Merging and Closing Issues

Use closing keywords in PR description to auto-close issues:

Fixes #123
Closes #124
Resolves #125

Release Process

Quick Release - Single Skill Update

Each skill maintains independent version numbers and can be released independently.

Example: Update twitter v1.0.0 → v1.1.0

  1. Create feature branch
    git checkout develop
    git pull origin develop
    git checkout -b feature/skill/twitter/rate-limit-improvement
  2. Update version in skills.json (only this skill)
    {
      "name": "twitter",
      "version": "1.1.0"  // ← update version only
    }
  3. Update CHANGELOG.md - Add entry in the appropriate Unreleased section
    ### twitter
    #### [1.1.0] - 2025-01-22
    - **Added**: Retry mechanism for rate limit handling
    - **Fixed**: Improved error handling for connection timeouts
  4. Commit with conventional commit
    git commit -m "feat(twitter): Add retry mechanism and improve rate limiting"
  5. Push and create PR
    git push -u origin feature/skill/twitter/rate-limit-improvement
    gh pr create --base develop --head feature/skill/twitter/rate-limit-improvement
  6. Merge PR when approved and tests pass
  7. After merge, identify and test dependents
    • Check CHANGELOG.md Compatibility Matrix for who depends on twitter
    • Skills that depend on twitter: domain-hunter, seo-geo
    • Run compatibility tests: python3 skills/domain-hunter/scripts/test_twitter.py
    • No need to bump dependent versions unless there's a breaking change

Coordinated Release - Multiple Skills

When multiple skills should release together (rare, for milestone releases):

  1. Start release branch
    git checkout develop
    git pull origin develop
    git checkout -b release/v2.0.0
  2. Update multiple skill versions in skills.json
    [
      { "name": "twitter", "version": "2.0.0" },
      { "name": "reddit", "version": "1.1.0" },
      { "name": "domain-hunter", "version": "1.1.0" }
    ]
  3. Update CHANGELOG.md - Reorganize Unreleased sections into [2.0.0]
    • Move items from [Unreleased] sections to ## [2.0.0] - 2025-01-23
    • Keep organization by skill (see example below)
  4. Run tests
    npm run test && npm run typecheck
  5. Create single PR targeting main
    git add skills.json CHANGELOG.md
    git commit -m "chore(release): Version 2.0.0 - multiple skill updates"
    git push -u origin release/v2.0.0
    gh pr create --base main --head release/v2.0.0
  6. Merge to main
  7. Create GitHub release with version tag and changelog

Breaking Changes - Important ⚠️

When a skill introduces breaking changes, clearly mark them:

### twitter
#### [2.0.0] - 2025-01-23 ⚠️ BREAKING
- **Changed**: API now requires v2 endpoint authentication
- **Removed**: Deprecated v1 endpoint support (use twitter-legacy v1.0.0 if needed)
- **Migration Guide**: See docs/migration-guide.md

Handling Breaking Changes in Dependent Skills

When a dependency skill has breaking changes:

  1. Identify dependent skills using CHANGELOG Matrix
  2. Create separate PRs for each dependent skill to adapt to the breaking change
  3. Test compatibility before merging dependent updates
  4. Update dependent skill versions only if they contain breaking change fixes

Example workflow:

Main dependency: twitter v1.0.0 → v2.0.0 (breaking)

Affected: domain-hunter, seo-geo

Create two PRs:
- feature/skill/domain-hunter/twitter-v2-compat
- feature/skill/seo-geo/twitter-v2-compat

Each can be reviewed and merged independently

Version Compatibility Testing

Before merging any skill update, test compatibility:

# If skill has dependencies, test that it still works
# Example: when updating domain-hunter
python3 skills/domain-hunter/scripts/test_dependencies.py

# If skill is a dependency, test dependent skills
# Example: when updating nanobanana
python3 skills/logo-creator/scripts/test_nanobanana_compat.py
python3 skills/banner-creator/scripts/test_nanobanana_compat.py

Dependency Update Rules

ScenarioActionVersion Bump
Skill A releases minor updateDependent skill B no action neededNo change
Skill A releases patch updateDependent skill B no action neededNo change
Skill A releases breaking changeDependent skill B must update to support new versionPatch or Minor
Dependent skill B wants to document support for new Skill AUpdate B's CHANGELOG onlyNo version bump needed

Release Checklist

Before merging any release PR:

  • Version numbers updated in skills.json (only for skills being released)
  • CHANGELOG.md entries created for each updated skill
  • Skill's own dependencies tested (if applicable)
  • Dependent skills tested if this is a breaking change
  • Conventional commit message used
  • PR description references issue number(s) if applicable
  • All CI/CD checks pass (tests, type-check, lint)
  • Documentation (SKILL.md, examples) updated if needed

Development Best Practices

Skill Development

  • Start with clear documentation in SKILL.md
  • Write example workflows before implementation
  • Keep scripts focused on single responsibility
  • Make scripts idempotent where possible
  • Test with different agent tools (Claude, Cursor, Droid, etc.)

Testing Skills

  • Verify scripts work with sample inputs
  • Test dependency installation
  • Validate YAML frontmatter format
  • Check trigger keywords are discoverable
  • Test on different operating systems if applicable

Documentation

  • Write clear, concise SKILL.md instructions
  • Include workflow diagrams or step-by-step examples
  • Document all required environment variables
  • Provide real-world usage examples
  • Keep SKILL.md up-to-date with skill changes

Performance & Efficiency

  • Optimize API calls (batch when possible)
  • Cache data appropriately
  • Provide rate limit information
  • Document expected execution time
  • Handle errors gracefully

Troubleshooting Common Issues

Agent not recognizing skill

Symptoms: Skill triggers don't activate the skill

Solutions:

  1. Verify SKILL.md has valid YAML frontmatter
  2. Check name field matches directory name (kebab-case)
  3. Ensure triggers field is a list with reasonable keywords
  4. Clear agent cache and reinstall skill
  5. Test with: npx skills add ReScienceLab/opc-skills --skill <name>

Skill dependency not found

Symptoms: Skill requires another skill but it's not installed

Solutions:

  1. Verify dependencies list in skills.json
  2. Install dependencies: npx skills add ReScienceLab/opc-skills --skill <dep>
  3. Check version compatibility in CHANGELOG.md
  4. Look for breaking changes between versions

Version conflicts

Symptoms: Multiple skill versions cause errors

Solutions:

  1. Check CHANGELOG.md for breaking changes
  2. Review version compatibility matrix (if available)
  3. Update to compatible versions
  4. Report version conflict as issue with details

Getting Started

First Time Setup

  1. Clone repository
    git clone https://github.com/ReScienceLab/opc-skills
    cd opc-skills
  2. Install dependencies
    npm install      # For website
  3. Initialize git flow
    git flow init
  4. Create a feature branch
    git flow feature start skill/your-skill-name/your-feature
  5. Follow the skill structure documented above

Creating Your First Skill

  1. Copy template
    cp -r template skills/my-new-skill
  2. Edit SKILL.md with your skill details
  3. Add scripts in scripts/ directory
  4. Add examples in examples/ directory
  5. Update skills.json with new skill entry
  6. Test with your agent before creating PR

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.