agentleFS
ruihaomeiruihaomei/aptuni/skills/add-source-provider/SKILL.md

add-source-provider

Skill1 starsChanged 2 months agoApache-2.0View on GitHub

This skill should be used when the user asks to "add a source provider", "integrate a new personal-data source", or extend Aptuni source ingestion.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    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. Distinctive:

    Add one bounded source integration that emits immutable snapshots and reviewable candidate deltas without writing canonical facts directly.

    line 10
  2. Distinctive:

    Treat source bytes, metadata, paths, filenames, and parsed values as untrusted private data.

    line 18
  3. Very specific:

    Never silently change src/aptuni/sources/contract.py, a common record, plugin entry-point semantics, or an existing locator schema.

    line 19
  4. Distinctive:

    Use synthetic or sanitized fixtures only.

    line 22
  5. Very specific:

    Add failing tests for admission denial, stable identity, idempotent replay, move/delete/reappear, partial coverage, truncation, parser or …

    line 28
  6. Very specific:

    Add or update the plugin manifest under src/aptuni/advisor/catalog/plugins/, both locale files, user documentation, and one Recipe example …

    line 33
  7. Distinctive:

    Do not label a non-builtin provider installable.

    line 35
  8. Distinctive:

    Run the focused provider/contract tests, then the full test, lint, type and relay gates.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Add a SourceProvider

Goal

Add one bounded source integration that emits immutable snapshots and reviewable candidate deltas without writing canonical facts directly.

Boundaries

  • Read docs/dev/DECISIONS/ADR-0002-mvp-package-and-plugin-boundaries.md, docs/dev/DECISIONS/ADR-0006-source-snapshots-and-candidate-deltas.md, and the closest provider in src/aptuni/sources/ before editing.
  • Treat source bytes, metadata, paths, filenames, and parsed values as untrusted private data.
  • Never silently change src/aptuni/sources/contract.py, a common record, plugin entry-point semantics, or an existing locator schema. A public contract or new extension-version decision needs an ADR, migration/compatibility coverage, and independent review.
  • Use synthetic or sanitized fixtures only. Never add real profile data, credentials, or tokens.

Workflow

  1. Lock the provider ID, approved roots/origins, identity keys, completeness semantics, authority policy, retention class, secret references, resource bounds, and failure behavior.
  2. Add failing tests for admission denial, stable identity, idempotent replay, move/delete/reappear, partial coverage, truncation, parser or redirect attacks, instruction injection, and crash retry where the source can encounter them.
  3. Implement the narrow provider behind the existing snapshot/delta contract. Register a provider-specific locator only when its versioned fields are required.
  4. Add or update the plugin manifest under src/aptuni/advisor/catalog/plugins/, both locale files, user documentation, and one Recipe example when the provider is installable in that Recipe. Do not label a non-builtin provider installable.
  5. Run the focused provider/contract tests, then the full test, lint, type and relay gates. Request independent review when a public plugin interface, schema, migration, privacy, or deletion path changed.

Completion evidence

Report the provider and contract versions, fixture cases, privacy/retention behavior, exact commands run, manifest/Recipe status, and any compatibility or real-data validation still pending.

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.