Skip to content

Add ranking-system template and repository input to README#20

Open
ib-bsb-br wants to merge 1 commit into
mainfrom
codex/construct-ranking-system-for-repositories
Open

Add ranking-system template and repository input to README#20
ib-bsb-br wants to merge 1 commit into
mainfrom
codex/construct-ranking-system-for-repositories

Conversation

@ib-bsb-br

@ib-bsb-br ib-bsb-br commented Mar 22, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Provide a formal, sanitized template to guide construction of a ranking system that orders the supplied GitHub repositories by complexity and uniqueness.
  • Centralize the task, input list, scoring guidance, and observations in one place to ensure consistent downstream assessments.

Description

  • Replaced the README placeholder with a structured ranking-system template document in README.md that defines purpose, context, variables, instructions, and output format.
  • Embedded the full repository list into the new_raw_data section of the template and added an observations section noting that no attachment files were provided.
  • Enforced sanitization and inference rules in the template (preserve structure, report conflicts, and require inferred values for missing fields).

Testing

  • No automated tests were run because this is a documentation-only change; the commit contains only README.md edits.

Codex Task

Summary by Sourcery

Replace the placeholder README with a structured template for designing a repository-ranking system based on project complexity and uniqueness.

Documentation:

  • Document a formal ranking-system template that defines purpose, context, variables, instructions, and output format for ordering GitHub repositories by complexity and uniqueness.
  • Embed the full target repository list and note the absence of attachment files within the template-driven README.

Chores:

  • Clarify sanitization, inference, and conflict-handling rules for future ranking outputs within the README template.

Summary by cubic

Replaced the placeholder README with a structured template for building a repository-ranking system by complexity and uniqueness. The template includes the full repository list, scoring guidance, and sanitization/inference/conflict-handling rules to standardize future evaluations.

Written for commit dca5411. Summary will update on new commits.

@sourcery-ai

sourcery-ai Bot commented Mar 22, 2026

Copy link
Copy Markdown

Reviewer's Guide

Replaces the placeholder README with a detailed, XML-like template that defines how to construct a ranking system for GitHub repositories by complexity and uniqueness, including purpose, context, constraints, instructions, embedded template and input data, and an observations section.

Sequence diagram for applying README ranking-system template

sequenceDiagram
  actor DocumentationAnalyst
  participant TemplateDocument
  participant NewRawData
  participant AttachmentFiles
  participant OutputDocument

  DocumentationAnalyst->>TemplateDocument: Read purpose, context, constraints, instructions
  TemplateDocument-->>DocumentationAnalyst: Provide structure and required fields

  DocumentationAnalyst->>NewRawData: Extract task_request and repository_list
  NewRawData-->>DocumentationAnalyst: Return repositories and task description

  DocumentationAnalyst->>AttachmentFiles: Check for corroborating data
  AttachmentFiles-->>DocumentationAnalyst: Indicate no attachments provided

  DocumentationAnalyst->>DocumentationAnalyst: Perform conflict check and gap filling
  DocumentationAnalyst->>OutputDocument: Rebuild document using template structure
  DocumentationAnalyst->>OutputDocument: Insert ranking axes, criteria, and repository-focused content
  DocumentationAnalyst->>OutputDocument: Add observations about absence of attachments and conflicts

  OutputDocument-->>DocumentationAnalyst: Final ranking-system specification in README
Loading

Flow diagram for README ranking-system template processing

flowchart TD
  A[Start task: construct ranking system] --> B[Step 1: Structural mapping<br/>Identify fixed sections and variable fields in template_document]
  B --> C[Step 2: Data extraction<br/>Scan new_raw_data for repositories, goals, axes, outputs<br/>Scan attachment_files for corroborating details]
  C --> D[Step 3: Conflict check<br/>Compare new_raw_data vs attachment_files and flag discrepancies]
  D --> E[Step 4: Drafting and substitution<br/>Rebuild document layout<br/>Replace header and entity blocks with repository-centric content<br/>Rewrite narratives around ranking goal]
  E --> F[Step 5: List handling<br/>Preserve list styles<br/>Extend or shrink lists to match repository_list]
  F --> G[Step 6: Gap filling<br/>Infer plausible values for any missing mandatory fields]
  G --> H[Step 7: Discrepancy reporting<br/>Ensure conflicts are visible<br/>Append OBSERVATIONS section if needed]
  H --> I[Step 8: Anti-residue scan<br/>Remove template-specific data<br/>Ensure output is based only on new_raw_data and attachment_files]
  I --> J[Final output<br/>Plain text or Markdown ranking-system document<br/>Includes ranked list specification and evaluation guidance]
Loading

File-Level Changes

Change Details Files
Introduce a fully structured ranking-system specification template into the README to drive consistent repository complexity/uniqueness assessments.
  • Defined a section describing the analyst role and ranking goal focused on project complexity and uniqueness.
  • Added a block specifying role, tone, input handling rules, and critical constraints such as sanitization, inference allowance, conflict handling, and structure preservation.
  • Outlined multi-step guiding structural mapping, data extraction, conflict checking, drafting, list handling, gap filling, discrepancy reporting, and anti-residue scanning.
  • Embedded a detailed <input_data> section containing a CDATA-wrapped template_document that models the ranking-system document structure, including environment, variables, instructions, output format, examples, self-check, evaluation notes, and documentation.
  • Embedded the concrete task request and full GitHub repository list inside the new_raw_data subsection of input_data, and captured the absence of attachments in attachment_files.
  • Specified an <output_specification> describing allowed formats and language, and added an section documenting that no conflicts exist because no attachments were provided.
README.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue, and left some high level feedback:

  • The "TOTAL SANITIZATION" constraint conflicts with both the "PRESERVE STRUCTURE" requirement and the fact that this README itself is a template; consider clarifying exactly what may or may not be reused (e.g., section tags vs. wording) to avoid ambiguous downstream behavior.
  • The hardcoded observation "No attachment files were provided" in the section makes the template specific to this single task run; consider rephrasing it as an example or an instruction for how to report attachment availability instead of embedding a concrete state.
  • The nested [[template_document]]/[[new_raw_data]]/[[attachment_files]] structure inside the README is quite dense; adding a brief top-level note that explains how an agent should interpret and use these three blocks (e.g., which parts to treat as sample vs. live input) would make the template easier to apply consistently.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The "TOTAL SANITIZATION" constraint conflicts with both the "PRESERVE STRUCTURE" requirement and the fact that this README itself is a template; consider clarifying exactly what may or may not be reused (e.g., section tags vs. wording) to avoid ambiguous downstream behavior.
- The hardcoded observation "No attachment files were provided" in the <observations> section makes the template specific to this single task run; consider rephrasing it as an example or an instruction for how to report attachment availability instead of embedding a concrete state.
- The nested [[template_document]]/[[new_raw_data]]/[[attachment_files]] structure inside the README is quite dense; adding a brief top-level note that explains how an agent should interpret and use these three blocks (e.g., which parts to treat as sample vs. live input) would make the template easier to apply consistently.

## Individual Comments

### Comment 1
<location path="README.md" line_range="15-18" />
<code_context>
+  </role>
+
+  <input_handling>
+      Treat [[attachment_files]] as each and every textual data enclosed within
+      the files attached to this prompt message.
+  </input_handling>
</code_context>
<issue_to_address>
**suggestion (typo):** Consider rephrasing “each and every textual data” for grammatical correctness.

“Each and every textual data” is ungrammatical. Consider: “all textual data” or “each and every piece of textual data,” for example: “Treat [[attachment_files]] as all textual data enclosed within the files attached to this prompt message.”

```suggestion
  <input_handling>
      Treat [[attachment_files]] as all textual data enclosed within
      the files attached to this prompt message.
  </input_handling>
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread README.md
Comment on lines +15 to +18
<input_handling>
Treat [[attachment_files]] as each and every textual data enclosed within
the files attached to this prompt message.
</input_handling>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (typo): Consider rephrasing “each and every textual data” for grammatical correctness.

“Each and every textual data” is ungrammatical. Consider: “all textual data” or “each and every piece of textual data,” for example: “Treat [[attachment_files]] as all textual data enclosed within the files attached to this prompt message.”

Suggested change
<input_handling>
Treat [[attachment_files]] as each and every textual data enclosed within
the files attached to this prompt message.
</input_handling>
<input_handling>
Treat [[attachment_files]] as all textual data enclosed within
the files attached to this prompt message.
</input_handling>

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request replaces the README placeholder with a comprehensive ranking-system template. It aims to provide a standardized approach for evaluating and ordering GitHub repositories by complexity and uniqueness. The template includes sections for purpose, context, variables, instructions, and output format, ensuring consistent downstream assessments.

Highlights

  • Ranking System Template: Introduced a structured template in README.md for creating a ranking system for GitHub repositories based on complexity and uniqueness.
  • Data Centralization: Embedded a repository list into the new_raw_data section of the template, centralizing input and scoring guidance.
  • Sanitization and Inference: Enforced sanitization and inference rules within the template to ensure consistent and complete assessments.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request completely rewrites the README.md file, replacing a placeholder with a comprehensive XML-structured prompt. This new content defines a task for a documentation analyst to design a ranking system for 65 GitHub repositories, ordering them by project complexity and uniqueness, and includes detailed instructions, constraints, input data, and output specifications for this task.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="README.md">

<violation number="1" location="README.md:16">
P3: "each and every textual data" is ungrammatical — "data" is uncountable. Use "all textual data" or "each and every piece of textual data".</violation>

<violation number="2" location="README.md:23">
P2: Unrestricted "Deduce, guess" guidance can cause fabricated ranking content that is not grounded in the provided repository data.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread README.md
Comment on lines +23 to +24
<constraint type="critical">INFERENCE ALLOWED: Deduce, guess, or
auto-complete information based on plausibility.</constraint>

@cubic-dev-ai cubic-dev-ai Bot Mar 22, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Unrestricted "Deduce, guess" guidance can cause fabricated ranking content that is not grounded in the provided repository data.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At README.md, line 23:

<comment>Unrestricted "Deduce, guess" guidance can cause fabricated ranking content that is not grounded in the provided repository data.</comment>

<file context>
@@ -1 +1,282 @@
+  <constraints>
+    <constraint type="critical">TOTAL SANITIZATION: No identifier or factual
+    description from the template may remain in the result.</constraint>
+    <constraint type="critical">INFERENCE ALLOWED: Deduce, guess, or
+    auto-complete information based on plausibility.</constraint>
+    <constraint type="critical">CONFLICT RESOLUTION: If [[new_raw_data]] and
</file context>
Suggested change
<constraint type="critical">INFERENCE ALLOWED: Deduce, guess, or
auto-complete information based on plausibility.</constraint>
<constraint type="critical">INFERENCE LIMITED: Infer only structural defaults for missing fields; do not invent repository facts beyond [[new_raw_data]] and [[attachment_files]].</constraint>
Fix with Cubic

Comment thread README.md
Comment on lines +16 to +17
Treat [[attachment_files]] as each and every textual data enclosed within
the files attached to this prompt message.

@cubic-dev-ai cubic-dev-ai Bot Mar 22, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: "each and every textual data" is ungrammatical — "data" is uncountable. Use "all textual data" or "each and every piece of textual data".

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At README.md, line 16:

<comment>"each and every textual data" is ungrammatical — "data" is uncountable. Use "all textual data" or "each and every piece of textual data".</comment>

<file context>
@@ -1 +1,282 @@
+  </role>
+
+  <input_handling>
+      Treat [[attachment_files]] as each and every textual data enclosed within
+      the files attached to this prompt message.
+  </input_handling>
</file context>
Suggested change
Treat [[attachment_files]] as each and every textual data enclosed within
the files attached to this prompt message.
Treat [[attachment_files]] as all textual data enclosed within
the files attached to this prompt message.
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant