How amey-thakur/github-tricks works
Purpose and entry point
This is a documentation-first GitHub reference repository, not an application. Its primary artifact is the long, executable-style guide in README.md, curating 300+ GitHub, Git, API, Actions, Codespaces, and Copilot behaviors. The rendered README is the user entry point; examples link to live GitHub resources and external services.
Paths: README.md, CONTRIBUTING.md, LICENSE
Content architecture
README.md is organized as a progressive reference:
1. “Start here” provides ten high-impact, copyable tricks.
2. Browse covers URLs, keyboard shortcuts, and search.
3. Build covers repository settings, Actions, and security.
4. Write documents GitHub Markdown and profile behavior.
5. Automate covers gh, REST/GraphQL APIs, and Git.
6. Run covers Codespaces and Copilot.
7. Reference tracks retired tricks, social sharing, and contribution.
The guide distinguishes verified behavior, undocumented behavior, caveats, and retired advice through GitHub Markdown alerts.
Paths: README.md, .gitattributes
Live-demo and substitution model
Examples use Amey-Thakur/GITHUB-TRICKS as a live demonstration repository, while uppercase values such as OWNER, REPO, and USERNAME represent user-supplied substitutions. Some commands use literal gh interpolation tokens ({owner}, {repo}), creating an important boundary between shell placeholders and CLI-resolved values.
Flows are primarily reader-driven: read section → copy URL/command/configuration → substitute target repository/account → execute against GitHub, Git, or local tooling.
Paths: README.md, CONTRIBUTING.md
GitHub platform integration
The repository documents and depends on GitHub’s web UI and platform surfaces: repository URLs, Issues/PRs, Actions, rulesets, security scanning, releases, Pages, profile rendering, and search. It also demonstrates GitHub-specific Markdown rendering and sanitization behavior directly in the README.
External endpoints include github.com, raw.githubusercontent.com, codeload.github.com, camo.githubusercontent.com, and GitHub API/MCP endpoints. Behavior is often permission-, token-, branch-, and default-branch-dependent.
Paths: README.md, .github/badge.json, codemeta.json
Command and API boundary
The automation material targets installed client runtimes rather than repository code: GitHub CLI (gh), Git, shell tools such as curl, and jq; some Copilot CLI examples require Node.js. It describes REST through gh api, GraphQL queries, rate limits, pagination, token classes, API-version behavior, and Git remote/ref workflows.
No executable scripts, application source, CI workflows, or package manifests are present in the tree. Commands are documentation examples, not repo-owned runtime entry points.
Paths: README.md, .gitignore
Metadata, badges, and visual assets
Repository metadata supports citation and machine-readable project description. codemeta.json feeds a Shields dynamic JSON badge; .github/badge.json supplies a Shields endpoint badge. README-hosted visual cards and icons are presentation assets for documentation and social distribution.
Paths: codemeta.json, .github/badge.json, .github/assets, .github/social
Maintenance and contribution boundary
Accuracy is the central maintenance concern: the guide explicitly records verification dates, labels undocumented behavior, and keeps a “dead tricks” section to prevent stale recommendations. Contributors are directed to submit source-backed corrections or newly broken behavior through the GitHub issue process and contribution guidance.
Paths: CONTRIBUTING.md, README.md, CODE_OF_CONDUCT.md
Main entry points: README.md Executable reference guide · CONTRIBUTING.md Contribution guidance · codemeta.json Project metadata · assets Visual assets
Components 16
Reference guide
The README is the repository's primary artifact.
- Executable reference guide · Rendered README provides 300+ copyable GitHub behaviors.
README.md - Start here · Ten high-impact copyable tricks.
README.md - Progressive sections · Browse, Build, Write, Automate, Run, and Reference material.
README.md - Behavior annotations · Marks verified, undocumented, caveated, and retired advice.
README.md - Copyable examples · Examples are documentation, not repository-owned executables.
README.md - Target substitution · Readers replace OWNER, REPO, and USERNAME; gh tokens resolve separately.
README.md
GitHub surfaces
- GitHub platform · Web UI, repositories, Issues/PRs, Actions, security, releases, Pages, profiles, and search.
- GitHub endpoints · Web, raw, codeload, camo, API, and MCP endpoints.
- Installed client tooling · gh, Git, shell tools, curl, jq, and optionally Node.js/Copilot CLI.
Metadata and assets
- Project metadata · Machine-readable project description used by a dynamic badge.
codemeta.json - Badge endpoint data · Supplies a Shields endpoint badge.
.github/badge.json - Visual assets · Cards and icons support README presentation and social distribution.
.github/assets
Maintenance
- Contribution guidance · Requests source-backed corrections and reports of broken behavior.
CONTRIBUTING.md - GitHub issue process
- Accuracy lifecycle · Verification dates and dead tricks prevent stale recommendations.
README.md - Code of conduct
CODE_OF_CONDUCT.md
Connections 17
- Executable reference guide → Start here: opens with
- Executable reference guide → Progressive sections: organizes
- Executable reference guide → Behavior annotations: qualifies advice with
- Progressive sections → Copyable examples: contains
- Start here → Copyable examples: offers
- Copyable examples → Target substitution: requires
- Target substitution → GitHub platform: targets
- Copyable examples → Installed client tooling: runs through
- Installed client tooling → GitHub endpoints: calls
- GitHub endpoints → GitHub platform: exposes
- Project metadata → Badge endpoint data: feeds dynamic badge
- Visual assets → Executable reference guide: presented in
- Contribution guidance → GitHub issue process: directs corrections to
- GitHub issue process → GitHub platform: uses
- Contribution guidance → Accuracy lifecycle: supports
- Accuracy lifecycle → Behavior annotations: maintains
- Code of conduct → Contribution guidance: governs community participation