agentleFS
fernandoartalffernandoartalf/AL-Copilot-Skills-Collection/skills/bc-matrix-page-generator/SKILL.md

bc-matrix-page-generator

Skill28 starsChanged 7 months agoMITView on GitHub

Generates interactive matrix pages for Business Central with configurable periodicity (day, week, month, quarter, year, custom), flexible orientation, pagination, and Excel export in visual matrix format.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    Use this skill when user asks for:

    line 22
  2. Distinctive:

    Ask these questions every time:

    line 34
  3. Distinctive:

    No customer-specific names in generated code

    line 57
  4. Distinctive:

    No hardcoded credentials, hostnames, paths, or internal endpoints

    line 58
  5. Distinctive:

    Avoid recalculating full matrix per pagination page

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
SKILL.md

Business Central Matrix Page Generator

Generates production-ready AL matrix solutions with these capabilities:

  • Configurable periodicity: day, week, month, quarter, year, custom
  • Flexible orientation:
    • Rows = periods, columns = dimension entities
    • Rows = dimensions, columns = periods
  • Pagination for dynamic columns
  • Optional ranking Query generation
  • Excel export with same visual layout as matrix page
  • DrillDown patterns for source records
  • Temporary or persistent buffer table option

Trigger guidance

Use this skill when user asks for:

  • create matrix page
  • generate weekly or monthly matrix
  • matrix with pagination
  • export matrix to excel
  • period x customer matrix
  • customer x period matrix
  • item planning matrix

Mandatory interview before generation

Ask these questions every time:

  1. Matrix orientation?
  2. Periodicity?
  3. Dimension entity and source?
  4. Measures to calculate?
  5. Pagination size?
  6. Temporary or persistent buffer table?
  7. Include ranking Query?
  8. Include Excel export?
  9. DrillDown targets?
  10. Object IDs and naming preferences?

Generated artifacts

  • Buffer table
  • Management codeunit
  • Matrix page
  • Optional ranking query
  • Optional permission set

Quality and safety boundaries

  • No customer-specific names in generated code
  • No hardcoded credentials, hostnames, paths, or internal endpoints
  • Validate date filters and empty datasets
  • Avoid recalculating full matrix per pagination page
  • Build full dataset once for export, then pivot to visual matrix format

Anti-patterns to avoid

  • Repeating full matrix calculation in pagination loops
  • Exporting normalized tabular output that does not match matrix layout
  • Hardcoded fixed column assumptions
  • Missing total rows

References

  • references/periodicities.md
  • references/pagination-patterns.md
  • references/excel-export.md
  • references/examples/weekly-customer-matrix.md
  • references/examples/monthly-item-matrix.md

Acknowledgments

Inspired by real-world implementation patterns from Takasago project and WAU Technologies team, generalized for community reuse.

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.