Survey

From akillness/jeo-skills · View interactive version

Survey is an AI agent skill from the GitHub repository akillness/jeo-skills. Run a bounded cross-platform landscape scan before planning or implementation. Use when the real job is researching what exists, how people work around it, which solutions repeat, or how platform/tooling patterns map before deciding what to build. Produce reusable `.survey/{slug}/` artifacts, valida

How to use this skill

Skill file

Survey

Use this skill when the job is discovering the landscape before committing to a plan.

survey stays portable by doing four things well:

  1. freeze one bounded research question,
  2. run the same 4 research lanes every time,
  3. save reusable .survey/{slug}/ artifacts with fixed headings,
  4. validate the artifact contract before handing off to planning or execution.

Read these support docs before running unfamiliar survey work:

When to use this skill

When not to use this skill

Artifact contract

Keep the output package stable:

.survey/{slug}/
├── triage.md
├── context.md
├── solutions.md
└── platform-map.md    # required for agent/tooling/platform topics

Required meanings:

Do not invent alternate filenames or free-form artifact shapes unless the user explicitly asks.

Use python3 .agent-skills/survey/scripts/validate_survey_artifacts.py <path> after writing files whenever the survey output is meant to be reusable.

Instructions

Step 1: Classify one primary survey mode

Normalize the request before researching:

survey_run:
  primary_mode: market-landscape | workflow-landscape | repo-maintenance | platform-comparison
  scope: narrow | medium | broad
  evidence_floor: primary-pages-first | indexed-snippets-allowed | thin-evidence-ok
  output_language: repo-default | user-language
  needs_platform_map: true | false
  reuse_existing: true | false | unknown

Mode guide:

Choose one primary mode even if the topic touches more than one.

Step 2: Freeze the evidence contract

Before searching, make the rules explicit:

Use the cheap-first recovery order from references/evidence-recovery-ladder.md:

  1. direct primary-page retrieval
  2. stable official substitution
  3. feed recovery
  4. browser-rendered retrieval
  5. indexed snippets
  6. thin-evidence stop

Step 3: Triage the request and check reuse

Parse:

Then check whether .survey/{slug}/triage.md already exists.

Write triage.md with:

Step 4: Run the 4 lanes in parallel

Keep the lanes separate even if one is thinner.

Lane A — Context

Return:

Lane B — Solutions

Return:

Lane C — Actual behavior

Return:

Lane D — Alternatives or platform map

Default mode:

For agent/tooling/platform topics, replace that with:

Use settings / rules / hooks as the common layer whenever Claude / Codex / Gemini differences are relevant.

Step 4.5: Apply a relevance gate for repo-maintenance surveys

When primary_mode: repo-maintenance, do not trust keyword hits at face value.

Run a compact gate before writing final recommendations:

If search/extract tooling is degraded, fallback to direct GitHub API retrieval and mark provenance/risk explicitly instead of pretending confidence.

Step 4.6: Hourly candidate sweep (repo-maintenance cron loops)

When the survey is part of a recurring skill-maintenance loop, run one explicit keyword sweep before final recommendations.

Required keyword families:

Execution rules:

Reference: references/keyword-sweep-and-relevance-rescue.md

Step 5: Synthesize the artifacts

Keep the written files compact and schema-stable.

Step 6: Validate the artifact contract

Run the validator after writing the files:

python3 .agent-skills/survey/scripts/validate_survey_artifacts.py .survey/<slug>
python3 .agent-skills/survey/scripts/validate_survey_artifacts.py .survey/<slug> --platform-topic

Use --platform-topic when platform-map.md is required.

If provenance labels matter for the run, also use:

python3 .agent-skills/survey/scripts/validate_survey_artifacts.py .survey/<slug> --require-provenance

If the validator fails, fix the artifact files before handing off to planning or implementation.

Step 7: End with a factual survey summary

Return a short summary only after files are written and validated:

Do not slide into planning or implementation unless the user explicitly asks for the next step.

Reporting standards

Examples

Example 1: Repo-maintenance survey

Input

survey which existing skill in this repo is the best bounded maintenance target next

Good output direction

Example 2: Platform comparison

Input

survey how Claude Code, Codex, and Gemini CLI differ for hooks, approvals, and research workers

Good output direction

Best practices

  1. Keep the front door small: classify mode, freeze evidence rules, run the 4 lanes, validate, and save the artifacts.
  2. Push slow-changing retrieval/platform/template detail into references instead of bloating the main skill.
  3. Prefer direct primary sources, but label every downgrade honestly.
  4. Preserve the same artifact filenames and headings across Claude / Codex / Gemini runs.
  5. If evidence is thin, narrow the claim instead of bluffing certainty.
  6. Treat hook systems as accelerators around the validator, not replacements for checked-in artifact rules.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.