- The person you are assisting is User.
- Assume User is an experienced senior backend/database engineer, familiar with mainstream languages and their ecosystems such as Rust, Go, and Python.
- User values "Slow is Fast", focusing on: reasoning quality, abstraction and architecture, long-term maintainability, rather than short-term speed.
- Your core objectives:
- As a strong reasoning, strong planning coding assistant, provide high-quality solutions and implementations in as few interactions as possible;
- Prioritize getting it right the first time, avoiding superficial answers and unnecessary clarifications.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Title: Senior Engineer Task Execution Rule | |
| Applies to: All Tasks | |
| Rule: | |
| You are a senior engineer with deep experience building production-grade AI agents, automations, and workflow systems. Every task you execute must follow this procedure without exception: | |
| 1.Clarify Scope First | |
| •Before writing any code, map out exactly how you will approach the task. | |
| •Confirm your interpretation of the objective. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dotenv from "dotenv"; | |
| import Anthropic from "@anthropic-ai/sdk"; | |
| import { setTimeout } from "timers/promises"; | |
| import * as fs from "fs/promises"; | |
| import { getSession } from "./neo4j"; | |
| // Configuration and Initialization | |
| dotenv.config(); | |
| const anthropic = new Anthropic({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################## | |
| # Example environment variables for your elastic beanstalk app config: | |
| ############################################################################## | |
| # SIDEKIQ_ENABLED=true | |
| # SIDEKIQ_WORKER_COUNT=2 | |
| # SIDEKIQ_1_EXTRA_OPTIONS="-c 10 --queue default --queue critical" | |
| # SIDEKIQ_2_EXTRA_OPTIONS="-c 10 --queue critical" | |
| ############################################################################## | |
| # Sidekiq interaction and startup script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Handy utility mixin for incrementing counters in SQL in a manner that avoids race conditions | |
| # | |
| # Example Implementation: | |
| # | |
| # class Foo < ActiveRecord::Base | |
| # include AtomicallyIncrementable | |
| # end | |
| # | |
| # Then, assuming you have an integer column named "example_counter": | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # -------------------------------------------------------------------------- | |
| # Git Recent with Details (by Tom Chapin - https://gist.github.com/tomchapin/dc0d53cbe7e8246955895017163faf48) | |
| # ------------------------------------------------------------------------- | |
| # One-liner command by estani from this Stack Overflow thread: | |
| # https://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit | |
| # -------------------------------------------------------------------------- | |
| # This git command lists all branches (local and remote) and orders them by | |
| # their most recent commit date. Also displays the commit author. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # -------------------------------------------------------------------------- | |
| # Git Recent (by Tom Chapin - https://www.github.com/tomchapin) | |
| # -------------------------------------------------------------------------- | |
| # This command lists your local branches which have recent commits in them. | |
| # -------------------------------------------------------------------------- | |
| # Installation: | |
| # Copy this script as a file named "git-recent" somewhere in | |
| # your path (For example: /usr/local/bin/git-recent), and then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # -------------------------------------------------------------------------- | |
| # Reverse Merge and Push (by Tom Chapin - https://gist.github.com/tomchapin/e860bcc663e262d1abeadd62ec1bd11e) | |
| # -------------------------------------------------------------------------- | |
| # This command is basically the opposite of "git merge". It uses git-up to | |
| # fetch and pull all of the branches you are currently tracking, switches | |
| # to your destination branch, merges in your original source branch, pushes | |
| # the changes, and then switches back to the original source branch. | |
| # If any step fails (for example, due to a merge conflict), the whole |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
I hereby claim:
- I am tomchapin on github.
- I am tomchapin83 (https://keybase.io/tomchapin83) on keybase.
- I have a public key ASAiFqeTQIRMK4YEVyUWKfuF7uyZw1cFrhFRNJwn5yW7CAo
To claim this, I am signing this object:
NewerOlder