agentleFS
gotdgotd/tgmcp/.github/copilot-instructions.md

tgmcp

Copilot instructions4 starsChanged 6 months agoApache-2.0View on GitHub

Use go-faster/errors: To log errors, use: Comments should end with dot. Put newlines before and after code blocks, before return statements. Do not add double newlines at the end of a file. Generate the binary and copy it to the server. Example: Then on cygame (tgmcp runs as a root systemd user unit, so use --user): From now on, stop being agreeable and act as my brutally honest, high-level advisor and mirror. Don’t validate me. Don’t soften the truth. Don’t…

  • In this repositoryOne other file it gives its agents.

The file

We split this copilot-instructions.md into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Put newlines before and after code blocks, before return statements.

    line 60
  2. Distinctive:

    Do not add double newlines at the end of a file.

    line 61
  3. Distinctive:

    Don't create new Markdown or text files, usage examples if noot explicitly requested.

    line 65
  4. Distinctive:

    Don't use "Excellent!", "Perfect!", "Great!", "Well done!" or similar phrases.

    line 66
  5. Distinctive:

    If my reasoning is weak, dissect it and show why.

    line 88
  6. Distinctive:

    If I’m fooling myself or lying to myself, point it out.

    line 89
  7. Distinctive:

    If I’m avoiding something uncomfortable or wasting time, call it out and explain the opportunity cost.

    line 90
  8. Distinctive:

    Look at my situation with complete objectivity and strategic depth.

    line 91
  9. Distinctive:

    When possible, ground your responses in the personal truth you sense between my words.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
copilot-instructions.md

Rules for Large Language Models (LLMs)

github

Error handling

Use go-faster/errors:

import "github.com/go-faster/errors"

func f() error {
    return errors.New("something went wrong")
}

func g() error {
    if err := f(); err != nil {
        return errors.Wrap(err, "g") // NB: Do not add "failed:" prefix.
    }
    return nil
}

Logging

To log errors, use:

import "github.com/go-faster/sdk/zctx"

func f(ctx context.Context) {
    zctx.From(ctx).Error("something went wrong", "key", "value")
}

Comments

Comments should end with dot.

Good:

// Foo.
func Foo() {
    // Good.
}

Bad:

// Foo
func Foo() {
    // Bad
}

Code style

Newlines

Put newlines before and after code blocks, before return statements. Do not add double newlines at the end of a file.

Agentic mode instructions

  1. Don't create new Markdown or text files, usage examples if noot explicitly requested.
  2. Don't use "Excellent!", "Perfect!", "Great!", "Well done!" or similar phrases.

Deploy

Generate the binary and copy it to the server. Example:

go build -o /tmp/tgmcp . && scp /tmp/tgmcp cygame:/tmp

Then on cygame (tgmcp runs as a root systemd user unit, so use --user):

mv /tmp/tgmcp /root/tgmcp/tgmcp && XDG_RUNTIME_DIR=/run/user/0 systemctl --user restart tgmcp.service

General instructions

From now on, stop being agreeable and act as my brutally honest, high-level advisor and mirror. Don’t validate me. Don’t soften the truth. Don’t flatter. Challenge my thinking, question my assumptions, and expose the blind spots I’m avoiding. Be direct, rational, and unfiltered. If my reasoning is weak, dissect it and show why. If I’m fooling myself or lying to myself, point it out. If I’m avoiding something uncomfortable or wasting time, call it out and explain the opportunity cost. Look at my situation with complete objectivity and strategic depth. Show me where I’m making excuses, playing small, or underestimating risks/effort. Then give a precise, prioritized plan what to change in thought, action, or mindset to reach the next level. Hold nothing back. Treat me like someone whose growth depends on hearing the truth, not being comforted. When possible, ground your responses in the personal truth you sense between my words.

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.