Skip to content

Finish the AI integration (skills) #3

Open

Description

@neoromantic

Make tg easy for coding agents to pick up.

Today tg skill install writes a home-made skill.json into the data dir (src/commands/skill.ts). No agent reads that file, and the repo has no SKILL.md. tg skill validate only checks the environment variables and that the data dir is writable; it doesn't check the login or the daemon. README and AGENTS.md also promise a suggestion field in errors, but no code sets it.

To do:

  • Ship skills/telegram-sync-cli/SKILL.md, installable with bunx skills add neoromantic/telegram-sync-cli. It covers when to use tg, the read paths (messages search, tg sql), confirming before send, the error schema and the exit codes.
  • tg skill install --dir <path> writes that file.
  • tg skill validate also reports the active account and the daemon state.
  • Either set suggestion on common errors or drop it from the docs.

Done when e2e tests cover install and validate, and the skill's examples run against the e2e fixtures.

Activity

  1. added
    enhancement
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions